From 4f3c7ec93a58a1d73db5a7f066373e277199809c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 27 Nov 2024 17:35:44 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.448.2 --- .speakeasy/gen.lock | 586 +---- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 19 +- .speakeasy/workflow.yaml | 2 +- README.md | 126 +- RELEASES.md | 12 +- USAGE.md | 2 +- build.gradle | 4 +- docs/models/components/AchDetails.md | 12 - docs/models/components/AppliedDiscounts.md | 11 - docs/models/components/AppliedTaxes.md | 11 - docs/models/components/BalanceSheetFilter.md | 10 +- docs/models/components/CardBrand.md | 23 - docs/models/components/CardDetails.md | 8 - docs/models/components/CardEntryMethod.md | 14 - docs/models/components/CardStatus.md | 13 - docs/models/components/CardType.md | 11 - docs/models/components/CashDetails.md | 11 - docs/models/components/CreateItemResponse.md | 15 - .../components/CreateLocationResponse.md | 15 - .../components/CreateMerchantResponse.md | 15 - .../components/CreateModifierGroupResponse.md | 15 - .../components/CreateModifierResponse.md | 15 - docs/models/components/CreateOrderResponse.md | 15 - .../components/CreateOrderTypeResponse.md | 15 - .../components/CreatePosPaymentResponse.md | 15 - .../models/components/CreateTenderResponse.md | 15 - .../components/CurbsidePickupDetails.md | 11 - docs/models/components/Customers.md | 13 - docs/models/components/DeleteItemResponse.md | 15 - .../components/DeleteLocationResponse.md | 15 - .../components/DeleteMerchantResponse.md | 15 - .../components/DeleteModifierGroupResponse.md | 15 - .../components/DeleteModifierResponse.md | 15 - docs/models/components/DeleteOrderResponse.md | 15 - .../components/DeleteOrderTypeResponse.md | 15 - .../components/DeletePosPaymentResponse.md | 15 - .../models/components/DeleteTenderResponse.md | 15 - docs/models/components/Discounts.md | 14 - docs/models/components/ExternalDetails.md | 13 - docs/models/components/Fulfillments.md | 12 - docs/models/components/GetItemResponse.md | 15 - docs/models/components/GetItemsResponse.md | 17 - docs/models/components/GetLocationResponse.md | 15 - .../models/components/GetLocationsResponse.md | 17 - docs/models/components/GetMerchantResponse.md | 15 - .../models/components/GetMerchantsResponse.md | 17 - .../components/GetModifierGroupResponse.md | 15 - .../components/GetModifierGroupsResponse.md | 17 - docs/models/components/GetModifierResponse.md | 15 - .../models/components/GetModifiersResponse.md | 17 - docs/models/components/GetOrderResponse.md | 15 - .../models/components/GetOrderTypeResponse.md | 15 - .../components/GetOrderTypesResponse.md | 17 - docs/models/components/GetOrdersResponse.md | 17 - .../components/GetPosPaymentResponse.md | 15 - .../components/GetPosPaymentsResponse.md | 17 - docs/models/components/GetTenderResponse.md | 15 - docs/models/components/GetTendersResponse.md | 17 - ...anBeAppliedToASingleOrMultipleModifiers.md | 9 - docs/models/components/Item.md | 40 - docs/models/components/ItemCategories.md | 10 - docs/models/components/ItemCategoriesInput.md | 9 - docs/models/components/ItemInput.md | 34 - docs/models/components/ItemModifierGroups.md | 7 - docs/models/components/ItemOptions.md | 10 - docs/models/components/ItemPricingType.md | 10 - docs/models/components/ItemVariations.md | 15 - docs/models/components/LineItems.md | 18 - docs/models/components/Location.md | 20 - docs/models/components/LocationInput.md | 14 - .../models/components/LocationStatusStatus.md | 12 - docs/models/components/Merchant.md | 22 - docs/models/components/MerchantInput.md | 16 - docs/models/components/MerchantStatus.md | 12 - docs/models/components/Modifier.md | 21 - docs/models/components/ModifierGroup.md | 23 - docs/models/components/ModifierGroupFilter.md | 8 - docs/models/components/ModifierGroupInput.md | 17 - docs/models/components/ModifierGroups.md | 8 - docs/models/components/ModifierInput.md | 15 - docs/models/components/Modifiers.md | 13 - docs/models/components/Order.md | 51 - .../components/OrderAppliedDiscounts.md | 10 - docs/models/components/OrderAppliedTaxes.md | 10 - docs/models/components/OrderDiscounts.md | 12 - docs/models/components/OrderDiscountsScope.md | 9 - docs/models/components/OrderDiscountsType.md | 9 - .../components/OrderFulfillmentStatus.md | 16 - docs/models/components/OrderFulfillments.md | 12 - .../components/OrderFulfillmentsType.md | 9 - docs/models/components/OrderInput.md | 43 - docs/models/components/OrderItem.md | 8 - docs/models/components/OrderItemInput.md | 7 - docs/models/components/OrderLineItems.md | 17 - docs/models/components/OrderModifiers.md | 13 - docs/models/components/OrderPayments.md | 9 - docs/models/components/OrderPickupDetails.md | 24 - docs/models/components/OrderRefunds.md | 11 - docs/models/components/OrderRefundsStatus.md | 11 - docs/models/components/OrderScope.md | 9 - docs/models/components/OrderStatus.md | 16 - docs/models/components/OrderTaxesType.md | 10 - docs/models/components/OrderTenders.md | 25 - docs/models/components/OrderTendersType.md | 10 - docs/models/components/OrderType.md | 15 - docs/models/components/OrderTypeInput.md | 10 - docs/models/components/PaymentCard.md | 25 - docs/models/components/PaymentCardInput.md | 24 - docs/models/components/Payments.md | 10 - docs/models/components/PeriodType.md | 12 + docs/models/components/PickupDetails.md | 25 - docs/models/components/PosBankAccount.md | 16 - docs/models/components/PosPayment.md | 42 - .../components/PosPaymentCardDetails.md | 8 - docs/models/components/PosPaymentInput.md | 36 - .../PosPaymentProcessingFeesType.md | 9 - docs/models/components/PosPaymentSource.md | 16 - docs/models/components/PosPaymentStatus.md | 16 - .../components/PosPaymentStatusStatus.md | 15 - docs/models/components/PosPaymentType.md | 33 - .../components/PosPaymentWalletStatus.md | 14 - docs/models/components/PrepaidType.md | 10 - docs/models/components/PricingType.md | 11 - docs/models/components/ProcessingFees.md | 10 - docs/models/components/ProductType.md | 9 - docs/models/components/Recipient.md | 12 - docs/models/components/Refunds.md | 15 - docs/models/components/Reports.md | 34 +- docs/models/components/ScheduleType.md | 10 - docs/models/components/ServiceCharge.md | 14 - docs/models/components/ServiceChargeInput.md | 13 - docs/models/components/ServiceChargeType.md | 11 - docs/models/components/ShipmentDetails.md | 7 - docs/models/components/Source.md | 17 - docs/models/components/Taxes.md | 15 - docs/models/components/Tender.md | 21 - docs/models/components/TenderInput.md | 15 - docs/models/components/Tenders.md | 29 - docs/models/components/Two.md | 7 - docs/models/components/UpdateItemResponse.md | 15 - .../components/UpdateLocationResponse.md | 15 - .../components/UpdateMerchantResponse.md | 15 - .../components/UpdateModifierGroupResponse.md | 15 - .../components/UpdateModifierResponse.md | 15 - docs/models/components/UpdateOrderResponse.md | 15 - .../components/UpdateOrderTypeResponse.md | 15 - .../components/UpdatePosPaymentResponse.md | 15 - .../models/components/UpdateTenderResponse.md | 15 - docs/models/components/Variations.md | 20 - docs/models/components/WalletDetails.md | 10 - docs/models/errors/Detail2.md | 7 - docs/models/errors/DetailNotFoundResponse2.md | 7 - .../errors/DetailUnprocessableResponse2.md | 7 - docs/models/errors/Two.md | 7 - .../AccountingAttachmentsAllRequest.md | 2 +- .../AccountingAttachmentsDeleteRequest.md | 2 +- .../AccountingAttachmentsDownloadRequest.md | 2 +- .../AccountingAttachmentsOneRequest.md | 2 +- .../AccountingBalanceSheetOneRequest.md | 4 +- .../AccountingBillPaymentsAddRequest.md | 2 +- .../AccountingBillPaymentsAllRequest.md | 2 +- .../AccountingBillPaymentsDeleteRequest.md | 2 +- .../AccountingBillPaymentsOneRequest.md | 2 +- .../AccountingBillPaymentsUpdateRequest.md | 2 +- .../operations/AccountingBillsAddRequest.md | 2 +- .../operations/AccountingBillsAllRequest.md | 2 +- .../AccountingBillsDeleteRequest.md | 2 +- .../operations/AccountingBillsOneRequest.md | 2 +- .../AccountingBillsUpdateRequest.md | 2 +- .../AccountingCompanyInfoOneRequest.md | 2 +- .../AccountingCreditNotesAddRequest.md | 2 +- .../AccountingCreditNotesAllRequest.md | 2 +- .../AccountingCreditNotesDeleteRequest.md | 2 +- .../AccountingCreditNotesOneRequest.md | 2 +- .../AccountingCreditNotesUpdateRequest.md | 2 +- .../AccountingCustomersAddRequest.md | 2 +- .../AccountingCustomersAllRequest.md | 2 +- .../AccountingCustomersDeleteRequest.md | 2 +- .../AccountingCustomersOneRequest.md | 2 +- .../AccountingCustomersUpdateRequest.md | 2 +- .../AccountingDepartmentsAddRequest.md | 2 +- .../AccountingDepartmentsAllRequest.md | 2 +- .../AccountingDepartmentsDeleteRequest.md | 2 +- .../AccountingDepartmentsOneRequest.md | 2 +- .../AccountingDepartmentsUpdateRequest.md | 2 +- .../AccountingExpensesAddRequest.md | 2 +- .../AccountingExpensesAllRequest.md | 2 +- .../AccountingExpensesDeleteRequest.md | 2 +- .../AccountingExpensesOneRequest.md | 2 +- .../AccountingExpensesUpdateRequest.md | 2 +- .../AccountingInvoiceItemsAddRequest.md | 2 +- .../AccountingInvoiceItemsAllRequest.md | 2 +- .../AccountingInvoiceItemsDeleteRequest.md | 2 +- .../AccountingInvoiceItemsOneRequest.md | 2 +- .../AccountingInvoiceItemsUpdateRequest.md | 2 +- .../AccountingInvoicesAddRequest.md | 2 +- .../AccountingInvoicesAllRequest.md | 2 +- .../AccountingInvoicesDeleteRequest.md | 2 +- .../AccountingInvoicesOneRequest.md | 2 +- .../AccountingInvoicesUpdateRequest.md | 2 +- .../AccountingJournalEntriesAddRequest.md | 2 +- .../AccountingJournalEntriesAllRequest.md | 2 +- .../AccountingJournalEntriesDeleteRequest.md | 2 +- .../AccountingJournalEntriesOneRequest.md | 2 +- .../AccountingJournalEntriesUpdateRequest.md | 2 +- .../AccountingLedgerAccountsAddRequest.md | 2 +- .../AccountingLedgerAccountsAllRequest.md | 2 +- .../AccountingLedgerAccountsDeleteRequest.md | 2 +- .../AccountingLedgerAccountsOneRequest.md | 2 +- .../AccountingLedgerAccountsUpdateRequest.md | 2 +- .../AccountingLocationsAddRequest.md | 2 +- .../AccountingLocationsAllRequest.md | 2 +- .../AccountingLocationsDeleteRequest.md | 2 +- .../AccountingLocationsOneRequest.md | 2 +- .../AccountingLocationsUpdateRequest.md | 2 +- .../AccountingPaymentsAddRequest.md | 2 +- .../AccountingPaymentsAllRequest.md | 2 +- .../AccountingPaymentsDeleteRequest.md | 2 +- .../AccountingPaymentsOneRequest.md | 2 +- .../AccountingPaymentsUpdateRequest.md | 2 +- .../AccountingProfitAndLossOneRequest.md | 2 +- .../AccountingPurchaseOrdersAddRequest.md | 2 +- .../AccountingPurchaseOrdersAllRequest.md | 2 +- .../AccountingPurchaseOrdersDeleteRequest.md | 2 +- .../AccountingPurchaseOrdersOneRequest.md | 2 +- .../AccountingPurchaseOrdersUpdateRequest.md | 2 +- .../AccountingSubsidiariesAddRequest.md | 2 +- .../AccountingSubsidiariesAllRequest.md | 2 +- .../AccountingSubsidiariesDeleteRequest.md | 2 +- .../AccountingSubsidiariesOneRequest.md | 2 +- .../AccountingSubsidiariesUpdateRequest.md | 2 +- .../AccountingSuppliersAddRequest.md | 2 +- .../AccountingSuppliersAllRequest.md | 2 +- .../AccountingSuppliersDeleteRequest.md | 2 +- .../AccountingSuppliersOneRequest.md | 2 +- .../AccountingSuppliersUpdateRequest.md | 2 +- .../AccountingTaxRatesAddRequest.md | 2 +- .../AccountingTaxRatesAllRequest.md | 2 +- .../AccountingTaxRatesDeleteRequest.md | 2 +- .../AccountingTaxRatesOneRequest.md | 2 +- .../AccountingTaxRatesUpdateRequest.md | 2 +- .../AccountingTrackingCategoriesAddRequest.md | 2 +- .../AccountingTrackingCategoriesAllRequest.md | 2 +- ...countingTrackingCategoriesDeleteRequest.md | 2 +- .../AccountingTrackingCategoriesOneRequest.md | 2 +- ...countingTrackingCategoriesUpdateRequest.md | 2 +- .../operations/AtsApplicantsAddRequest.md | 2 +- .../operations/AtsApplicantsAllRequest.md | 2 +- .../operations/AtsApplicantsDeleteRequest.md | 2 +- .../operations/AtsApplicantsOneRequest.md | 2 +- .../operations/AtsApplicantsUpdateRequest.md | 2 +- .../operations/AtsApplicationsAddRequest.md | 2 +- .../operations/AtsApplicationsAllRequest.md | 2 +- .../AtsApplicationsDeleteRequest.md | 2 +- .../operations/AtsApplicationsOneRequest.md | 2 +- .../AtsApplicationsUpdateRequest.md | 2 +- docs/models/operations/AtsJobsAllRequest.md | 2 +- docs/models/operations/AtsJobsOneRequest.md | 2 +- .../operations/CrmActivitiesAddRequest.md | 2 +- .../operations/CrmActivitiesAllRequest.md | 2 +- .../operations/CrmActivitiesDeleteRequest.md | 2 +- .../operations/CrmActivitiesOneRequest.md | 2 +- .../operations/CrmActivitiesUpdateRequest.md | 2 +- .../operations/CrmCompaniesAddRequest.md | 2 +- .../operations/CrmCompaniesAllRequest.md | 2 +- .../operations/CrmCompaniesDeleteRequest.md | 2 +- .../operations/CrmCompaniesOneRequest.md | 2 +- .../operations/CrmCompaniesUpdateRequest.md | 2 +- .../operations/CrmContactsAddRequest.md | 2 +- .../operations/CrmContactsAllRequest.md | 2 +- .../operations/CrmContactsDeleteRequest.md | 2 +- .../operations/CrmContactsOneRequest.md | 2 +- .../operations/CrmContactsUpdateRequest.md | 2 +- docs/models/operations/CrmLeadsAddRequest.md | 2 +- docs/models/operations/CrmLeadsAllRequest.md | 2 +- .../operations/CrmLeadsDeleteRequest.md | 2 +- docs/models/operations/CrmLeadsOneRequest.md | 2 +- .../operations/CrmLeadsUpdateRequest.md | 2 +- docs/models/operations/CrmNotesAddRequest.md | 2 +- docs/models/operations/CrmNotesAllRequest.md | 2 +- .../operations/CrmNotesDeleteRequest.md | 2 +- docs/models/operations/CrmNotesOneRequest.md | 2 +- .../operations/CrmNotesUpdateRequest.md | 2 +- .../operations/CrmOpportunitiesAddRequest.md | 2 +- .../operations/CrmOpportunitiesAllRequest.md | 2 +- .../CrmOpportunitiesDeleteRequest.md | 2 +- .../operations/CrmOpportunitiesOneRequest.md | 2 +- .../CrmOpportunitiesUpdateRequest.md | 2 +- .../operations/CrmPipelinesAddRequest.md | 2 +- .../operations/CrmPipelinesAllRequest.md | 2 +- .../operations/CrmPipelinesDeleteRequest.md | 2 +- .../operations/CrmPipelinesOneRequest.md | 2 +- .../operations/CrmPipelinesUpdateRequest.md | 2 +- docs/models/operations/CrmUsersAddRequest.md | 2 +- docs/models/operations/CrmUsersAllRequest.md | 2 +- .../operations/CrmUsersDeleteRequest.md | 2 +- docs/models/operations/CrmUsersOneRequest.md | 2 +- .../operations/CrmUsersUpdateRequest.md | 2 +- .../EcommerceCustomersAllRequest.md | 2 +- .../EcommerceCustomersOneRequest.md | 2 +- .../operations/EcommerceOrdersAllRequest.md | 2 +- .../operations/EcommerceOrdersOneRequest.md | 2 +- .../operations/EcommerceProductsAllRequest.md | 2 +- .../operations/EcommerceProductsOneRequest.md | 2 +- .../operations/EcommerceStoresOneRequest.md | 2 +- .../FileStorageDriveGroupsAddRequest.md | 2 +- .../FileStorageDriveGroupsAllRequest.md | 2 +- .../FileStorageDriveGroupsDeleteRequest.md | 2 +- .../FileStorageDriveGroupsOneRequest.md | 2 +- .../FileStorageDriveGroupsUpdateRequest.md | 2 +- .../operations/FileStorageDrivesAddRequest.md | 2 +- .../operations/FileStorageDrivesAllRequest.md | 2 +- .../FileStorageDrivesDeleteRequest.md | 2 +- .../operations/FileStorageDrivesOneRequest.md | 2 +- .../FileStorageDrivesUpdateRequest.md | 2 +- .../operations/FileStorageFilesAllRequest.md | 2 +- .../FileStorageFilesDeleteRequest.md | 2 +- .../FileStorageFilesDownloadRequest.md | 2 +- .../FileStorageFilesExportRequest.md | 2 +- .../operations/FileStorageFilesOneRequest.md | 2 +- .../FileStorageFilesSearchRequest.md | 2 +- .../FileStorageFilesUpdateRequest.md | 2 +- .../FileStorageFoldersAddRequest.md | 2 +- .../FileStorageFoldersCopyRequest.md | 2 +- .../FileStorageFoldersDeleteRequest.md | 2 +- .../FileStorageFoldersOneRequest.md | 2 +- .../FileStorageFoldersUpdateRequest.md | 2 +- .../FileStorageSharedLinksAddRequest.md | 2 +- .../FileStorageSharedLinksAllRequest.md | 2 +- .../FileStorageSharedLinksDeleteRequest.md | 2 +- .../FileStorageSharedLinksOneRequest.md | 2 +- .../FileStorageSharedLinksUpdateRequest.md | 2 +- .../FileStorageUploadSessionsAddRequest.md | 2 +- .../FileStorageUploadSessionsDeleteRequest.md | 2 +- .../FileStorageUploadSessionsFinishRequest.md | 2 +- .../FileStorageUploadSessionsOneRequest.md | 2 +- .../operations/HrisCompaniesAddRequest.md | 2 +- .../operations/HrisCompaniesAllRequest.md | 2 +- .../operations/HrisCompaniesDeleteRequest.md | 2 +- .../operations/HrisCompaniesOneRequest.md | 2 +- .../operations/HrisCompaniesUpdateRequest.md | 2 +- .../operations/HrisDepartmentsAddRequest.md | 2 +- .../operations/HrisDepartmentsAllRequest.md | 2 +- .../HrisDepartmentsDeleteRequest.md | 2 +- .../operations/HrisDepartmentsOneRequest.md | 2 +- .../HrisDepartmentsUpdateRequest.md | 2 +- .../HrisEmployeePayrollsAllRequest.md | 2 +- .../HrisEmployeePayrollsOneRequest.md | 2 +- .../HrisEmployeeSchedulesAllRequest.md | 2 +- .../operations/HrisEmployeesAddRequest.md | 2 +- .../operations/HrisEmployeesAllRequest.md | 2 +- .../operations/HrisEmployeesDeleteRequest.md | 2 +- .../operations/HrisEmployeesOneRequest.md | 2 +- .../operations/HrisEmployeesUpdateRequest.md | 2 +- .../operations/HrisPayrollsAllRequest.md | 2 +- .../operations/HrisPayrollsOneRequest.md | 2 +- .../HrisTimeOffRequestsAddRequest.md | 2 +- .../HrisTimeOffRequestsAllRequest.md | 2 +- .../HrisTimeOffRequestsDeleteRequest.md | 2 +- .../HrisTimeOffRequestsOneRequest.md | 2 +- .../HrisTimeOffRequestsUpdateRequest.md | 2 +- .../IssueTrackingCollectionTagsAllRequest.md | 2 +- ...ckingCollectionTicketCommentsAddRequest.md | 2 +- ...ckingCollectionTicketCommentsAllRequest.md | 2 +- ...ngCollectionTicketCommentsDeleteRequest.md | 2 +- ...ckingCollectionTicketCommentsOneRequest.md | 2 +- ...ngCollectionTicketCommentsUpdateRequest.md | 2 +- ...ssueTrackingCollectionTicketsAddRequest.md | 2 +- ...ssueTrackingCollectionTicketsAllRequest.md | 2 +- ...eTrackingCollectionTicketsDeleteRequest.md | 2 +- ...ssueTrackingCollectionTicketsOneRequest.md | 2 +- ...eTrackingCollectionTicketsUpdateRequest.md | 2 +- .../IssueTrackingCollectionUsersAllRequest.md | 2 +- .../IssueTrackingCollectionUsersOneRequest.md | 2 +- .../IssueTrackingCollectionsAllRequest.md | 2 +- .../IssueTrackingCollectionsOneRequest.md | 2 +- docs/models/operations/LeadLeadsAddRequest.md | 12 - .../models/operations/LeadLeadsAddResponse.md | 12 - docs/models/operations/LeadLeadsAllRequest.md | 16 - .../models/operations/LeadLeadsAllResponse.md | 12 - .../operations/LeadLeadsDeleteRequest.md | 12 - .../operations/LeadLeadsDeleteResponse.md | 12 - docs/models/operations/LeadLeadsOneRequest.md | 13 - .../models/operations/LeadLeadsOneResponse.md | 12 - .../operations/LeadLeadsUpdateRequest.md | 13 - .../operations/LeadLeadsUpdateResponse.md | 12 - docs/models/operations/PosItemsAddRequest.md | 12 - docs/models/operations/PosItemsAddResponse.md | 12 - docs/models/operations/PosItemsAllRequest.md | 14 - docs/models/operations/PosItemsAllResponse.md | 12 - .../operations/PosItemsDeleteRequest.md | 12 - .../operations/PosItemsDeleteResponse.md | 12 - docs/models/operations/PosItemsOneRequest.md | 13 - docs/models/operations/PosItemsOneResponse.md | 12 - .../operations/PosItemsUpdateRequest.md | 13 - .../operations/PosItemsUpdateResponse.md | 12 - .../operations/PosLocationsAddRequest.md | 12 - .../operations/PosLocationsAddResponse.md | 12 - .../operations/PosLocationsAllRequest.md | 14 - .../operations/PosLocationsAllResponse.md | 12 - .../operations/PosLocationsDeleteRequest.md | 12 - .../operations/PosLocationsDeleteResponse.md | 12 - .../operations/PosLocationsOneRequest.md | 13 - .../operations/PosLocationsOneResponse.md | 12 - .../operations/PosLocationsUpdateRequest.md | 13 - .../operations/PosLocationsUpdateResponse.md | 12 - .../operations/PosMerchantsAddRequest.md | 12 - .../operations/PosMerchantsAddResponse.md | 12 - .../operations/PosMerchantsAllRequest.md | 14 - .../operations/PosMerchantsAllResponse.md | 12 - .../operations/PosMerchantsDeleteRequest.md | 12 - .../operations/PosMerchantsDeleteResponse.md | 12 - .../operations/PosMerchantsOneRequest.md | 13 - .../operations/PosMerchantsOneResponse.md | 12 - .../operations/PosMerchantsUpdateRequest.md | 13 - .../operations/PosMerchantsUpdateResponse.md | 12 - .../operations/PosModifierGroupsAddRequest.md | 12 - .../PosModifierGroupsAddResponse.md | 12 - .../operations/PosModifierGroupsAllRequest.md | 14 - .../PosModifierGroupsAllResponse.md | 12 - .../PosModifierGroupsDeleteRequest.md | 12 - .../PosModifierGroupsDeleteResponse.md | 12 - .../operations/PosModifierGroupsOneRequest.md | 13 - .../PosModifierGroupsOneResponse.md | 12 - .../PosModifierGroupsUpdateRequest.md | 13 - .../PosModifierGroupsUpdateResponse.md | 12 - .../operations/PosModifiersAddRequest.md | 12 - .../operations/PosModifiersAddResponse.md | 12 - .../operations/PosModifiersAllRequest.md | 14 - .../operations/PosModifiersAllResponse.md | 12 - .../operations/PosModifiersDeleteRequest.md | 13 - .../operations/PosModifiersDeleteResponse.md | 12 - .../operations/PosModifiersOneRequest.md | 14 - .../operations/PosModifiersOneResponse.md | 12 - .../operations/PosModifiersUpdateRequest.md | 13 - .../operations/PosModifiersUpdateResponse.md | 12 - .../operations/PosOrderTypesAddRequest.md | 12 - .../operations/PosOrderTypesAddResponse.md | 12 - .../operations/PosOrderTypesAllRequest.md | 14 - .../operations/PosOrderTypesAllResponse.md | 12 - .../operations/PosOrderTypesDeleteRequest.md | 12 - .../operations/PosOrderTypesDeleteResponse.md | 12 - .../operations/PosOrderTypesOneRequest.md | 13 - .../operations/PosOrderTypesOneResponse.md | 12 - .../operations/PosOrderTypesUpdateRequest.md | 13 - .../operations/PosOrderTypesUpdateResponse.md | 12 - docs/models/operations/PosOrdersAddRequest.md | 12 - .../models/operations/PosOrdersAddResponse.md | 12 - docs/models/operations/PosOrdersAllRequest.md | 15 - .../models/operations/PosOrdersAllResponse.md | 12 - .../operations/PosOrdersDeleteRequest.md | 12 - .../operations/PosOrdersDeleteResponse.md | 12 - docs/models/operations/PosOrdersOneRequest.md | 13 - .../models/operations/PosOrdersOneResponse.md | 12 - docs/models/operations/PosOrdersPayRequest.md | 14 - .../models/operations/PosOrdersPayResponse.md | 12 - .../operations/PosOrdersUpdateRequest.md | 13 - .../operations/PosOrdersUpdateResponse.md | 12 - .../operations/PosPaymentsAddRequest.md | 12 - .../operations/PosPaymentsAddResponse.md | 12 - .../operations/PosPaymentsAllRequest.md | 14 - .../operations/PosPaymentsAllResponse.md | 12 - .../operations/PosPaymentsDeleteRequest.md | 12 - .../operations/PosPaymentsDeleteResponse.md | 12 - .../operations/PosPaymentsOneRequest.md | 13 - .../operations/PosPaymentsOneResponse.md | 12 - .../operations/PosPaymentsUpdateRequest.md | 13 - .../operations/PosPaymentsUpdateResponse.md | 12 - .../models/operations/PosTendersAddRequest.md | 12 - .../operations/PosTendersAddResponse.md | 12 - .../models/operations/PosTendersAllRequest.md | 14 - .../operations/PosTendersAllResponse.md | 12 - .../operations/PosTendersDeleteRequest.md | 12 - .../operations/PosTendersDeleteResponse.md | 12 - .../models/operations/PosTendersOneRequest.md | 13 - .../operations/PosTendersOneResponse.md | 12 - .../operations/PosTendersUpdateRequest.md | 13 - .../operations/PosTendersUpdateResponse.md | 12 - .../operations/SmsMessagesAddRequest.md | 2 +- .../operations/SmsMessagesAllRequest.md | 2 +- .../operations/SmsMessagesDeleteRequest.md | 2 +- .../operations/SmsMessagesOneRequest.md | 2 +- .../operations/SmsMessagesUpdateRequest.md | 2 +- ...VaultConnectionCustomMappingsAllRequest.md | 2 +- .../VaultConnectionSettingsAllRequest.md | 2 +- .../VaultConnectionSettingsUpdateRequest.md | 2 +- .../operations/VaultConnectionsAllRequest.md | 2 +- .../VaultConnectionsDeleteRequest.md | 2 +- .../VaultConnectionsImportRequest.md | 2 +- .../operations/VaultConnectionsOneRequest.md | 2 +- .../VaultConnectionsTokenRequest.md | 2 +- .../VaultConnectionsUpdateRequest.md | 2 +- .../VaultCreateCallbackStateRequest.md | 2 +- .../operations/VaultCustomFieldsAllRequest.md | 2 +- .../VaultCustomMappingsAllRequest.md | 2 +- docs/models/operations/VaultLogsAllRequest.md | 2 +- .../operations/VaultSessionsCreateRequest.md | 2 +- .../VaultValidateConnectionStateRequest.md | 2 +- docs/sdks/accounting/README.md | 6 +- docs/sdks/activities/README.md | 14 +- docs/sdks/apideck/README.md | 4 +- docs/sdks/apideckcompanies/README.md | 10 +- docs/sdks/apideckcustomers/README.md | 4 +- docs/sdks/apideckdepartments/README.md | 10 +- docs/sdks/apideckleads/README.md | 576 ----- docs/sdks/apidecklocations/README.md | 444 ---- docs/sdks/apideckorders/README.md | 1281 ---------- docs/sdks/apideckpayments/README.md | 578 ----- docs/sdks/apiresourcecoverage/README.md | 2 +- docs/sdks/apiresources/README.md | 2 +- docs/sdks/apis/README.md | 4 +- docs/sdks/applicants/README.md | 10 +- docs/sdks/applications/README.md | 10 +- docs/sdks/ats/README.md | 6 +- docs/sdks/attachments/README.md | 8 +- docs/sdks/balancesheet/README.md | 5 +- docs/sdks/billpayments/README.md | 10 +- docs/sdks/bills/README.md | 10 +- docs/sdks/collections/README.md | 4 +- docs/sdks/collectiontags/README.md | 2 +- docs/sdks/collectionticketcomments/README.md | 10 +- docs/sdks/collectiontickets/README.md | 13 +- docs/sdks/collectionusers/README.md | 4 +- docs/sdks/companies/README.md | 10 +- docs/sdks/companyinfo/README.md | 2 +- docs/sdks/connectioncustommappings/README.md | 2 +- docs/sdks/connections/README.md | 33 +- docs/sdks/connectionsettings/README.md | 4 +- docs/sdks/connector/README.md | 6 +- docs/sdks/connectordocs/README.md | 2 +- docs/sdks/connectorresources/README.md | 2 +- docs/sdks/connectors/README.md | 4 +- docs/sdks/consumerrequestcounts/README.md | 2 +- docs/sdks/consumers/README.md | 10 +- docs/sdks/contacts/README.md | 14 +- docs/sdks/createcallback/README.md | 2 +- docs/sdks/creditnotes/README.md | 10 +- docs/sdks/crm/README.md | 6 +- docs/sdks/customers/README.md | 10 +- docs/sdks/customfields/README.md | 2 +- docs/sdks/custommappings/README.md | 6 +- docs/sdks/departments/README.md | 10 +- docs/sdks/drivegroups/README.md | 10 +- docs/sdks/drives/README.md | 10 +- docs/sdks/ecommerce/README.md | 6 +- docs/sdks/employeepayrolls/README.md | 4 +- docs/sdks/employees/README.md | 16 +- docs/sdks/employeeschedules/README.md | 2 +- docs/sdks/expenses/README.md | 10 +- docs/sdks/files/README.md | 27 +- docs/sdks/filestorage/README.md | 6 +- docs/sdks/folders/README.md | 10 +- docs/sdks/hris/README.md | 6 +- docs/sdks/invoiceitems/README.md | 10 +- docs/sdks/invoices/README.md | 10 +- docs/sdks/issuetracking/README.md | 6 +- docs/sdks/items/README.md | 496 ---- docs/sdks/jobs/README.md | 4 +- docs/sdks/journalentries/README.md | 10 +- docs/sdks/lead/README.md | 2 - docs/sdks/leads/README.md | 11 +- docs/sdks/ledgeraccounts/README.md | 10 +- docs/sdks/locations/README.md | 10 +- docs/sdks/logs/README.md | 2 +- docs/sdks/merchants/README.md | 464 ---- docs/sdks/messages/README.md | 10 +- docs/sdks/modifiergroups/README.md | 414 ---- docs/sdks/modifiers/README.md | 398 --- docs/sdks/notes/README.md | 10 +- docs/sdks/opportunities/README.md | 15 +- docs/sdks/orders/README.md | 4 +- docs/sdks/ordertypes/README.md | 378 --- docs/sdks/payments/README.md | 10 +- docs/sdks/payrolls/README.md | 4 +- docs/sdks/pipelines/README.md | 10 +- docs/sdks/pos/README.md | 2 - docs/sdks/products/README.md | 4 +- docs/sdks/profitandloss/README.md | 2 +- docs/sdks/purchaseorders/README.md | 10 +- docs/sdks/sessions/README.md | 6 +- docs/sdks/sharedlinks/README.md | 10 +- docs/sdks/sms/README.md | 6 +- docs/sdks/stores/README.md | 2 +- docs/sdks/subsidiaries/README.md | 10 +- docs/sdks/suppliers/README.md | 10 +- docs/sdks/taxrates/README.md | 10 +- docs/sdks/tenders/README.md | 384 --- docs/sdks/timeoffrequests/README.md | 10 +- docs/sdks/trackingcategories/README.md | 10 +- docs/sdks/uploadsessions/README.md | 8 +- docs/sdks/users/README.md | 10 +- docs/sdks/validateconnection/README.md | 2 +- docs/sdks/vault/README.md | 6 +- docs/sdks/webhook/README.md | 6 +- docs/sdks/webhooks/README.md | 10 +- src/main/java/com/apideck/unify/Apideck.java | 22 +- .../java/com/apideck/unify/ApideckLeads.java | 1315 ---------- .../com/apideck/unify/ApideckLocations.java | 1315 ---------- .../java/com/apideck/unify/ApideckOrders.java | 1579 ------------ .../com/apideck/unify/ApideckPayments.java | 1315 ---------- .../java/com/apideck/unify/Connections.java | 26 +- .../com/apideck/unify/CustomMappings.java | 6 +- src/main/java/com/apideck/unify/Items.java | 1315 ---------- src/main/java/com/apideck/unify/Lead.java | 22 - .../java/com/apideck/unify/Merchants.java | 1315 ---------- .../com/apideck/unify/ModifierGroups.java | 1315 ---------- .../java/com/apideck/unify/Modifiers.java | 1315 ---------- .../java/com/apideck/unify/OrderTypes.java | 1315 ---------- src/main/java/com/apideck/unify/Pos.java | 70 - .../com/apideck/unify/SDKConfiguration.java | 4 +- src/main/java/com/apideck/unify/Sessions.java | 6 +- src/main/java/com/apideck/unify/Tenders.java | 1315 ---------- .../unify/models/components/AchDetails.java | 256 -- .../models/components/AppliedDiscounts.java | 275 --- .../unify/models/components/AppliedTaxes.java | 275 --- .../models/components/BalanceSheetFilter.java | 159 +- .../unify/models/components/CardBrand.java | 39 - .../unify/models/components/CardDetails.java | 129 - .../models/components/CardEntryMethod.java | 30 - .../unify/models/components/CardStatus.java | 29 - .../unify/models/components/CardType.java | 26 - .../unify/models/components/CashDetails.java | 194 -- .../models/components/CreateItemResponse.java | 298 --- .../components/CreateLocationResponse.java | 298 --- .../components/CreateMerchantResponse.java | 298 --- .../CreateModifierGroupResponse.java | 298 --- .../components/CreateModifierResponse.java | 298 --- .../components/CreateOrderResponse.java | 298 --- .../components/CreateOrderTypeResponse.java | 298 --- .../components/CreatePosPaymentResponse.java | 298 --- .../components/CreateTenderResponse.java | 298 --- .../components/CurbsidePickupDetails.java | 197 -- .../unify/models/components/Customers.java | 324 --- .../models/components/DeleteItemResponse.java | 298 --- .../components/DeleteLocationResponse.java | 298 --- .../components/DeleteMerchantResponse.java | 298 --- .../DeleteModifierGroupResponse.java | 298 --- .../components/DeleteModifierResponse.java | 298 --- .../components/DeleteOrderResponse.java | 298 --- .../components/DeleteOrderTypeResponse.java | 298 --- .../components/DeletePosPaymentResponse.java | 298 --- .../components/DeleteTenderResponse.java | 298 --- .../unify/models/components/Detail.java | 12 +- .../unify/models/components/Discounts.java | 408 --- .../models/components/ExternalDetails.java | 327 --- .../unify/models/components/Fulfillments.java | 300 --- .../models/components/GetItemResponse.java | 298 --- .../models/components/GetItemsResponse.java | 435 ---- .../components/GetLocationResponse.java | 298 --- .../components/GetLocationsResponse.java | 435 ---- .../components/GetMerchantResponse.java | 298 --- .../components/GetMerchantsResponse.java | 435 ---- .../components/GetModifierGroupResponse.java | 298 --- .../components/GetModifierGroupsResponse.java | 435 ---- .../components/GetModifierResponse.java | 298 --- .../components/GetModifiersResponse.java | 435 ---- .../models/components/GetOrderResponse.java | 298 --- .../components/GetOrderTypeResponse.java | 298 --- .../components/GetOrderTypesResponse.java | 435 ---- .../models/components/GetOrdersResponse.java | 435 ---- .../components/GetPosPaymentResponse.java | 298 --- .../components/GetPosPaymentsResponse.java | 435 ---- .../models/components/GetTenderResponse.java | 298 --- .../models/components/GetTendersResponse.java | 435 ---- ...BeAppliedToASingleOrMultipleModifiers.java | 24 - .../apideck/unify/models/components/Item.java | 1746 ------------- .../models/components/ItemCategories.java | 214 -- .../components/ItemCategoriesInput.java | 154 -- .../unify/models/components/ItemInput.java | 1384 ----------- .../models/components/ItemModifierGroups.java | 61 - .../unify/models/components/ItemOptions.java | 193 -- .../models/components/ItemPricingType.java | 25 - .../models/components/ItemVariations.java | 427 ---- .../unify/models/components/LineItems.java | 574 ----- .../unify/models/components/Location.java | 820 ------- .../models/components/LocationInput.java | 458 ---- .../components/LocationStatusStatus.java | 28 - .../unify/models/components/Merchant.java | 923 ------- .../models/components/MerchantInput.java | 561 ----- .../models/components/MerchantStatus.java | 28 - .../unify/models/components/Modifier.java | 802 ------ .../models/components/ModifierGroup.java | 911 ------- .../components/ModifierGroupFilter.java | 124 - .../models/components/ModifierGroupInput.java | 549 ----- .../models/components/ModifierGroups.java | 127 - .../models/components/ModifierInput.java | 440 ---- .../unify/models/components/Modifiers.java | 342 --- .../unify/models/components/Order.java | 2183 ----------------- .../components/OrderAppliedDiscounts.java | 215 -- .../models/components/OrderAppliedTaxes.java | 215 -- .../models/components/OrderDiscounts.java | 288 --- .../components/OrderDiscountsScope.java | 24 - .../models/components/OrderDiscountsType.java | 24 - .../components/OrderFulfillmentStatus.java | 32 - .../models/components/OrderFulfillments.java | 300 --- .../components/OrderFulfillmentsType.java | 24 - .../unify/models/components/OrderInput.java | 1718 ------------- .../unify/models/components/OrderItem.java | 127 - .../models/components/OrderItemInput.java | 61 - .../models/components/OrderLineItems.java | 514 ---- .../models/components/OrderModifiers.java | 341 --- .../models/components/OrderPayments.java | 173 -- .../models/components/OrderPickupDetails.java | 1178 --------- .../unify/models/components/OrderRefunds.java | 258 -- .../models/components/OrderRefundsStatus.java | 26 - .../unify/models/components/OrderScope.java | 24 - .../unify/models/components/OrderStatus.java | 32 - .../models/components/OrderTaxesType.java | 25 - .../unify/models/components/OrderTenders.java | 940 ------- .../models/components/OrderTendersType.java | 25 - .../unify/models/components/OrderType.java | 517 ---- .../models/components/OrderTypeInput.java | 215 -- .../unify/models/components/PaymentCard.java | 876 ------- .../models/components/PaymentCardInput.java | 816 ------ .../unify/models/components/Payments.java | 233 -- .../{ScheduleType.java => PeriodType.java} | 10 +- .../models/components/PickupDetails.java | 1220 --------- .../models/components/PosBankAccount.java | 505 ---- .../unify/models/components/PosPayment.java | 1848 -------------- .../components/PosPaymentCardDetails.java | 129 - .../models/components/PosPaymentInput.java | 1485 ----------- .../PosPaymentProcessingFeesType.java | 24 - .../models/components/PosPaymentSource.java | 32 - .../models/components/PosPaymentStatus.java | 32 - .../components/PosPaymentStatusStatus.java | 31 - .../models/components/PosPaymentType.java | 49 - .../components/PosPaymentWalletStatus.java | 30 - .../unify/models/components/PrepaidType.java | 25 - .../unify/models/components/PricingType.java | 26 - .../models/components/ProcessingFees.java | 197 -- .../unify/models/components/ProductType.java | 24 - .../unify/models/components/Recipient.java | 281 --- .../unify/models/components/Refunds.java | 498 ---- .../models/components/ServiceCharge.java | 457 ---- .../models/components/ServiceChargeInput.java | 397 --- .../models/components/ServiceChargeType.java | 27 - .../models/components/ShipmentDetails.java | 61 - .../unify/models/components/Source.java | 33 - .../unify/models/components/Taxes.java | 465 ---- .../unify/models/components/Tender.java | 843 ------- .../unify/models/components/TenderInput.java | 481 ---- .../unify/models/components/Tenders.java | 1180 --------- .../apideck/unify/models/components/Two.java | 61 - .../models/components/UpdateItemResponse.java | 298 --- .../components/UpdateLocationResponse.java | 298 --- .../components/UpdateMerchantResponse.java | 298 --- .../UpdateModifierGroupResponse.java | 298 --- .../components/UpdateModifierResponse.java | 298 --- .../components/UpdateOrderResponse.java | 298 --- .../components/UpdateOrderTypeResponse.java | 298 --- .../components/UpdatePosPaymentResponse.java | 298 --- .../components/UpdateTenderResponse.java | 298 --- .../unify/models/components/Variations.java | 728 ------ .../models/components/WalletDetails.java | 132 - .../apideck/unify/models/errors/Detail.java | 12 +- .../apideck/unify/models/errors/Detail2.java | 61 - .../errors/DetailNotFoundResponse2.java | 61 - .../errors/DetailUnprocessableResponse2.java | 61 - .../models/errors/NotFoundResponseDetail.java | 12 +- .../com/apideck/unify/models/errors/Two.java | 61 - .../errors/UnauthorizedResponseDetail.java | 12 +- .../errors/UnprocessableResponseDetail.java | 12 +- .../AccountingAttachmentsAllRequest.java | 46 +- .../AccountingAttachmentsDeleteRequest.java | 46 +- .../AccountingAttachmentsDownloadRequest.java | 46 +- .../AccountingAttachmentsOneRequest.java | 46 +- .../AccountingBalanceSheetOneRequest.java | 46 +- .../AccountingBillPaymentsAddRequest.java | 46 +- .../AccountingBillPaymentsAllRequest.java | 46 +- .../AccountingBillPaymentsDeleteRequest.java | 46 +- .../AccountingBillPaymentsOneRequest.java | 46 +- .../AccountingBillPaymentsUpdateRequest.java | 46 +- .../operations/AccountingBillsAddRequest.java | 46 +- .../operations/AccountingBillsAllRequest.java | 46 +- .../AccountingBillsDeleteRequest.java | 46 +- .../operations/AccountingBillsOneRequest.java | 46 +- .../AccountingBillsUpdateRequest.java | 46 +- .../AccountingCompanyInfoOneRequest.java | 46 +- .../AccountingCreditNotesAddRequest.java | 46 +- .../AccountingCreditNotesAllRequest.java | 46 +- .../AccountingCreditNotesDeleteRequest.java | 46 +- .../AccountingCreditNotesOneRequest.java | 46 +- .../AccountingCreditNotesUpdateRequest.java | 46 +- .../AccountingCustomersAddRequest.java | 46 +- .../AccountingCustomersAllRequest.java | 46 +- .../AccountingCustomersDeleteRequest.java | 46 +- .../AccountingCustomersOneRequest.java | 46 +- .../AccountingCustomersUpdateRequest.java | 46 +- .../AccountingDepartmentsAddRequest.java | 46 +- .../AccountingDepartmentsAllRequest.java | 46 +- .../AccountingDepartmentsDeleteRequest.java | 46 +- .../AccountingDepartmentsOneRequest.java | 46 +- .../AccountingDepartmentsUpdateRequest.java | 46 +- .../AccountingExpensesAddRequest.java | 46 +- .../AccountingExpensesAllRequest.java | 46 +- .../AccountingExpensesDeleteRequest.java | 46 +- .../AccountingExpensesOneRequest.java | 46 +- .../AccountingExpensesUpdateRequest.java | 46 +- .../AccountingInvoiceItemsAddRequest.java | 46 +- .../AccountingInvoiceItemsAllRequest.java | 46 +- .../AccountingInvoiceItemsDeleteRequest.java | 46 +- .../AccountingInvoiceItemsOneRequest.java | 46 +- .../AccountingInvoiceItemsUpdateRequest.java | 46 +- .../AccountingInvoicesAddRequest.java | 46 +- .../AccountingInvoicesAllRequest.java | 46 +- .../AccountingInvoicesDeleteRequest.java | 46 +- .../AccountingInvoicesOneRequest.java | 46 +- .../AccountingInvoicesUpdateRequest.java | 46 +- .../AccountingJournalEntriesAddRequest.java | 46 +- .../AccountingJournalEntriesAllRequest.java | 46 +- ...AccountingJournalEntriesDeleteRequest.java | 46 +- .../AccountingJournalEntriesOneRequest.java | 46 +- ...AccountingJournalEntriesUpdateRequest.java | 46 +- .../AccountingLedgerAccountsAddRequest.java | 46 +- .../AccountingLedgerAccountsAllRequest.java | 46 +- ...AccountingLedgerAccountsDeleteRequest.java | 46 +- .../AccountingLedgerAccountsOneRequest.java | 46 +- ...AccountingLedgerAccountsUpdateRequest.java | 46 +- .../AccountingLocationsAddRequest.java | 46 +- .../AccountingLocationsAllRequest.java | 46 +- .../AccountingLocationsDeleteRequest.java | 46 +- .../AccountingLocationsOneRequest.java | 46 +- .../AccountingLocationsUpdateRequest.java | 46 +- .../AccountingPaymentsAddRequest.java | 46 +- .../AccountingPaymentsAllRequest.java | 46 +- .../AccountingPaymentsDeleteRequest.java | 46 +- .../AccountingPaymentsOneRequest.java | 46 +- .../AccountingPaymentsUpdateRequest.java | 46 +- .../AccountingProfitAndLossOneRequest.java | 46 +- .../AccountingPurchaseOrdersAddRequest.java | 46 +- .../AccountingPurchaseOrdersAllRequest.java | 46 +- ...AccountingPurchaseOrdersDeleteRequest.java | 46 +- .../AccountingPurchaseOrdersOneRequest.java | 46 +- ...AccountingPurchaseOrdersUpdateRequest.java | 46 +- .../AccountingSubsidiariesAddRequest.java | 46 +- .../AccountingSubsidiariesAllRequest.java | 46 +- .../AccountingSubsidiariesDeleteRequest.java | 46 +- .../AccountingSubsidiariesOneRequest.java | 46 +- .../AccountingSubsidiariesUpdateRequest.java | 46 +- .../AccountingSuppliersAddRequest.java | 46 +- .../AccountingSuppliersAllRequest.java | 46 +- .../AccountingSuppliersDeleteRequest.java | 46 +- .../AccountingSuppliersOneRequest.java | 46 +- .../AccountingSuppliersUpdateRequest.java | 46 +- .../AccountingTaxRatesAddRequest.java | 46 +- .../AccountingTaxRatesAllRequest.java | 46 +- .../AccountingTaxRatesDeleteRequest.java | 46 +- .../AccountingTaxRatesOneRequest.java | 46 +- .../AccountingTaxRatesUpdateRequest.java | 46 +- ...ccountingTrackingCategoriesAddRequest.java | 46 +- ...ccountingTrackingCategoriesAllRequest.java | 46 +- ...untingTrackingCategoriesDeleteRequest.java | 46 +- ...ccountingTrackingCategoriesOneRequest.java | 46 +- ...untingTrackingCategoriesUpdateRequest.java | 46 +- .../operations/AtsApplicantsAddRequest.java | 46 +- .../operations/AtsApplicantsAllRequest.java | 46 +- .../AtsApplicantsDeleteRequest.java | 46 +- .../operations/AtsApplicantsOneRequest.java | 46 +- .../AtsApplicantsUpdateRequest.java | 46 +- .../operations/AtsApplicationsAddRequest.java | 46 +- .../operations/AtsApplicationsAllRequest.java | 46 +- .../AtsApplicationsDeleteRequest.java | 46 +- .../operations/AtsApplicationsOneRequest.java | 46 +- .../AtsApplicationsUpdateRequest.java | 46 +- .../models/operations/AtsJobsAllRequest.java | 46 +- .../models/operations/AtsJobsOneRequest.java | 46 +- .../operations/CrmActivitiesAddRequest.java | 46 +- .../operations/CrmActivitiesAllRequest.java | 46 +- .../CrmActivitiesDeleteRequest.java | 46 +- .../operations/CrmActivitiesOneRequest.java | 46 +- .../CrmActivitiesUpdateRequest.java | 46 +- .../operations/CrmCompaniesAddRequest.java | 46 +- .../operations/CrmCompaniesAllRequest.java | 46 +- .../operations/CrmCompaniesDeleteRequest.java | 46 +- .../operations/CrmCompaniesOneRequest.java | 46 +- .../operations/CrmCompaniesUpdateRequest.java | 46 +- .../operations/CrmContactsAddRequest.java | 46 +- .../operations/CrmContactsAllRequest.java | 46 +- .../operations/CrmContactsDeleteRequest.java | 46 +- .../operations/CrmContactsOneRequest.java | 46 +- .../operations/CrmContactsUpdateRequest.java | 46 +- .../models/operations/CrmLeadsAddRequest.java | 46 +- .../models/operations/CrmLeadsAllRequest.java | 46 +- .../operations/CrmLeadsDeleteRequest.java | 46 +- .../models/operations/CrmLeadsOneRequest.java | 46 +- .../operations/CrmLeadsUpdateRequest.java | 46 +- .../models/operations/CrmNotesAddRequest.java | 46 +- .../models/operations/CrmNotesAllRequest.java | 46 +- .../operations/CrmNotesDeleteRequest.java | 46 +- .../models/operations/CrmNotesOneRequest.java | 46 +- .../operations/CrmNotesUpdateRequest.java | 46 +- .../CrmOpportunitiesAddRequest.java | 46 +- .../CrmOpportunitiesAllRequest.java | 46 +- .../CrmOpportunitiesDeleteRequest.java | 46 +- .../CrmOpportunitiesOneRequest.java | 46 +- .../CrmOpportunitiesUpdateRequest.java | 46 +- .../operations/CrmPipelinesAddRequest.java | 46 +- .../operations/CrmPipelinesAllRequest.java | 46 +- .../operations/CrmPipelinesDeleteRequest.java | 46 +- .../operations/CrmPipelinesOneRequest.java | 46 +- .../operations/CrmPipelinesUpdateRequest.java | 46 +- .../models/operations/CrmUsersAddRequest.java | 46 +- .../models/operations/CrmUsersAllRequest.java | 46 +- .../operations/CrmUsersDeleteRequest.java | 46 +- .../models/operations/CrmUsersOneRequest.java | 46 +- .../operations/CrmUsersUpdateRequest.java | 46 +- .../EcommerceCustomersAllRequest.java | 46 +- .../EcommerceCustomersOneRequest.java | 46 +- .../operations/EcommerceOrdersAllRequest.java | 46 +- .../operations/EcommerceOrdersOneRequest.java | 46 +- .../EcommerceProductsAllRequest.java | 46 +- .../EcommerceProductsOneRequest.java | 46 +- .../operations/EcommerceStoresOneRequest.java | 46 +- .../FileStorageDriveGroupsAddRequest.java | 46 +- .../FileStorageDriveGroupsAllRequest.java | 46 +- .../FileStorageDriveGroupsDeleteRequest.java | 46 +- .../FileStorageDriveGroupsOneRequest.java | 46 +- .../FileStorageDriveGroupsUpdateRequest.java | 46 +- .../FileStorageDrivesAddRequest.java | 46 +- .../FileStorageDrivesAllRequest.java | 46 +- .../FileStorageDrivesDeleteRequest.java | 46 +- .../FileStorageDrivesOneRequest.java | 46 +- .../FileStorageDrivesUpdateRequest.java | 46 +- .../FileStorageFilesAllRequest.java | 46 +- .../FileStorageFilesDeleteRequest.java | 46 +- .../FileStorageFilesDownloadRequest.java | 46 +- .../FileStorageFilesExportRequest.java | 46 +- .../FileStorageFilesOneRequest.java | 46 +- .../FileStorageFilesSearchRequest.java | 46 +- .../FileStorageFilesUpdateRequest.java | 46 +- .../FileStorageFoldersAddRequest.java | 46 +- .../FileStorageFoldersCopyRequest.java | 46 +- .../FileStorageFoldersDeleteRequest.java | 46 +- .../FileStorageFoldersOneRequest.java | 46 +- .../FileStorageFoldersUpdateRequest.java | 46 +- .../FileStorageSharedLinksAddRequest.java | 46 +- .../FileStorageSharedLinksAllRequest.java | 46 +- .../FileStorageSharedLinksDeleteRequest.java | 46 +- .../FileStorageSharedLinksOneRequest.java | 46 +- .../FileStorageSharedLinksUpdateRequest.java | 46 +- .../FileStorageUploadSessionsAddRequest.java | 46 +- ...ileStorageUploadSessionsDeleteRequest.java | 46 +- ...ileStorageUploadSessionsFinishRequest.java | 46 +- .../FileStorageUploadSessionsOneRequest.java | 46 +- .../operations/HrisCompaniesAddRequest.java | 46 +- .../operations/HrisCompaniesAllRequest.java | 46 +- .../HrisCompaniesDeleteRequest.java | 46 +- .../operations/HrisCompaniesOneRequest.java | 46 +- .../HrisCompaniesUpdateRequest.java | 46 +- .../operations/HrisDepartmentsAddRequest.java | 46 +- .../operations/HrisDepartmentsAllRequest.java | 46 +- .../HrisDepartmentsDeleteRequest.java | 46 +- .../operations/HrisDepartmentsOneRequest.java | 46 +- .../HrisDepartmentsUpdateRequest.java | 46 +- .../HrisEmployeePayrollsAllRequest.java | 46 +- .../HrisEmployeePayrollsOneRequest.java | 46 +- .../HrisEmployeeSchedulesAllRequest.java | 46 +- .../operations/HrisEmployeesAddRequest.java | 46 +- .../operations/HrisEmployeesAllRequest.java | 46 +- .../HrisEmployeesDeleteRequest.java | 46 +- .../operations/HrisEmployeesOneRequest.java | 46 +- .../HrisEmployeesUpdateRequest.java | 46 +- .../operations/HrisPayrollsAllRequest.java | 46 +- .../operations/HrisPayrollsOneRequest.java | 46 +- .../HrisTimeOffRequestsAddRequest.java | 46 +- .../HrisTimeOffRequestsAllRequest.java | 46 +- .../HrisTimeOffRequestsDeleteRequest.java | 46 +- .../HrisTimeOffRequestsOneRequest.java | 46 +- .../HrisTimeOffRequestsUpdateRequest.java | 46 +- ...IssueTrackingCollectionTagsAllRequest.java | 46 +- ...ingCollectionTicketCommentsAddRequest.java | 46 +- ...ingCollectionTicketCommentsAllRequest.java | 46 +- ...CollectionTicketCommentsDeleteRequest.java | 46 +- ...ingCollectionTicketCommentsOneRequest.java | 46 +- ...CollectionTicketCommentsUpdateRequest.java | 46 +- ...ueTrackingCollectionTicketsAddRequest.java | 46 +- ...ueTrackingCollectionTicketsAllRequest.java | 46 +- ...rackingCollectionTicketsDeleteRequest.java | 46 +- ...ueTrackingCollectionTicketsOneRequest.java | 46 +- ...rackingCollectionTicketsUpdateRequest.java | 46 +- ...ssueTrackingCollectionUsersAllRequest.java | 46 +- ...ssueTrackingCollectionUsersOneRequest.java | 46 +- .../IssueTrackingCollectionsAllRequest.java | 46 +- .../IssueTrackingCollectionsOneRequest.java | 46 +- .../operations/LeadLeadsAddRequest.java | 343 --- .../LeadLeadsAddRequestBuilder.java | 48 - .../operations/LeadLeadsAddResponse.java | 312 --- .../operations/LeadLeadsAllRequest.java | 623 ----- .../LeadLeadsAllRequestBuilder.java | 48 - .../operations/LeadLeadsAllResponse.java | 312 --- .../operations/LeadLeadsDeleteRequest.java | 354 --- .../LeadLeadsDeleteRequestBuilder.java | 48 - .../operations/LeadLeadsDeleteResponse.java | 312 --- .../operations/LeadLeadsOneRequest.java | 414 ---- .../LeadLeadsOneRequestBuilder.java | 48 - .../operations/LeadLeadsOneResponse.java | 312 --- .../operations/LeadLeadsUpdateRequest.java | 385 --- .../LeadLeadsUpdateRequestBuilder.java | 48 - .../operations/LeadLeadsUpdateResponse.java | 312 --- .../models/operations/PosItemsAddRequest.java | 343 --- .../operations/PosItemsAddRequestBuilder.java | 48 - .../operations/PosItemsAddResponse.java | 312 --- .../models/operations/PosItemsAllRequest.java | 500 ---- .../operations/PosItemsAllRequestBuilder.java | 48 - .../operations/PosItemsAllResponse.java | 312 --- .../operations/PosItemsDeleteRequest.java | 354 --- .../PosItemsDeleteRequestBuilder.java | 48 - .../operations/PosItemsDeleteResponse.java | 312 --- .../models/operations/PosItemsOneRequest.java | 414 ---- .../operations/PosItemsOneRequestBuilder.java | 48 - .../operations/PosItemsOneResponse.java | 312 --- .../operations/PosItemsUpdateRequest.java | 385 --- .../PosItemsUpdateRequestBuilder.java | 48 - .../operations/PosItemsUpdateResponse.java | 312 --- .../operations/PosLocationsAddRequest.java | 343 --- .../PosLocationsAddRequestBuilder.java | 48 - .../operations/PosLocationsAddResponse.java | 312 --- .../operations/PosLocationsAllRequest.java | 500 ---- .../PosLocationsAllRequestBuilder.java | 48 - .../operations/PosLocationsAllResponse.java | 312 --- .../operations/PosLocationsDeleteRequest.java | 354 --- .../PosLocationsDeleteRequestBuilder.java | 48 - .../PosLocationsDeleteResponse.java | 312 --- .../operations/PosLocationsOneRequest.java | 414 ---- .../PosLocationsOneRequestBuilder.java | 48 - .../operations/PosLocationsOneResponse.java | 312 --- .../operations/PosLocationsUpdateRequest.java | 385 --- .../PosLocationsUpdateRequestBuilder.java | 48 - .../PosLocationsUpdateResponse.java | 312 --- .../operations/PosMerchantsAddRequest.java | 343 --- .../PosMerchantsAddRequestBuilder.java | 48 - .../operations/PosMerchantsAddResponse.java | 312 --- .../operations/PosMerchantsAllRequest.java | 500 ---- .../PosMerchantsAllRequestBuilder.java | 48 - .../operations/PosMerchantsAllResponse.java | 312 --- .../operations/PosMerchantsDeleteRequest.java | 354 --- .../PosMerchantsDeleteRequestBuilder.java | 48 - .../PosMerchantsDeleteResponse.java | 312 --- .../operations/PosMerchantsOneRequest.java | 414 ---- .../PosMerchantsOneRequestBuilder.java | 48 - .../operations/PosMerchantsOneResponse.java | 312 --- .../operations/PosMerchantsUpdateRequest.java | 385 --- .../PosMerchantsUpdateRequestBuilder.java | 48 - .../PosMerchantsUpdateResponse.java | 312 --- .../PosModifierGroupsAddRequest.java | 343 --- .../PosModifierGroupsAddRequestBuilder.java | 48 - .../PosModifierGroupsAddResponse.java | 312 --- .../PosModifierGroupsAllRequest.java | 500 ---- .../PosModifierGroupsAllRequestBuilder.java | 48 - .../PosModifierGroupsAllResponse.java | 312 --- .../PosModifierGroupsDeleteRequest.java | 354 --- ...PosModifierGroupsDeleteRequestBuilder.java | 48 - .../PosModifierGroupsDeleteResponse.java | 312 --- .../PosModifierGroupsOneRequest.java | 414 ---- .../PosModifierGroupsOneRequestBuilder.java | 48 - .../PosModifierGroupsOneResponse.java | 312 --- .../PosModifierGroupsUpdateRequest.java | 385 --- ...PosModifierGroupsUpdateRequestBuilder.java | 48 - .../PosModifierGroupsUpdateResponse.java | 312 --- .../operations/PosModifiersAddRequest.java | 343 --- .../PosModifiersAddRequestBuilder.java | 48 - .../operations/PosModifiersAddResponse.java | 312 --- .../operations/PosModifiersAllRequest.java | 500 ---- .../PosModifiersAllRequestBuilder.java | 48 - .../operations/PosModifiersAllResponse.java | 312 --- .../operations/PosModifiersDeleteRequest.java | 416 ---- .../PosModifiersDeleteRequestBuilder.java | 48 - .../PosModifiersDeleteResponse.java | 312 --- .../operations/PosModifiersOneRequest.java | 476 ---- .../PosModifiersOneRequestBuilder.java | 48 - .../operations/PosModifiersOneResponse.java | 312 --- .../operations/PosModifiersUpdateRequest.java | 385 --- .../PosModifiersUpdateRequestBuilder.java | 48 - .../PosModifiersUpdateResponse.java | 312 --- .../operations/PosOrderTypesAddRequest.java | 343 --- .../PosOrderTypesAddRequestBuilder.java | 48 - .../operations/PosOrderTypesAddResponse.java | 312 --- .../operations/PosOrderTypesAllRequest.java | 500 ---- .../PosOrderTypesAllRequestBuilder.java | 48 - .../operations/PosOrderTypesAllResponse.java | 312 --- .../PosOrderTypesDeleteRequest.java | 354 --- .../PosOrderTypesDeleteRequestBuilder.java | 48 - .../PosOrderTypesDeleteResponse.java | 312 --- .../operations/PosOrderTypesOneRequest.java | 414 ---- .../PosOrderTypesOneRequestBuilder.java | 48 - .../operations/PosOrderTypesOneResponse.java | 312 --- .../PosOrderTypesUpdateRequest.java | 385 --- .../PosOrderTypesUpdateRequestBuilder.java | 48 - .../PosOrderTypesUpdateResponse.java | 312 --- .../operations/PosOrdersAddRequest.java | 343 --- .../PosOrdersAddRequestBuilder.java | 48 - .../operations/PosOrdersAddResponse.java | 312 --- .../operations/PosOrdersAllRequest.java | 559 ----- .../PosOrdersAllRequestBuilder.java | 48 - .../operations/PosOrdersAllResponse.java | 312 --- .../operations/PosOrdersDeleteRequest.java | 354 --- .../PosOrdersDeleteRequestBuilder.java | 48 - .../operations/PosOrdersDeleteResponse.java | 312 --- .../operations/PosOrdersOneRequest.java | 414 ---- .../PosOrdersOneRequestBuilder.java | 48 - .../operations/PosOrdersOneResponse.java | 312 --- .../operations/PosOrdersPayRequest.java | 445 ---- .../PosOrdersPayRequestBuilder.java | 48 - .../operations/PosOrdersPayResponse.java | 312 --- .../operations/PosOrdersUpdateRequest.java | 385 --- .../PosOrdersUpdateRequestBuilder.java | 48 - .../operations/PosOrdersUpdateResponse.java | 312 --- .../operations/PosPaymentsAddRequest.java | 343 --- .../PosPaymentsAddRequestBuilder.java | 48 - .../operations/PosPaymentsAddResponse.java | 312 --- .../operations/PosPaymentsAllRequest.java | 500 ---- .../PosPaymentsAllRequestBuilder.java | 48 - .../operations/PosPaymentsAllResponse.java | 312 --- .../operations/PosPaymentsDeleteRequest.java | 354 --- .../PosPaymentsDeleteRequestBuilder.java | 48 - .../operations/PosPaymentsDeleteResponse.java | 312 --- .../operations/PosPaymentsOneRequest.java | 414 ---- .../PosPaymentsOneRequestBuilder.java | 48 - .../operations/PosPaymentsOneResponse.java | 312 --- .../operations/PosPaymentsUpdateRequest.java | 385 --- .../PosPaymentsUpdateRequestBuilder.java | 48 - .../operations/PosPaymentsUpdateResponse.java | 312 --- .../operations/PosTendersAddRequest.java | 343 --- .../PosTendersAddRequestBuilder.java | 48 - .../operations/PosTendersAddResponse.java | 312 --- .../operations/PosTendersAllRequest.java | 500 ---- .../PosTendersAllRequestBuilder.java | 48 - .../operations/PosTendersAllResponse.java | 312 --- .../operations/PosTendersDeleteRequest.java | 354 --- .../PosTendersDeleteRequestBuilder.java | 48 - .../operations/PosTendersDeleteResponse.java | 312 --- .../operations/PosTendersOneRequest.java | 414 ---- .../PosTendersOneRequestBuilder.java | 48 - .../operations/PosTendersOneResponse.java | 312 --- .../operations/PosTendersUpdateRequest.java | 385 --- .../PosTendersUpdateRequestBuilder.java | 48 - .../operations/PosTendersUpdateResponse.java | 312 --- .../operations/SDKMethodInterfaces.java | 369 +-- .../operations/SmsMessagesAddRequest.java | 46 +- .../operations/SmsMessagesAllRequest.java | 46 +- .../operations/SmsMessagesDeleteRequest.java | 46 +- .../operations/SmsMessagesOneRequest.java | 46 +- .../operations/SmsMessagesUpdateRequest.java | 46 +- ...ultConnectionCustomMappingsAllRequest.java | 46 +- .../VaultConnectionSettingsAllRequest.java | 46 +- .../VaultConnectionSettingsUpdateRequest.java | 46 +- .../VaultConnectionsAllRequest.java | 46 +- .../VaultConnectionsAllRequestBuilder.java | 16 +- .../VaultConnectionsDeleteRequest.java | 46 +- .../VaultConnectionsDeleteRequestBuilder.java | 16 +- .../VaultConnectionsImportRequest.java | 46 +- .../VaultConnectionsImportRequestBuilder.java | 2 +- .../VaultConnectionsOneRequest.java | 46 +- .../VaultConnectionsOneRequestBuilder.java | 16 +- .../VaultConnectionsTokenRequest.java | 46 +- .../VaultConnectionsUpdateRequest.java | 46 +- .../VaultCreateCallbackStateRequest.java | 46 +- .../VaultCustomFieldsAllRequest.java | 46 +- .../VaultCustomMappingsAllRequest.java | 46 +- .../VaultCustomMappingsAllRequestBuilder.java | 16 +- .../operations/VaultLogsAllRequest.java | 46 +- .../VaultSessionsCreateRequest.java | 46 +- .../VaultSessionsCreateRequestBuilder.java | 16 +- .../VaultValidateConnectionStateRequest.java | 46 +- 1165 files changed, 6491 insertions(+), 120103 deletions(-) delete mode 100644 docs/models/components/AchDetails.md delete mode 100644 docs/models/components/AppliedDiscounts.md delete mode 100644 docs/models/components/AppliedTaxes.md delete mode 100644 docs/models/components/CardBrand.md delete mode 100644 docs/models/components/CardDetails.md delete mode 100644 docs/models/components/CardEntryMethod.md delete mode 100644 docs/models/components/CardStatus.md delete mode 100644 docs/models/components/CardType.md delete mode 100644 docs/models/components/CashDetails.md delete mode 100644 docs/models/components/CreateItemResponse.md delete mode 100644 docs/models/components/CreateLocationResponse.md delete mode 100644 docs/models/components/CreateMerchantResponse.md delete mode 100644 docs/models/components/CreateModifierGroupResponse.md delete mode 100644 docs/models/components/CreateModifierResponse.md delete mode 100644 docs/models/components/CreateOrderResponse.md delete mode 100644 docs/models/components/CreateOrderTypeResponse.md delete mode 100644 docs/models/components/CreatePosPaymentResponse.md delete mode 100644 docs/models/components/CreateTenderResponse.md delete mode 100644 docs/models/components/CurbsidePickupDetails.md delete mode 100644 docs/models/components/Customers.md delete mode 100644 docs/models/components/DeleteItemResponse.md delete mode 100644 docs/models/components/DeleteLocationResponse.md delete mode 100644 docs/models/components/DeleteMerchantResponse.md delete mode 100644 docs/models/components/DeleteModifierGroupResponse.md delete mode 100644 docs/models/components/DeleteModifierResponse.md delete mode 100644 docs/models/components/DeleteOrderResponse.md delete mode 100644 docs/models/components/DeleteOrderTypeResponse.md delete mode 100644 docs/models/components/DeletePosPaymentResponse.md delete mode 100644 docs/models/components/DeleteTenderResponse.md delete mode 100644 docs/models/components/Discounts.md delete mode 100644 docs/models/components/ExternalDetails.md delete mode 100644 docs/models/components/Fulfillments.md delete mode 100644 docs/models/components/GetItemResponse.md delete mode 100644 docs/models/components/GetItemsResponse.md delete mode 100644 docs/models/components/GetLocationResponse.md delete mode 100644 docs/models/components/GetLocationsResponse.md delete mode 100644 docs/models/components/GetMerchantResponse.md delete mode 100644 docs/models/components/GetMerchantsResponse.md delete mode 100644 docs/models/components/GetModifierGroupResponse.md delete mode 100644 docs/models/components/GetModifierGroupsResponse.md delete mode 100644 docs/models/components/GetModifierResponse.md delete mode 100644 docs/models/components/GetModifiersResponse.md delete mode 100644 docs/models/components/GetOrderResponse.md delete mode 100644 docs/models/components/GetOrderTypeResponse.md delete mode 100644 docs/models/components/GetOrderTypesResponse.md delete mode 100644 docs/models/components/GetOrdersResponse.md delete mode 100644 docs/models/components/GetPosPaymentResponse.md delete mode 100644 docs/models/components/GetPosPaymentsResponse.md delete mode 100644 docs/models/components/GetTenderResponse.md delete mode 100644 docs/models/components/GetTendersResponse.md delete mode 100644 docs/models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.md delete mode 100644 docs/models/components/Item.md delete mode 100644 docs/models/components/ItemCategories.md delete mode 100644 docs/models/components/ItemCategoriesInput.md delete mode 100644 docs/models/components/ItemInput.md delete mode 100644 docs/models/components/ItemModifierGroups.md delete mode 100644 docs/models/components/ItemOptions.md delete mode 100644 docs/models/components/ItemPricingType.md delete mode 100644 docs/models/components/ItemVariations.md delete mode 100644 docs/models/components/LineItems.md delete mode 100644 docs/models/components/Location.md delete mode 100644 docs/models/components/LocationInput.md delete mode 100644 docs/models/components/LocationStatusStatus.md delete mode 100644 docs/models/components/Merchant.md delete mode 100644 docs/models/components/MerchantInput.md delete mode 100644 docs/models/components/MerchantStatus.md delete mode 100644 docs/models/components/Modifier.md delete mode 100644 docs/models/components/ModifierGroup.md delete mode 100644 docs/models/components/ModifierGroupFilter.md delete mode 100644 docs/models/components/ModifierGroupInput.md delete mode 100644 docs/models/components/ModifierGroups.md delete mode 100644 docs/models/components/ModifierInput.md delete mode 100644 docs/models/components/Modifiers.md delete mode 100644 docs/models/components/Order.md delete mode 100644 docs/models/components/OrderAppliedDiscounts.md delete mode 100644 docs/models/components/OrderAppliedTaxes.md delete mode 100644 docs/models/components/OrderDiscounts.md delete mode 100644 docs/models/components/OrderDiscountsScope.md delete mode 100644 docs/models/components/OrderDiscountsType.md delete mode 100644 docs/models/components/OrderFulfillmentStatus.md delete mode 100644 docs/models/components/OrderFulfillments.md delete mode 100644 docs/models/components/OrderFulfillmentsType.md delete mode 100644 docs/models/components/OrderInput.md delete mode 100644 docs/models/components/OrderItem.md delete mode 100644 docs/models/components/OrderItemInput.md delete mode 100644 docs/models/components/OrderLineItems.md delete mode 100644 docs/models/components/OrderModifiers.md delete mode 100644 docs/models/components/OrderPayments.md delete mode 100644 docs/models/components/OrderPickupDetails.md delete mode 100644 docs/models/components/OrderRefunds.md delete mode 100644 docs/models/components/OrderRefundsStatus.md delete mode 100644 docs/models/components/OrderScope.md delete mode 100644 docs/models/components/OrderStatus.md delete mode 100644 docs/models/components/OrderTaxesType.md delete mode 100644 docs/models/components/OrderTenders.md delete mode 100644 docs/models/components/OrderTendersType.md delete mode 100644 docs/models/components/OrderType.md delete mode 100644 docs/models/components/OrderTypeInput.md delete mode 100644 docs/models/components/PaymentCard.md delete mode 100644 docs/models/components/PaymentCardInput.md delete mode 100644 docs/models/components/Payments.md create mode 100644 docs/models/components/PeriodType.md delete mode 100644 docs/models/components/PickupDetails.md delete mode 100644 docs/models/components/PosBankAccount.md delete mode 100644 docs/models/components/PosPayment.md delete mode 100644 docs/models/components/PosPaymentCardDetails.md delete mode 100644 docs/models/components/PosPaymentInput.md delete mode 100644 docs/models/components/PosPaymentProcessingFeesType.md delete mode 100644 docs/models/components/PosPaymentSource.md delete mode 100644 docs/models/components/PosPaymentStatus.md delete mode 100644 docs/models/components/PosPaymentStatusStatus.md delete mode 100644 docs/models/components/PosPaymentType.md delete mode 100644 docs/models/components/PosPaymentWalletStatus.md delete mode 100644 docs/models/components/PrepaidType.md delete mode 100644 docs/models/components/PricingType.md delete mode 100644 docs/models/components/ProcessingFees.md delete mode 100644 docs/models/components/ProductType.md delete mode 100644 docs/models/components/Recipient.md delete mode 100644 docs/models/components/Refunds.md delete mode 100644 docs/models/components/ScheduleType.md delete mode 100644 docs/models/components/ServiceCharge.md delete mode 100644 docs/models/components/ServiceChargeInput.md delete mode 100644 docs/models/components/ServiceChargeType.md delete mode 100644 docs/models/components/ShipmentDetails.md delete mode 100644 docs/models/components/Source.md delete mode 100644 docs/models/components/Taxes.md delete mode 100644 docs/models/components/Tender.md delete mode 100644 docs/models/components/TenderInput.md delete mode 100644 docs/models/components/Tenders.md delete mode 100644 docs/models/components/Two.md delete mode 100644 docs/models/components/UpdateItemResponse.md delete mode 100644 docs/models/components/UpdateLocationResponse.md delete mode 100644 docs/models/components/UpdateMerchantResponse.md delete mode 100644 docs/models/components/UpdateModifierGroupResponse.md delete mode 100644 docs/models/components/UpdateModifierResponse.md delete mode 100644 docs/models/components/UpdateOrderResponse.md delete mode 100644 docs/models/components/UpdateOrderTypeResponse.md delete mode 100644 docs/models/components/UpdatePosPaymentResponse.md delete mode 100644 docs/models/components/UpdateTenderResponse.md delete mode 100644 docs/models/components/Variations.md delete mode 100644 docs/models/components/WalletDetails.md delete mode 100644 docs/models/errors/Detail2.md delete mode 100644 docs/models/errors/DetailNotFoundResponse2.md delete mode 100644 docs/models/errors/DetailUnprocessableResponse2.md delete mode 100644 docs/models/errors/Two.md delete mode 100644 docs/models/operations/LeadLeadsAddRequest.md delete mode 100644 docs/models/operations/LeadLeadsAddResponse.md delete mode 100644 docs/models/operations/LeadLeadsAllRequest.md delete mode 100644 docs/models/operations/LeadLeadsAllResponse.md delete mode 100644 docs/models/operations/LeadLeadsDeleteRequest.md delete mode 100644 docs/models/operations/LeadLeadsDeleteResponse.md delete mode 100644 docs/models/operations/LeadLeadsOneRequest.md delete mode 100644 docs/models/operations/LeadLeadsOneResponse.md delete mode 100644 docs/models/operations/LeadLeadsUpdateRequest.md delete mode 100644 docs/models/operations/LeadLeadsUpdateResponse.md delete mode 100644 docs/models/operations/PosItemsAddRequest.md delete mode 100644 docs/models/operations/PosItemsAddResponse.md delete mode 100644 docs/models/operations/PosItemsAllRequest.md delete mode 100644 docs/models/operations/PosItemsAllResponse.md delete mode 100644 docs/models/operations/PosItemsDeleteRequest.md delete mode 100644 docs/models/operations/PosItemsDeleteResponse.md delete mode 100644 docs/models/operations/PosItemsOneRequest.md delete mode 100644 docs/models/operations/PosItemsOneResponse.md delete mode 100644 docs/models/operations/PosItemsUpdateRequest.md delete mode 100644 docs/models/operations/PosItemsUpdateResponse.md delete mode 100644 docs/models/operations/PosLocationsAddRequest.md delete mode 100644 docs/models/operations/PosLocationsAddResponse.md delete mode 100644 docs/models/operations/PosLocationsAllRequest.md delete mode 100644 docs/models/operations/PosLocationsAllResponse.md delete mode 100644 docs/models/operations/PosLocationsDeleteRequest.md delete mode 100644 docs/models/operations/PosLocationsDeleteResponse.md delete mode 100644 docs/models/operations/PosLocationsOneRequest.md delete mode 100644 docs/models/operations/PosLocationsOneResponse.md delete mode 100644 docs/models/operations/PosLocationsUpdateRequest.md delete mode 100644 docs/models/operations/PosLocationsUpdateResponse.md delete mode 100644 docs/models/operations/PosMerchantsAddRequest.md delete mode 100644 docs/models/operations/PosMerchantsAddResponse.md delete mode 100644 docs/models/operations/PosMerchantsAllRequest.md delete mode 100644 docs/models/operations/PosMerchantsAllResponse.md delete mode 100644 docs/models/operations/PosMerchantsDeleteRequest.md delete mode 100644 docs/models/operations/PosMerchantsDeleteResponse.md delete mode 100644 docs/models/operations/PosMerchantsOneRequest.md delete mode 100644 docs/models/operations/PosMerchantsOneResponse.md delete mode 100644 docs/models/operations/PosMerchantsUpdateRequest.md delete mode 100644 docs/models/operations/PosMerchantsUpdateResponse.md delete mode 100644 docs/models/operations/PosModifierGroupsAddRequest.md delete mode 100644 docs/models/operations/PosModifierGroupsAddResponse.md delete mode 100644 docs/models/operations/PosModifierGroupsAllRequest.md delete mode 100644 docs/models/operations/PosModifierGroupsAllResponse.md delete mode 100644 docs/models/operations/PosModifierGroupsDeleteRequest.md delete mode 100644 docs/models/operations/PosModifierGroupsDeleteResponse.md delete mode 100644 docs/models/operations/PosModifierGroupsOneRequest.md delete mode 100644 docs/models/operations/PosModifierGroupsOneResponse.md delete mode 100644 docs/models/operations/PosModifierGroupsUpdateRequest.md delete mode 100644 docs/models/operations/PosModifierGroupsUpdateResponse.md delete mode 100644 docs/models/operations/PosModifiersAddRequest.md delete mode 100644 docs/models/operations/PosModifiersAddResponse.md delete mode 100644 docs/models/operations/PosModifiersAllRequest.md delete mode 100644 docs/models/operations/PosModifiersAllResponse.md delete mode 100644 docs/models/operations/PosModifiersDeleteRequest.md delete mode 100644 docs/models/operations/PosModifiersDeleteResponse.md delete mode 100644 docs/models/operations/PosModifiersOneRequest.md delete mode 100644 docs/models/operations/PosModifiersOneResponse.md delete mode 100644 docs/models/operations/PosModifiersUpdateRequest.md delete mode 100644 docs/models/operations/PosModifiersUpdateResponse.md delete mode 100644 docs/models/operations/PosOrderTypesAddRequest.md delete mode 100644 docs/models/operations/PosOrderTypesAddResponse.md delete mode 100644 docs/models/operations/PosOrderTypesAllRequest.md delete mode 100644 docs/models/operations/PosOrderTypesAllResponse.md delete mode 100644 docs/models/operations/PosOrderTypesDeleteRequest.md delete mode 100644 docs/models/operations/PosOrderTypesDeleteResponse.md delete mode 100644 docs/models/operations/PosOrderTypesOneRequest.md delete mode 100644 docs/models/operations/PosOrderTypesOneResponse.md delete mode 100644 docs/models/operations/PosOrderTypesUpdateRequest.md delete mode 100644 docs/models/operations/PosOrderTypesUpdateResponse.md delete mode 100644 docs/models/operations/PosOrdersAddRequest.md delete mode 100644 docs/models/operations/PosOrdersAddResponse.md delete mode 100644 docs/models/operations/PosOrdersAllRequest.md delete mode 100644 docs/models/operations/PosOrdersAllResponse.md delete mode 100644 docs/models/operations/PosOrdersDeleteRequest.md delete mode 100644 docs/models/operations/PosOrdersDeleteResponse.md delete mode 100644 docs/models/operations/PosOrdersOneRequest.md delete mode 100644 docs/models/operations/PosOrdersOneResponse.md delete mode 100644 docs/models/operations/PosOrdersPayRequest.md delete mode 100644 docs/models/operations/PosOrdersPayResponse.md delete mode 100644 docs/models/operations/PosOrdersUpdateRequest.md delete mode 100644 docs/models/operations/PosOrdersUpdateResponse.md delete mode 100644 docs/models/operations/PosPaymentsAddRequest.md delete mode 100644 docs/models/operations/PosPaymentsAddResponse.md delete mode 100644 docs/models/operations/PosPaymentsAllRequest.md delete mode 100644 docs/models/operations/PosPaymentsAllResponse.md delete mode 100644 docs/models/operations/PosPaymentsDeleteRequest.md delete mode 100644 docs/models/operations/PosPaymentsDeleteResponse.md delete mode 100644 docs/models/operations/PosPaymentsOneRequest.md delete mode 100644 docs/models/operations/PosPaymentsOneResponse.md delete mode 100644 docs/models/operations/PosPaymentsUpdateRequest.md delete mode 100644 docs/models/operations/PosPaymentsUpdateResponse.md delete mode 100644 docs/models/operations/PosTendersAddRequest.md delete mode 100644 docs/models/operations/PosTendersAddResponse.md delete mode 100644 docs/models/operations/PosTendersAllRequest.md delete mode 100644 docs/models/operations/PosTendersAllResponse.md delete mode 100644 docs/models/operations/PosTendersDeleteRequest.md delete mode 100644 docs/models/operations/PosTendersDeleteResponse.md delete mode 100644 docs/models/operations/PosTendersOneRequest.md delete mode 100644 docs/models/operations/PosTendersOneResponse.md delete mode 100644 docs/models/operations/PosTendersUpdateRequest.md delete mode 100644 docs/models/operations/PosTendersUpdateResponse.md delete mode 100644 docs/sdks/apideckleads/README.md delete mode 100644 docs/sdks/apidecklocations/README.md delete mode 100644 docs/sdks/apideckorders/README.md delete mode 100644 docs/sdks/apideckpayments/README.md delete mode 100644 docs/sdks/items/README.md delete mode 100644 docs/sdks/lead/README.md delete mode 100644 docs/sdks/merchants/README.md delete mode 100644 docs/sdks/modifiergroups/README.md delete mode 100644 docs/sdks/modifiers/README.md delete mode 100644 docs/sdks/ordertypes/README.md delete mode 100644 docs/sdks/pos/README.md delete mode 100644 docs/sdks/tenders/README.md delete mode 100644 src/main/java/com/apideck/unify/ApideckLeads.java delete mode 100644 src/main/java/com/apideck/unify/ApideckLocations.java delete mode 100644 src/main/java/com/apideck/unify/ApideckOrders.java delete mode 100644 src/main/java/com/apideck/unify/ApideckPayments.java delete mode 100644 src/main/java/com/apideck/unify/Items.java delete mode 100644 src/main/java/com/apideck/unify/Lead.java delete mode 100644 src/main/java/com/apideck/unify/Merchants.java delete mode 100644 src/main/java/com/apideck/unify/ModifierGroups.java delete mode 100644 src/main/java/com/apideck/unify/Modifiers.java delete mode 100644 src/main/java/com/apideck/unify/OrderTypes.java delete mode 100644 src/main/java/com/apideck/unify/Pos.java delete mode 100644 src/main/java/com/apideck/unify/Tenders.java delete mode 100644 src/main/java/com/apideck/unify/models/components/AchDetails.java delete mode 100644 src/main/java/com/apideck/unify/models/components/AppliedDiscounts.java delete mode 100644 src/main/java/com/apideck/unify/models/components/AppliedTaxes.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CardBrand.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CardDetails.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CardEntryMethod.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CardStatus.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CardType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CashDetails.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CreateItemResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CreateLocationResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CreateMerchantResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CreateModifierGroupResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CreateModifierResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CreateOrderResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CreateOrderTypeResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CreatePosPaymentResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CreateTenderResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/CurbsidePickupDetails.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Customers.java delete mode 100644 src/main/java/com/apideck/unify/models/components/DeleteItemResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/DeleteLocationResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/DeleteMerchantResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/DeleteModifierGroupResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/DeleteModifierResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/DeleteOrderResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/DeleteOrderTypeResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/DeletePosPaymentResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/DeleteTenderResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Discounts.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ExternalDetails.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Fulfillments.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetItemResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetItemsResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetLocationResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetLocationsResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetMerchantResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetMerchantsResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetModifierGroupResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetModifierGroupsResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetModifierResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetModifiersResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetOrderResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetOrderTypeResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetOrderTypesResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetOrdersResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetPosPaymentResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetPosPaymentsResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetTenderResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/GetTendersResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Item.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ItemCategories.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ItemCategoriesInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ItemInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ItemModifierGroups.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ItemOptions.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ItemPricingType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ItemVariations.java delete mode 100644 src/main/java/com/apideck/unify/models/components/LineItems.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Location.java delete mode 100644 src/main/java/com/apideck/unify/models/components/LocationInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/LocationStatusStatus.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Merchant.java delete mode 100644 src/main/java/com/apideck/unify/models/components/MerchantInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/MerchantStatus.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Modifier.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ModifierGroup.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ModifierGroupFilter.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ModifierGroupInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ModifierGroups.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ModifierInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Modifiers.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Order.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderAppliedDiscounts.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderAppliedTaxes.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderDiscounts.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderDiscountsScope.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderDiscountsType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderFulfillmentStatus.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderFulfillments.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderFulfillmentsType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderItem.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderItemInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderLineItems.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderModifiers.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderPayments.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderPickupDetails.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderRefunds.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderRefundsStatus.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderScope.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderStatus.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderTaxesType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderTenders.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderTendersType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/OrderTypeInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PaymentCard.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PaymentCardInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Payments.java rename src/main/java/com/apideck/unify/models/components/{ScheduleType.java => PeriodType.java} (62%) delete mode 100644 src/main/java/com/apideck/unify/models/components/PickupDetails.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PosBankAccount.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PosPayment.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PosPaymentCardDetails.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PosPaymentInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PosPaymentProcessingFeesType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PosPaymentSource.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PosPaymentStatus.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PosPaymentStatusStatus.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PosPaymentType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PosPaymentWalletStatus.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PrepaidType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/PricingType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ProcessingFees.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ProductType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Recipient.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Refunds.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ServiceCharge.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ServiceChargeInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ServiceChargeType.java delete mode 100644 src/main/java/com/apideck/unify/models/components/ShipmentDetails.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Source.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Taxes.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Tender.java delete mode 100644 src/main/java/com/apideck/unify/models/components/TenderInput.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Tenders.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Two.java delete mode 100644 src/main/java/com/apideck/unify/models/components/UpdateItemResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/UpdateLocationResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/UpdateMerchantResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/UpdateModifierGroupResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/UpdateModifierResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/UpdateOrderResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/UpdateOrderTypeResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/UpdatePosPaymentResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/UpdateTenderResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/components/Variations.java delete mode 100644 src/main/java/com/apideck/unify/models/components/WalletDetails.java delete mode 100644 src/main/java/com/apideck/unify/models/errors/Detail2.java delete mode 100644 src/main/java/com/apideck/unify/models/errors/DetailNotFoundResponse2.java delete mode 100644 src/main/java/com/apideck/unify/models/errors/DetailUnprocessableResponse2.java delete mode 100644 src/main/java/com/apideck/unify/models/errors/Two.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsAddRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsAddRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsAddResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsAllRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsAllRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsAllResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsOneRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsOneRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsOneResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsAddRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsAddRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsAddResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsAllRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsAllRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsAllResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsDeleteRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsDeleteRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsDeleteResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsOneRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsOneRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsOneResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsUpdateRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsUpdateRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosItemsUpdateResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsAddRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsAddRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsAddResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsAllRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsAllRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsAllResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsOneRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsOneRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsOneResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsAddRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsAddRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsAddResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsAllRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsAllRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsAllResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsOneRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsOneRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsOneResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersAddRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersAddRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersAddResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersAllRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersAllRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersAllResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersOneRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersOneRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersOneResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersAddRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersAddRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersAddResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersAllRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersAllRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersAllResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersOneRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersOneRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersOneResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersPayRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersPayRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersPayResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsAddRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsAddRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsAddResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsAllRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsAllRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsAllResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsOneRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsOneRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsOneResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersAddRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersAddRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersAddResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersAllRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersAllRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersAllResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersDeleteRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersDeleteRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersDeleteResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersOneRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersOneRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersOneResponse.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersUpdateRequest.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersUpdateRequestBuilder.java delete mode 100644 src/main/java/com/apideck/unify/models/operations/PosTendersUpdateResponse.java diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 49a9d95..c4c114d 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 38254260-287a-40b6-9ac5-c2fcb654c9cc management: - docChecksum: 51366c2bf91c8d98986aa75c233a1b1b + docChecksum: 04f7a68234ccb558106e0c6d7e7c1310 docVersion: 10.8.1 - speakeasyVersion: 1.443.0 - generationVersion: 2.461.4 - releaseVersion: 0.1.12 - configChecksum: 5c06e236933190a83c97710265ecd9e6 + speakeasyVersion: 1.448.2 + generationVersion: 2.467.4 + releaseVersion: 0.2.0 + configChecksum: 5148c05515254dec73989d62808c51d0 repoURL: https://github.com/apideck-libraries/sdk-java.git published: true features: @@ -14,9 +14,10 @@ features: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 constsAndDefaults: 0.1.1 - core: 3.32.1 + core: 3.32.2 deprecations: 2.81.1 downloadStreams: 0.1.1 + errors: 0.3.0 flattening: 2.81.1 globalSecurity: 2.82.7 globalSecurityCallbacks: 0.1.0 @@ -30,7 +31,6 @@ features: nullables: 0.1.0 retries: 0.1.1 sdkHooks: 0.1.0 - tests: 0.1.0 typeOverrides: 2.81.1 unions: 0.0.6 generatedFiles: @@ -46,7 +46,6 @@ generatedFiles: - docs/models/components/AccountingLocation.md - docs/models/components/AccountingLocationInput.md - docs/models/components/AccountingLocationsFilter.md - - docs/models/components/AchDetails.md - docs/models/components/ActivitiesFilter.md - docs/models/components/ActivitiesSort.md - docs/models/components/ActivitiesSortBy.md @@ -76,8 +75,6 @@ generatedFiles: - docs/models/components/Application.md - docs/models/components/ApplicationInput.md - docs/models/components/ApplicationStatus.md - - docs/models/components/AppliedDiscounts.md - - docs/models/components/AppliedTaxes.md - docs/models/components/Assignee.md - docs/models/components/AssigneeInput.md - docs/models/components/Attachment.md @@ -109,12 +106,6 @@ generatedFiles: - docs/models/components/Blocks.md - docs/models/components/Branch.md - docs/models/components/By.md - - docs/models/components/CardBrand.md - - docs/models/components/CardDetails.md - - docs/models/components/CardEntryMethod.md - - docs/models/components/CardStatus.md - - docs/models/components/CardType.md - - docs/models/components/CashDetails.md - docs/models/components/Categories.md - docs/models/components/Classification.md - docs/models/components/Collection.md @@ -200,22 +191,14 @@ generatedFiles: - docs/models/components/CreateHrisCompanyResponse.md - docs/models/components/CreateInvoiceItemResponse.md - docs/models/components/CreateInvoiceResponse.md - - docs/models/components/CreateItemResponse.md - docs/models/components/CreateJournalEntryResponse.md - docs/models/components/CreateLeadResponse.md - docs/models/components/CreateLedgerAccountResponse.md - - docs/models/components/CreateLocationResponse.md - - docs/models/components/CreateMerchantResponse.md - docs/models/components/CreateMessageResponse.md - - docs/models/components/CreateModifierGroupResponse.md - - docs/models/components/CreateModifierResponse.md - docs/models/components/CreateNoteResponse.md - docs/models/components/CreateOpportunityResponse.md - - docs/models/components/CreateOrderResponse.md - - docs/models/components/CreateOrderTypeResponse.md - docs/models/components/CreatePaymentResponse.md - docs/models/components/CreatePipelineResponse.md - - docs/models/components/CreatePosPaymentResponse.md - docs/models/components/CreatePurchaseOrderResponse.md - docs/models/components/CreateSessionResponse.md - docs/models/components/CreateSessionResponseData.md @@ -223,7 +206,6 @@ generatedFiles: - docs/models/components/CreateSubsidiaryResponse.md - docs/models/components/CreateSupplierResponse.md - docs/models/components/CreateTaxRateResponse.md - - docs/models/components/CreateTenderResponse.md - docs/models/components/CreateTicketResponse.md - docs/models/components/CreateTimeOffRequestResponse.md - docs/models/components/CreateTrackingCategoryResponse.md @@ -240,7 +222,6 @@ generatedFiles: - docs/models/components/CreditNotesFilter.md - docs/models/components/CreditNotesSort.md - docs/models/components/CreditNotesSortBy.md - - docs/models/components/CurbsidePickupDetails.md - docs/models/components/Currency.md - docs/models/components/Cursors.md - docs/models/components/CustomField.md @@ -252,7 +233,6 @@ generatedFiles: - docs/models/components/CustomerInput.md - docs/models/components/CustomerStatus.md - docs/models/components/CustomerStatusStatus.md - - docs/models/components/Customers.md - docs/models/components/CustomersFilter.md - docs/models/components/CustomersFilterStatus.md - docs/models/components/CustomersSort.md @@ -284,28 +264,19 @@ generatedFiles: - docs/models/components/DeleteFolderResponse.md - docs/models/components/DeleteHrisCompanyResponse.md - docs/models/components/DeleteInvoiceResponse.md - - docs/models/components/DeleteItemResponse.md - docs/models/components/DeleteJournalEntryResponse.md - docs/models/components/DeleteLeadResponse.md - docs/models/components/DeleteLedgerAccountResponse.md - - docs/models/components/DeleteLocationResponse.md - - docs/models/components/DeleteMerchantResponse.md - docs/models/components/DeleteMessageResponse.md - - docs/models/components/DeleteModifierGroupResponse.md - - docs/models/components/DeleteModifierResponse.md - docs/models/components/DeleteNoteResponse.md - docs/models/components/DeleteOpportunityResponse.md - - docs/models/components/DeleteOrderResponse.md - - docs/models/components/DeleteOrderTypeResponse.md - docs/models/components/DeletePaymentResponse.md - docs/models/components/DeletePipelineResponse.md - - docs/models/components/DeletePosPaymentResponse.md - docs/models/components/DeletePurchaseOrderResponse.md - docs/models/components/DeleteSharedLinkResponse.md - docs/models/components/DeleteSubsidiaryResponse.md - docs/models/components/DeleteSupplierResponse.md - docs/models/components/DeleteTaxRateResponse.md - - docs/models/components/DeleteTenderResponse.md - docs/models/components/DeleteTicketResponse.md - docs/models/components/DeleteTimeOffRequestResponse.md - docs/models/components/DeleteTrackingCategoryResponse.md @@ -321,7 +292,6 @@ generatedFiles: - docs/models/components/Detail.md - docs/models/components/Direction.md - docs/models/components/DisabledReason.md - - docs/models/components/Discounts.md - docs/models/components/Drive.md - docs/models/components/DriveGroup.md - docs/models/components/DriveGroupInput.md @@ -375,7 +345,6 @@ generatedFiles: - docs/models/components/ExpenseType.md - docs/models/components/Expenses.md - docs/models/components/ExtendPaths.md - - docs/models/components/ExternalDetails.md - docs/models/components/FileType.md - docs/models/components/FilesFilter.md - docs/models/components/FilesSearch.md @@ -391,7 +360,6 @@ generatedFiles: - docs/models/components/Format.md - docs/models/components/Four.md - docs/models/components/FulfillmentStatus.md - - docs/models/components/Fulfillments.md - docs/models/components/Gender.md - docs/models/components/GetAccountingDepartmentResponse.md - docs/models/components/GetAccountingDepartmentsResponse.md @@ -465,8 +433,6 @@ generatedFiles: - docs/models/components/GetInvoiceItemsResponse.md - docs/models/components/GetInvoiceResponse.md - docs/models/components/GetInvoicesResponse.md - - docs/models/components/GetItemResponse.md - - docs/models/components/GetItemsResponse.md - docs/models/components/GetJobResponse.md - docs/models/components/GetJobsResponse.md - docs/models/components/GetJournalEntriesResponse.md @@ -475,33 +441,19 @@ generatedFiles: - docs/models/components/GetLeadsResponse.md - docs/models/components/GetLedgerAccountResponse.md - docs/models/components/GetLedgerAccountsResponse.md - - docs/models/components/GetLocationResponse.md - - docs/models/components/GetLocationsResponse.md - docs/models/components/GetLogsResponse.md - - docs/models/components/GetMerchantResponse.md - - docs/models/components/GetMerchantsResponse.md - docs/models/components/GetMessageResponse.md - docs/models/components/GetMessagesResponse.md - - docs/models/components/GetModifierGroupResponse.md - - docs/models/components/GetModifierGroupsResponse.md - - docs/models/components/GetModifierResponse.md - - docs/models/components/GetModifiersResponse.md - docs/models/components/GetNoteResponse.md - docs/models/components/GetNotesResponse.md - docs/models/components/GetOpportunitiesResponse.md - docs/models/components/GetOpportunityResponse.md - - docs/models/components/GetOrderResponse.md - - docs/models/components/GetOrderTypeResponse.md - - docs/models/components/GetOrderTypesResponse.md - - docs/models/components/GetOrdersResponse.md - docs/models/components/GetPaymentResponse.md - docs/models/components/GetPaymentsResponse.md - docs/models/components/GetPayrollResponse.md - docs/models/components/GetPayrollsResponse.md - docs/models/components/GetPipelineResponse.md - docs/models/components/GetPipelinesResponse.md - - docs/models/components/GetPosPaymentResponse.md - - docs/models/components/GetPosPaymentsResponse.md - docs/models/components/GetProductResponse.md - docs/models/components/GetProductsResponse.md - docs/models/components/GetProfitAndLossResponse.md @@ -516,8 +468,6 @@ generatedFiles: - docs/models/components/GetSuppliersResponse.md - docs/models/components/GetTaxRateResponse.md - docs/models/components/GetTaxRatesResponse.md - - docs/models/components/GetTenderResponse.md - - docs/models/components/GetTendersResponse.md - docs/models/components/GetTicketResponse.md - docs/models/components/GetTicketsResponse.md - docs/models/components/GetTimeOffRequestResponse.md @@ -535,7 +485,6 @@ generatedFiles: - docs/models/components/HrisCompanyStatus.md - docs/models/components/Images.md - docs/models/components/Income.md - - docs/models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.md - docs/models/components/IntegrationState.md - docs/models/components/Invoice.md - docs/models/components/InvoiceInput.md @@ -555,14 +504,6 @@ generatedFiles: - docs/models/components/InvoicesSort.md - docs/models/components/InvoicesSortBy.md - docs/models/components/IssuesFilter.md - - docs/models/components/Item.md - - docs/models/components/ItemCategories.md - - docs/models/components/ItemCategoriesInput.md - - docs/models/components/ItemInput.md - - docs/models/components/ItemModifierGroups.md - - docs/models/components/ItemOptions.md - - docs/models/components/ItemPricingType.md - - docs/models/components/ItemVariations.md - docs/models/components/Job.md - docs/models/components/JobLinks.md - docs/models/components/JobStatus.md @@ -587,7 +528,6 @@ generatedFiles: - docs/models/components/LedgerAccountsFilter.md - docs/models/components/LedgerAccountsSort.md - docs/models/components/LedgerAccountsSortBy.md - - docs/models/components/LineItems.md - docs/models/components/LinkedConnectorResource.md - docs/models/components/LinkedCustomer.md - docs/models/components/LinkedCustomerInput.md @@ -605,30 +545,17 @@ generatedFiles: - docs/models/components/LinkedTaxRateInput.md - docs/models/components/LinkedTrackingCategory.md - docs/models/components/Links.md - - docs/models/components/Location.md - - docs/models/components/LocationInput.md - docs/models/components/LocationStatus.md - - docs/models/components/LocationStatusStatus.md - docs/models/components/Log.md - docs/models/components/LogsFilter.md - docs/models/components/ManagedVia.md - docs/models/components/Manager.md - - docs/models/components/Merchant.md - - docs/models/components/MerchantInput.md - - docs/models/components/MerchantStatus.md - docs/models/components/Message.md - docs/models/components/MessageInput.md - docs/models/components/MessageStatus.md - docs/models/components/MessageType.md - docs/models/components/Meta.md - docs/models/components/Mode.md - - docs/models/components/Modifier.md - - docs/models/components/ModifierGroup.md - - docs/models/components/ModifierGroupFilter.md - - docs/models/components/ModifierGroupInput.md - - docs/models/components/ModifierGroups.md - - docs/models/components/ModifierInput.md - - docs/models/components/Modifiers.md - docs/models/components/NetIncome.md - docs/models/components/NetOperatingIncome.md - docs/models/components/Note.md @@ -645,31 +572,6 @@ generatedFiles: - docs/models/components/Opportunity.md - docs/models/components/OpportunityInput.md - docs/models/components/Options.md - - docs/models/components/Order.md - - docs/models/components/OrderAppliedDiscounts.md - - docs/models/components/OrderAppliedTaxes.md - - docs/models/components/OrderDiscounts.md - - docs/models/components/OrderDiscountsScope.md - - docs/models/components/OrderDiscountsType.md - - docs/models/components/OrderFulfillmentStatus.md - - docs/models/components/OrderFulfillments.md - - docs/models/components/OrderFulfillmentsType.md - - docs/models/components/OrderInput.md - - docs/models/components/OrderItem.md - - docs/models/components/OrderItemInput.md - - docs/models/components/OrderLineItems.md - - docs/models/components/OrderModifiers.md - - docs/models/components/OrderPayments.md - - docs/models/components/OrderPickupDetails.md - - docs/models/components/OrderRefunds.md - - docs/models/components/OrderRefundsStatus.md - - docs/models/components/OrderScope.md - - docs/models/components/OrderStatus.md - - docs/models/components/OrderTaxesType.md - - docs/models/components/OrderTenders.md - - docs/models/components/OrderTendersType.md - - docs/models/components/OrderType.md - - docs/models/components/OrderTypeInput.md - docs/models/components/OrdersSort.md - docs/models/components/OrdersSortBy.md - docs/models/components/Owner.md @@ -678,47 +580,30 @@ generatedFiles: - docs/models/components/ParentAccount.md - docs/models/components/PassThroughBody.md - docs/models/components/Payment.md - - docs/models/components/PaymentCard.md - - docs/models/components/PaymentCardInput.md - docs/models/components/PaymentFrequency.md - docs/models/components/PaymentInput.md - docs/models/components/PaymentStatus.md - docs/models/components/PaymentType.md - docs/models/components/PaymentUnit.md - - docs/models/components/Payments.md - docs/models/components/PaymentsFilter.md - docs/models/components/PaymentsSort.md - docs/models/components/PaymentsSortBy.md - docs/models/components/Payroll.md - docs/models/components/PayrollTotals.md - docs/models/components/PayrollsFilter.md + - docs/models/components/PeriodType.md - docs/models/components/Permissions.md - docs/models/components/Person.md - docs/models/components/PersonInput.md - docs/models/components/PhoneNumber.md - docs/models/components/PhoneNumberType.md - - docs/models/components/PickupDetails.md - docs/models/components/Pipeline.md - docs/models/components/PipelineInput.md - docs/models/components/PipelineStages.md - - docs/models/components/PosBankAccount.md - - docs/models/components/PosPayment.md - - docs/models/components/PosPaymentCardDetails.md - - docs/models/components/PosPaymentInput.md - - docs/models/components/PosPaymentProcessingFeesType.md - - docs/models/components/PosPaymentSource.md - - docs/models/components/PosPaymentStatus.md - - docs/models/components/PosPaymentStatusStatus.md - - docs/models/components/PosPaymentType.md - - docs/models/components/PosPaymentWalletStatus.md - - docs/models/components/PrepaidType.md - docs/models/components/Price.md - - docs/models/components/PricingType.md - docs/models/components/Priority.md - docs/models/components/ProbationPeriod.md - - docs/models/components/ProcessingFees.md - docs/models/components/ProductStatus.md - - docs/models/components/ProductType.md - docs/models/components/ProfitAndLoss.md - docs/models/components/ProfitAndLossFilter.md - docs/models/components/PurchaseDetails.md @@ -728,8 +613,6 @@ generatedFiles: - docs/models/components/PurchaseOrdersFilter.md - docs/models/components/PurchaseOrdersSort.md - docs/models/components/PurchaseOrdersSortBy.md - - docs/models/components/Recipient.md - - docs/models/components/Refunds.md - docs/models/components/Reports.md - docs/models/components/RequestCountAllocation.md - docs/models/components/RequestRate.md @@ -739,22 +622,17 @@ generatedFiles: - docs/models/components/Salary.md - docs/models/components/SalesDetails.md - docs/models/components/Schedule.md - - docs/models/components/ScheduleType.md - docs/models/components/Schema.md - docs/models/components/SchemaSupport.md - docs/models/components/Scope.md - docs/models/components/Security.md - docs/models/components/Service.md - - docs/models/components/ServiceCharge.md - - docs/models/components/ServiceChargeInput.md - - docs/models/components/ServiceChargeType.md - docs/models/components/Session.md - docs/models/components/SessionSettings.md - docs/models/components/Settings.md - docs/models/components/SharedLink.md - docs/models/components/SharedLinkInput.md - docs/models/components/SharedLinkTarget.md - - docs/models/components/ShipmentDetails.md - docs/models/components/ShowAs.md - docs/models/components/SimpleFormFieldOption.md - docs/models/components/SimpleFormFieldOptionValue.md @@ -762,7 +640,6 @@ generatedFiles: - docs/models/components/SocialLink.md - docs/models/components/SocialLinks.md - docs/models/components/SortDirection.md - - docs/models/components/Source.md - docs/models/components/Stage.md - docs/models/components/Stages.md - docs/models/components/Status.md @@ -787,11 +664,7 @@ generatedFiles: - docs/models/components/TaxRateInput.md - docs/models/components/TaxRateStatus.md - docs/models/components/TaxRatesFilter.md - - docs/models/components/Taxes.md - docs/models/components/Team.md - - docs/models/components/Tender.md - - docs/models/components/TenderInput.md - - docs/models/components/Tenders.md - docs/models/components/TheStartMonthOfFiscalYear.md - docs/models/components/Theme.md - docs/models/components/Ticket.md @@ -808,7 +681,6 @@ generatedFiles: - docs/models/components/TrackingCategoryInput.md - docs/models/components/TrackingCategoryStatus.md - docs/models/components/TrackingItem.md - - docs/models/components/Two.md - docs/models/components/Type.md - docs/models/components/UnexpectedErrorResponse.md - docs/models/components/UnifiedApi.md @@ -845,28 +717,19 @@ generatedFiles: - docs/models/components/UpdateHrisCompanyResponse.md - docs/models/components/UpdateInvoiceItemsResponse.md - docs/models/components/UpdateInvoiceResponse.md - - docs/models/components/UpdateItemResponse.md - docs/models/components/UpdateJournalEntryResponse.md - docs/models/components/UpdateLeadResponse.md - docs/models/components/UpdateLedgerAccountResponse.md - - docs/models/components/UpdateLocationResponse.md - - docs/models/components/UpdateMerchantResponse.md - docs/models/components/UpdateMessageResponse.md - - docs/models/components/UpdateModifierGroupResponse.md - - docs/models/components/UpdateModifierResponse.md - docs/models/components/UpdateNoteResponse.md - docs/models/components/UpdateOpportunityResponse.md - - docs/models/components/UpdateOrderResponse.md - - docs/models/components/UpdateOrderTypeResponse.md - docs/models/components/UpdatePaymentResponse.md - docs/models/components/UpdatePipelineResponse.md - - docs/models/components/UpdatePosPaymentResponse.md - docs/models/components/UpdatePurchaseOrderResponse.md - docs/models/components/UpdateSharedLinkResponse.md - docs/models/components/UpdateSubsidiaryResponse.md - docs/models/components/UpdateSupplierResponse.md - docs/models/components/UpdateTaxRateResponse.md - - docs/models/components/UpdateTenderResponse.md - docs/models/components/UpdateTicketResponse.md - docs/models/components/UpdateTimeOffRequestResponse.md - docs/models/components/UpdateTrackingCategoryResponse.md @@ -881,10 +744,8 @@ generatedFiles: - docs/models/components/Value.md - docs/models/components/Value5.md - docs/models/components/Variants.md - - docs/models/components/Variations.md - docs/models/components/VirtualWebhooks.md - docs/models/components/Visibility.md - - docs/models/components/WalletDetails.md - docs/models/components/Webhook.md - docs/models/components/WebhookEventType.md - docs/models/components/WebhookSubscription.md @@ -896,13 +757,9 @@ generatedFiles: - docs/models/components/WorkPattern.md - docs/models/errors/BadRequestResponse.md - docs/models/errors/Detail.md - - docs/models/errors/Detail2.md - - docs/models/errors/DetailNotFoundResponse2.md - - docs/models/errors/DetailUnprocessableResponse2.md - docs/models/errors/NotFoundResponse.md - docs/models/errors/NotFoundResponseDetail.md - docs/models/errors/PaymentRequiredResponse.md - - docs/models/errors/Two.md - docs/models/errors/UnauthorizedResponse.md - docs/models/errors/UnauthorizedResponseDetail.md - docs/models/errors/UnprocessableResponse.md @@ -1368,108 +1225,6 @@ generatedFiles: - docs/models/operations/IssueTrackingCollectionsAllResponse.md - docs/models/operations/IssueTrackingCollectionsOneRequest.md - docs/models/operations/IssueTrackingCollectionsOneResponse.md - - docs/models/operations/LeadLeadsAddRequest.md - - docs/models/operations/LeadLeadsAddResponse.md - - docs/models/operations/LeadLeadsAllRequest.md - - docs/models/operations/LeadLeadsAllResponse.md - - docs/models/operations/LeadLeadsDeleteRequest.md - - docs/models/operations/LeadLeadsDeleteResponse.md - - docs/models/operations/LeadLeadsOneRequest.md - - docs/models/operations/LeadLeadsOneResponse.md - - docs/models/operations/LeadLeadsUpdateRequest.md - - docs/models/operations/LeadLeadsUpdateResponse.md - - docs/models/operations/PosItemsAddRequest.md - - docs/models/operations/PosItemsAddResponse.md - - docs/models/operations/PosItemsAllRequest.md - - docs/models/operations/PosItemsAllResponse.md - - docs/models/operations/PosItemsDeleteRequest.md - - docs/models/operations/PosItemsDeleteResponse.md - - docs/models/operations/PosItemsOneRequest.md - - docs/models/operations/PosItemsOneResponse.md - - docs/models/operations/PosItemsUpdateRequest.md - - docs/models/operations/PosItemsUpdateResponse.md - - docs/models/operations/PosLocationsAddRequest.md - - docs/models/operations/PosLocationsAddResponse.md - - docs/models/operations/PosLocationsAllRequest.md - - docs/models/operations/PosLocationsAllResponse.md - - docs/models/operations/PosLocationsDeleteRequest.md - - docs/models/operations/PosLocationsDeleteResponse.md - - docs/models/operations/PosLocationsOneRequest.md - - docs/models/operations/PosLocationsOneResponse.md - - docs/models/operations/PosLocationsUpdateRequest.md - - docs/models/operations/PosLocationsUpdateResponse.md - - docs/models/operations/PosMerchantsAddRequest.md - - docs/models/operations/PosMerchantsAddResponse.md - - docs/models/operations/PosMerchantsAllRequest.md - - docs/models/operations/PosMerchantsAllResponse.md - - docs/models/operations/PosMerchantsDeleteRequest.md - - docs/models/operations/PosMerchantsDeleteResponse.md - - docs/models/operations/PosMerchantsOneRequest.md - - docs/models/operations/PosMerchantsOneResponse.md - - docs/models/operations/PosMerchantsUpdateRequest.md - - docs/models/operations/PosMerchantsUpdateResponse.md - - docs/models/operations/PosModifierGroupsAddRequest.md - - docs/models/operations/PosModifierGroupsAddResponse.md - - docs/models/operations/PosModifierGroupsAllRequest.md - - docs/models/operations/PosModifierGroupsAllResponse.md - - docs/models/operations/PosModifierGroupsDeleteRequest.md - - docs/models/operations/PosModifierGroupsDeleteResponse.md - - docs/models/operations/PosModifierGroupsOneRequest.md - - docs/models/operations/PosModifierGroupsOneResponse.md - - docs/models/operations/PosModifierGroupsUpdateRequest.md - - docs/models/operations/PosModifierGroupsUpdateResponse.md - - docs/models/operations/PosModifiersAddRequest.md - - docs/models/operations/PosModifiersAddResponse.md - - docs/models/operations/PosModifiersAllRequest.md - - docs/models/operations/PosModifiersAllResponse.md - - docs/models/operations/PosModifiersDeleteRequest.md - - docs/models/operations/PosModifiersDeleteResponse.md - - docs/models/operations/PosModifiersOneRequest.md - - docs/models/operations/PosModifiersOneResponse.md - - docs/models/operations/PosModifiersUpdateRequest.md - - docs/models/operations/PosModifiersUpdateResponse.md - - docs/models/operations/PosOrderTypesAddRequest.md - - docs/models/operations/PosOrderTypesAddResponse.md - - docs/models/operations/PosOrderTypesAllRequest.md - - docs/models/operations/PosOrderTypesAllResponse.md - - docs/models/operations/PosOrderTypesDeleteRequest.md - - docs/models/operations/PosOrderTypesDeleteResponse.md - - docs/models/operations/PosOrderTypesOneRequest.md - - docs/models/operations/PosOrderTypesOneResponse.md - - docs/models/operations/PosOrderTypesUpdateRequest.md - - docs/models/operations/PosOrderTypesUpdateResponse.md - - docs/models/operations/PosOrdersAddRequest.md - - docs/models/operations/PosOrdersAddResponse.md - - docs/models/operations/PosOrdersAllRequest.md - - docs/models/operations/PosOrdersAllResponse.md - - docs/models/operations/PosOrdersDeleteRequest.md - - docs/models/operations/PosOrdersDeleteResponse.md - - docs/models/operations/PosOrdersOneRequest.md - - docs/models/operations/PosOrdersOneResponse.md - - docs/models/operations/PosOrdersPayRequest.md - - docs/models/operations/PosOrdersPayResponse.md - - docs/models/operations/PosOrdersUpdateRequest.md - - docs/models/operations/PosOrdersUpdateResponse.md - - docs/models/operations/PosPaymentsAddRequest.md - - docs/models/operations/PosPaymentsAddResponse.md - - docs/models/operations/PosPaymentsAllRequest.md - - docs/models/operations/PosPaymentsAllResponse.md - - docs/models/operations/PosPaymentsDeleteRequest.md - - docs/models/operations/PosPaymentsDeleteResponse.md - - docs/models/operations/PosPaymentsOneRequest.md - - docs/models/operations/PosPaymentsOneResponse.md - - docs/models/operations/PosPaymentsUpdateRequest.md - - docs/models/operations/PosPaymentsUpdateResponse.md - - docs/models/operations/PosTendersAddRequest.md - - docs/models/operations/PosTendersAddResponse.md - - docs/models/operations/PosTendersAllRequest.md - - docs/models/operations/PosTendersAllResponse.md - - docs/models/operations/PosTendersDeleteRequest.md - - docs/models/operations/PosTendersDeleteResponse.md - - docs/models/operations/PosTendersOneRequest.md - - docs/models/operations/PosTendersOneResponse.md - - docs/models/operations/PosTendersUpdateRequest.md - - docs/models/operations/PosTendersUpdateResponse.md - docs/models/operations/SmsMessagesAddRequest.md - docs/models/operations/SmsMessagesAddResponse.md - docs/models/operations/SmsMessagesAllRequest.md @@ -1540,10 +1295,6 @@ generatedFiles: - docs/sdks/apideckcompanies/README.md - docs/sdks/apideckcustomers/README.md - docs/sdks/apideckdepartments/README.md - - docs/sdks/apideckleads/README.md - - docs/sdks/apidecklocations/README.md - - docs/sdks/apideckorders/README.md - - docs/sdks/apideckpayments/README.md - docs/sdks/apiresourcecoverage/README.md - docs/sdks/apiresources/README.md - docs/sdks/apis/README.md @@ -1592,26 +1343,19 @@ generatedFiles: - docs/sdks/invoiceitems/README.md - docs/sdks/invoices/README.md - docs/sdks/issuetracking/README.md - - docs/sdks/items/README.md - docs/sdks/jobs/README.md - docs/sdks/journalentries/README.md - - docs/sdks/lead/README.md - docs/sdks/leads/README.md - docs/sdks/ledgeraccounts/README.md - docs/sdks/locations/README.md - docs/sdks/logs/README.md - - docs/sdks/merchants/README.md - docs/sdks/messages/README.md - - docs/sdks/modifiergroups/README.md - - docs/sdks/modifiers/README.md - docs/sdks/notes/README.md - docs/sdks/opportunities/README.md - docs/sdks/orders/README.md - - docs/sdks/ordertypes/README.md - docs/sdks/payments/README.md - docs/sdks/payrolls/README.md - docs/sdks/pipelines/README.md - - docs/sdks/pos/README.md - docs/sdks/products/README.md - docs/sdks/profitandloss/README.md - docs/sdks/purchaseorders/README.md @@ -1622,7 +1366,6 @@ generatedFiles: - docs/sdks/subsidiaries/README.md - docs/sdks/suppliers/README.md - docs/sdks/taxrates/README.md - - docs/sdks/tenders/README.md - docs/sdks/timeoffrequests/README.md - docs/sdks/trackingcategories/README.md - docs/sdks/uploadsessions/README.md @@ -1644,10 +1387,6 @@ generatedFiles: - src/main/java/com/apideck/unify/ApideckCompanies.java - src/main/java/com/apideck/unify/ApideckCustomers.java - src/main/java/com/apideck/unify/ApideckDepartments.java - - src/main/java/com/apideck/unify/ApideckLeads.java - - src/main/java/com/apideck/unify/ApideckLocations.java - - src/main/java/com/apideck/unify/ApideckOrders.java - - src/main/java/com/apideck/unify/ApideckPayments.java - src/main/java/com/apideck/unify/Apis.java - src/main/java/com/apideck/unify/Applicants.java - src/main/java/com/apideck/unify/Applications.java @@ -1694,26 +1433,19 @@ generatedFiles: - src/main/java/com/apideck/unify/InvoiceItems.java - src/main/java/com/apideck/unify/Invoices.java - src/main/java/com/apideck/unify/IssueTracking.java - - src/main/java/com/apideck/unify/Items.java - src/main/java/com/apideck/unify/Jobs.java - src/main/java/com/apideck/unify/JournalEntries.java - - src/main/java/com/apideck/unify/Lead.java - src/main/java/com/apideck/unify/Leads.java - src/main/java/com/apideck/unify/LedgerAccounts.java - src/main/java/com/apideck/unify/Locations.java - src/main/java/com/apideck/unify/Logs.java - - src/main/java/com/apideck/unify/Merchants.java - src/main/java/com/apideck/unify/Messages.java - - src/main/java/com/apideck/unify/ModifierGroups.java - - src/main/java/com/apideck/unify/Modifiers.java - src/main/java/com/apideck/unify/Notes.java - src/main/java/com/apideck/unify/Opportunities.java - - src/main/java/com/apideck/unify/OrderTypes.java - src/main/java/com/apideck/unify/Orders.java - src/main/java/com/apideck/unify/Payments.java - src/main/java/com/apideck/unify/Payrolls.java - src/main/java/com/apideck/unify/Pipelines.java - - src/main/java/com/apideck/unify/Pos.java - src/main/java/com/apideck/unify/Products.java - src/main/java/com/apideck/unify/ProfitAndLoss.java - src/main/java/com/apideck/unify/PurchaseOrders.java @@ -1726,7 +1458,6 @@ generatedFiles: - src/main/java/com/apideck/unify/Subsidiaries.java - src/main/java/com/apideck/unify/Suppliers.java - src/main/java/com/apideck/unify/TaxRates.java - - src/main/java/com/apideck/unify/Tenders.java - src/main/java/com/apideck/unify/TimeOffRequests.java - src/main/java/com/apideck/unify/TrackingCategories.java - src/main/java/com/apideck/unify/UploadSessions.java @@ -1743,7 +1474,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/AccountingLocation.java - src/main/java/com/apideck/unify/models/components/AccountingLocationInput.java - src/main/java/com/apideck/unify/models/components/AccountingLocationsFilter.java - - src/main/java/com/apideck/unify/models/components/AchDetails.java - src/main/java/com/apideck/unify/models/components/ActivitiesFilter.java - src/main/java/com/apideck/unify/models/components/ActivitiesSort.java - src/main/java/com/apideck/unify/models/components/ActivitiesSortBy.java @@ -1773,8 +1503,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/Application.java - src/main/java/com/apideck/unify/models/components/ApplicationInput.java - src/main/java/com/apideck/unify/models/components/ApplicationStatus.java - - src/main/java/com/apideck/unify/models/components/AppliedDiscounts.java - - src/main/java/com/apideck/unify/models/components/AppliedTaxes.java - src/main/java/com/apideck/unify/models/components/Assignee.java - src/main/java/com/apideck/unify/models/components/AssigneeInput.java - src/main/java/com/apideck/unify/models/components/Attachment.java @@ -1806,12 +1534,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/Blocks.java - src/main/java/com/apideck/unify/models/components/Branch.java - src/main/java/com/apideck/unify/models/components/By.java - - src/main/java/com/apideck/unify/models/components/CardBrand.java - - src/main/java/com/apideck/unify/models/components/CardDetails.java - - src/main/java/com/apideck/unify/models/components/CardEntryMethod.java - - src/main/java/com/apideck/unify/models/components/CardStatus.java - - src/main/java/com/apideck/unify/models/components/CardType.java - - src/main/java/com/apideck/unify/models/components/CashDetails.java - src/main/java/com/apideck/unify/models/components/Categories.java - src/main/java/com/apideck/unify/models/components/Classification.java - src/main/java/com/apideck/unify/models/components/Collection.java @@ -1897,22 +1619,14 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/CreateHrisCompanyResponse.java - src/main/java/com/apideck/unify/models/components/CreateInvoiceItemResponse.java - src/main/java/com/apideck/unify/models/components/CreateInvoiceResponse.java - - src/main/java/com/apideck/unify/models/components/CreateItemResponse.java - src/main/java/com/apideck/unify/models/components/CreateJournalEntryResponse.java - src/main/java/com/apideck/unify/models/components/CreateLeadResponse.java - src/main/java/com/apideck/unify/models/components/CreateLedgerAccountResponse.java - - src/main/java/com/apideck/unify/models/components/CreateLocationResponse.java - - src/main/java/com/apideck/unify/models/components/CreateMerchantResponse.java - src/main/java/com/apideck/unify/models/components/CreateMessageResponse.java - - src/main/java/com/apideck/unify/models/components/CreateModifierGroupResponse.java - - src/main/java/com/apideck/unify/models/components/CreateModifierResponse.java - src/main/java/com/apideck/unify/models/components/CreateNoteResponse.java - src/main/java/com/apideck/unify/models/components/CreateOpportunityResponse.java - - src/main/java/com/apideck/unify/models/components/CreateOrderResponse.java - - src/main/java/com/apideck/unify/models/components/CreateOrderTypeResponse.java - src/main/java/com/apideck/unify/models/components/CreatePaymentResponse.java - src/main/java/com/apideck/unify/models/components/CreatePipelineResponse.java - - src/main/java/com/apideck/unify/models/components/CreatePosPaymentResponse.java - src/main/java/com/apideck/unify/models/components/CreatePurchaseOrderResponse.java - src/main/java/com/apideck/unify/models/components/CreateSessionResponse.java - src/main/java/com/apideck/unify/models/components/CreateSessionResponseData.java @@ -1920,7 +1634,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/CreateSubsidiaryResponse.java - src/main/java/com/apideck/unify/models/components/CreateSupplierResponse.java - src/main/java/com/apideck/unify/models/components/CreateTaxRateResponse.java - - src/main/java/com/apideck/unify/models/components/CreateTenderResponse.java - src/main/java/com/apideck/unify/models/components/CreateTicketResponse.java - src/main/java/com/apideck/unify/models/components/CreateTimeOffRequestResponse.java - src/main/java/com/apideck/unify/models/components/CreateTrackingCategoryResponse.java @@ -1937,7 +1650,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/CreditNotesFilter.java - src/main/java/com/apideck/unify/models/components/CreditNotesSort.java - src/main/java/com/apideck/unify/models/components/CreditNotesSortBy.java - - src/main/java/com/apideck/unify/models/components/CurbsidePickupDetails.java - src/main/java/com/apideck/unify/models/components/Currency.java - src/main/java/com/apideck/unify/models/components/Cursors.java - src/main/java/com/apideck/unify/models/components/CustomField.java @@ -1949,7 +1661,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/CustomerInput.java - src/main/java/com/apideck/unify/models/components/CustomerStatus.java - src/main/java/com/apideck/unify/models/components/CustomerStatusStatus.java - - src/main/java/com/apideck/unify/models/components/Customers.java - src/main/java/com/apideck/unify/models/components/CustomersFilter.java - src/main/java/com/apideck/unify/models/components/CustomersFilterStatus.java - src/main/java/com/apideck/unify/models/components/CustomersSort.java @@ -1981,28 +1692,19 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/DeleteFolderResponse.java - src/main/java/com/apideck/unify/models/components/DeleteHrisCompanyResponse.java - src/main/java/com/apideck/unify/models/components/DeleteInvoiceResponse.java - - src/main/java/com/apideck/unify/models/components/DeleteItemResponse.java - src/main/java/com/apideck/unify/models/components/DeleteJournalEntryResponse.java - src/main/java/com/apideck/unify/models/components/DeleteLeadResponse.java - src/main/java/com/apideck/unify/models/components/DeleteLedgerAccountResponse.java - - src/main/java/com/apideck/unify/models/components/DeleteLocationResponse.java - - src/main/java/com/apideck/unify/models/components/DeleteMerchantResponse.java - src/main/java/com/apideck/unify/models/components/DeleteMessageResponse.java - - src/main/java/com/apideck/unify/models/components/DeleteModifierGroupResponse.java - - src/main/java/com/apideck/unify/models/components/DeleteModifierResponse.java - src/main/java/com/apideck/unify/models/components/DeleteNoteResponse.java - src/main/java/com/apideck/unify/models/components/DeleteOpportunityResponse.java - - src/main/java/com/apideck/unify/models/components/DeleteOrderResponse.java - - src/main/java/com/apideck/unify/models/components/DeleteOrderTypeResponse.java - src/main/java/com/apideck/unify/models/components/DeletePaymentResponse.java - src/main/java/com/apideck/unify/models/components/DeletePipelineResponse.java - - src/main/java/com/apideck/unify/models/components/DeletePosPaymentResponse.java - src/main/java/com/apideck/unify/models/components/DeletePurchaseOrderResponse.java - src/main/java/com/apideck/unify/models/components/DeleteSharedLinkResponse.java - src/main/java/com/apideck/unify/models/components/DeleteSubsidiaryResponse.java - src/main/java/com/apideck/unify/models/components/DeleteSupplierResponse.java - src/main/java/com/apideck/unify/models/components/DeleteTaxRateResponse.java - - src/main/java/com/apideck/unify/models/components/DeleteTenderResponse.java - src/main/java/com/apideck/unify/models/components/DeleteTicketResponse.java - src/main/java/com/apideck/unify/models/components/DeleteTimeOffRequestResponse.java - src/main/java/com/apideck/unify/models/components/DeleteTrackingCategoryResponse.java @@ -2018,7 +1720,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/Detail.java - src/main/java/com/apideck/unify/models/components/Direction.java - src/main/java/com/apideck/unify/models/components/DisabledReason.java - - src/main/java/com/apideck/unify/models/components/Discounts.java - src/main/java/com/apideck/unify/models/components/Drive.java - src/main/java/com/apideck/unify/models/components/DriveGroup.java - src/main/java/com/apideck/unify/models/components/DriveGroupInput.java @@ -2072,7 +1773,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/ExpenseType.java - src/main/java/com/apideck/unify/models/components/Expenses.java - src/main/java/com/apideck/unify/models/components/ExtendPaths.java - - src/main/java/com/apideck/unify/models/components/ExternalDetails.java - src/main/java/com/apideck/unify/models/components/FileType.java - src/main/java/com/apideck/unify/models/components/FilesFilter.java - src/main/java/com/apideck/unify/models/components/FilesSearch.java @@ -2088,7 +1788,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/Format.java - src/main/java/com/apideck/unify/models/components/Four.java - src/main/java/com/apideck/unify/models/components/FulfillmentStatus.java - - src/main/java/com/apideck/unify/models/components/Fulfillments.java - src/main/java/com/apideck/unify/models/components/Gender.java - src/main/java/com/apideck/unify/models/components/GetAccountingDepartmentResponse.java - src/main/java/com/apideck/unify/models/components/GetAccountingDepartmentsResponse.java @@ -2162,8 +1861,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/GetInvoiceItemsResponse.java - src/main/java/com/apideck/unify/models/components/GetInvoiceResponse.java - src/main/java/com/apideck/unify/models/components/GetInvoicesResponse.java - - src/main/java/com/apideck/unify/models/components/GetItemResponse.java - - src/main/java/com/apideck/unify/models/components/GetItemsResponse.java - src/main/java/com/apideck/unify/models/components/GetJobResponse.java - src/main/java/com/apideck/unify/models/components/GetJobsResponse.java - src/main/java/com/apideck/unify/models/components/GetJournalEntriesResponse.java @@ -2172,33 +1869,19 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/GetLeadsResponse.java - src/main/java/com/apideck/unify/models/components/GetLedgerAccountResponse.java - src/main/java/com/apideck/unify/models/components/GetLedgerAccountsResponse.java - - src/main/java/com/apideck/unify/models/components/GetLocationResponse.java - - src/main/java/com/apideck/unify/models/components/GetLocationsResponse.java - src/main/java/com/apideck/unify/models/components/GetLogsResponse.java - - src/main/java/com/apideck/unify/models/components/GetMerchantResponse.java - - src/main/java/com/apideck/unify/models/components/GetMerchantsResponse.java - src/main/java/com/apideck/unify/models/components/GetMessageResponse.java - src/main/java/com/apideck/unify/models/components/GetMessagesResponse.java - - src/main/java/com/apideck/unify/models/components/GetModifierGroupResponse.java - - src/main/java/com/apideck/unify/models/components/GetModifierGroupsResponse.java - - src/main/java/com/apideck/unify/models/components/GetModifierResponse.java - - src/main/java/com/apideck/unify/models/components/GetModifiersResponse.java - src/main/java/com/apideck/unify/models/components/GetNoteResponse.java - src/main/java/com/apideck/unify/models/components/GetNotesResponse.java - src/main/java/com/apideck/unify/models/components/GetOpportunitiesResponse.java - src/main/java/com/apideck/unify/models/components/GetOpportunityResponse.java - - src/main/java/com/apideck/unify/models/components/GetOrderResponse.java - - src/main/java/com/apideck/unify/models/components/GetOrderTypeResponse.java - - src/main/java/com/apideck/unify/models/components/GetOrderTypesResponse.java - - src/main/java/com/apideck/unify/models/components/GetOrdersResponse.java - src/main/java/com/apideck/unify/models/components/GetPaymentResponse.java - src/main/java/com/apideck/unify/models/components/GetPaymentsResponse.java - src/main/java/com/apideck/unify/models/components/GetPayrollResponse.java - src/main/java/com/apideck/unify/models/components/GetPayrollsResponse.java - src/main/java/com/apideck/unify/models/components/GetPipelineResponse.java - src/main/java/com/apideck/unify/models/components/GetPipelinesResponse.java - - src/main/java/com/apideck/unify/models/components/GetPosPaymentResponse.java - - src/main/java/com/apideck/unify/models/components/GetPosPaymentsResponse.java - src/main/java/com/apideck/unify/models/components/GetProductResponse.java - src/main/java/com/apideck/unify/models/components/GetProductsResponse.java - src/main/java/com/apideck/unify/models/components/GetProfitAndLossResponse.java @@ -2213,8 +1896,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/GetSuppliersResponse.java - src/main/java/com/apideck/unify/models/components/GetTaxRateResponse.java - src/main/java/com/apideck/unify/models/components/GetTaxRatesResponse.java - - src/main/java/com/apideck/unify/models/components/GetTenderResponse.java - - src/main/java/com/apideck/unify/models/components/GetTendersResponse.java - src/main/java/com/apideck/unify/models/components/GetTicketResponse.java - src/main/java/com/apideck/unify/models/components/GetTicketsResponse.java - src/main/java/com/apideck/unify/models/components/GetTimeOffRequestResponse.java @@ -2232,7 +1913,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/HrisCompanyStatus.java - src/main/java/com/apideck/unify/models/components/Images.java - src/main/java/com/apideck/unify/models/components/Income.java - - src/main/java/com/apideck/unify/models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.java - src/main/java/com/apideck/unify/models/components/IntegrationState.java - src/main/java/com/apideck/unify/models/components/Invoice.java - src/main/java/com/apideck/unify/models/components/InvoiceInput.java @@ -2252,14 +1932,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/InvoicesSort.java - src/main/java/com/apideck/unify/models/components/InvoicesSortBy.java - src/main/java/com/apideck/unify/models/components/IssuesFilter.java - - src/main/java/com/apideck/unify/models/components/Item.java - - src/main/java/com/apideck/unify/models/components/ItemCategories.java - - src/main/java/com/apideck/unify/models/components/ItemCategoriesInput.java - - src/main/java/com/apideck/unify/models/components/ItemInput.java - - src/main/java/com/apideck/unify/models/components/ItemModifierGroups.java - - src/main/java/com/apideck/unify/models/components/ItemOptions.java - - src/main/java/com/apideck/unify/models/components/ItemPricingType.java - - src/main/java/com/apideck/unify/models/components/ItemVariations.java - src/main/java/com/apideck/unify/models/components/Job.java - src/main/java/com/apideck/unify/models/components/JobLinks.java - src/main/java/com/apideck/unify/models/components/JobStatus.java @@ -2284,7 +1956,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/LedgerAccountsFilter.java - src/main/java/com/apideck/unify/models/components/LedgerAccountsSort.java - src/main/java/com/apideck/unify/models/components/LedgerAccountsSortBy.java - - src/main/java/com/apideck/unify/models/components/LineItems.java - src/main/java/com/apideck/unify/models/components/LinkedConnectorResource.java - src/main/java/com/apideck/unify/models/components/LinkedCustomer.java - src/main/java/com/apideck/unify/models/components/LinkedCustomerInput.java @@ -2302,30 +1973,17 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/LinkedTaxRateInput.java - src/main/java/com/apideck/unify/models/components/LinkedTrackingCategory.java - src/main/java/com/apideck/unify/models/components/Links.java - - src/main/java/com/apideck/unify/models/components/Location.java - - src/main/java/com/apideck/unify/models/components/LocationInput.java - src/main/java/com/apideck/unify/models/components/LocationStatus.java - - src/main/java/com/apideck/unify/models/components/LocationStatusStatus.java - src/main/java/com/apideck/unify/models/components/Log.java - src/main/java/com/apideck/unify/models/components/LogsFilter.java - src/main/java/com/apideck/unify/models/components/ManagedVia.java - src/main/java/com/apideck/unify/models/components/Manager.java - - src/main/java/com/apideck/unify/models/components/Merchant.java - - src/main/java/com/apideck/unify/models/components/MerchantInput.java - - src/main/java/com/apideck/unify/models/components/MerchantStatus.java - src/main/java/com/apideck/unify/models/components/Message.java - src/main/java/com/apideck/unify/models/components/MessageInput.java - src/main/java/com/apideck/unify/models/components/MessageStatus.java - src/main/java/com/apideck/unify/models/components/MessageType.java - src/main/java/com/apideck/unify/models/components/Meta.java - src/main/java/com/apideck/unify/models/components/Mode.java - - src/main/java/com/apideck/unify/models/components/Modifier.java - - src/main/java/com/apideck/unify/models/components/ModifierGroup.java - - src/main/java/com/apideck/unify/models/components/ModifierGroupFilter.java - - src/main/java/com/apideck/unify/models/components/ModifierGroupInput.java - - src/main/java/com/apideck/unify/models/components/ModifierGroups.java - - src/main/java/com/apideck/unify/models/components/ModifierInput.java - - src/main/java/com/apideck/unify/models/components/Modifiers.java - src/main/java/com/apideck/unify/models/components/NetIncome.java - src/main/java/com/apideck/unify/models/components/NetOperatingIncome.java - src/main/java/com/apideck/unify/models/components/Note.java @@ -2342,31 +2000,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/Opportunity.java - src/main/java/com/apideck/unify/models/components/OpportunityInput.java - src/main/java/com/apideck/unify/models/components/Options.java - - src/main/java/com/apideck/unify/models/components/Order.java - - src/main/java/com/apideck/unify/models/components/OrderAppliedDiscounts.java - - src/main/java/com/apideck/unify/models/components/OrderAppliedTaxes.java - - src/main/java/com/apideck/unify/models/components/OrderDiscounts.java - - src/main/java/com/apideck/unify/models/components/OrderDiscountsScope.java - - src/main/java/com/apideck/unify/models/components/OrderDiscountsType.java - - src/main/java/com/apideck/unify/models/components/OrderFulfillmentStatus.java - - src/main/java/com/apideck/unify/models/components/OrderFulfillments.java - - src/main/java/com/apideck/unify/models/components/OrderFulfillmentsType.java - - src/main/java/com/apideck/unify/models/components/OrderInput.java - - src/main/java/com/apideck/unify/models/components/OrderItem.java - - src/main/java/com/apideck/unify/models/components/OrderItemInput.java - - src/main/java/com/apideck/unify/models/components/OrderLineItems.java - - src/main/java/com/apideck/unify/models/components/OrderModifiers.java - - src/main/java/com/apideck/unify/models/components/OrderPayments.java - - src/main/java/com/apideck/unify/models/components/OrderPickupDetails.java - - src/main/java/com/apideck/unify/models/components/OrderRefunds.java - - src/main/java/com/apideck/unify/models/components/OrderRefundsStatus.java - - src/main/java/com/apideck/unify/models/components/OrderScope.java - - src/main/java/com/apideck/unify/models/components/OrderStatus.java - - src/main/java/com/apideck/unify/models/components/OrderTaxesType.java - - src/main/java/com/apideck/unify/models/components/OrderTenders.java - - src/main/java/com/apideck/unify/models/components/OrderTendersType.java - - src/main/java/com/apideck/unify/models/components/OrderType.java - - src/main/java/com/apideck/unify/models/components/OrderTypeInput.java - src/main/java/com/apideck/unify/models/components/OrdersSort.java - src/main/java/com/apideck/unify/models/components/OrdersSortBy.java - src/main/java/com/apideck/unify/models/components/Owner.java @@ -2375,47 +2008,30 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/ParentAccount.java - src/main/java/com/apideck/unify/models/components/PassThroughBody.java - src/main/java/com/apideck/unify/models/components/Payment.java - - src/main/java/com/apideck/unify/models/components/PaymentCard.java - - src/main/java/com/apideck/unify/models/components/PaymentCardInput.java - src/main/java/com/apideck/unify/models/components/PaymentFrequency.java - src/main/java/com/apideck/unify/models/components/PaymentInput.java - src/main/java/com/apideck/unify/models/components/PaymentStatus.java - src/main/java/com/apideck/unify/models/components/PaymentType.java - src/main/java/com/apideck/unify/models/components/PaymentUnit.java - - src/main/java/com/apideck/unify/models/components/Payments.java - src/main/java/com/apideck/unify/models/components/PaymentsFilter.java - src/main/java/com/apideck/unify/models/components/PaymentsSort.java - src/main/java/com/apideck/unify/models/components/PaymentsSortBy.java - src/main/java/com/apideck/unify/models/components/Payroll.java - src/main/java/com/apideck/unify/models/components/PayrollTotals.java - src/main/java/com/apideck/unify/models/components/PayrollsFilter.java + - src/main/java/com/apideck/unify/models/components/PeriodType.java - src/main/java/com/apideck/unify/models/components/Permissions.java - src/main/java/com/apideck/unify/models/components/Person.java - src/main/java/com/apideck/unify/models/components/PersonInput.java - src/main/java/com/apideck/unify/models/components/PhoneNumber.java - src/main/java/com/apideck/unify/models/components/PhoneNumberType.java - - src/main/java/com/apideck/unify/models/components/PickupDetails.java - src/main/java/com/apideck/unify/models/components/Pipeline.java - src/main/java/com/apideck/unify/models/components/PipelineInput.java - src/main/java/com/apideck/unify/models/components/PipelineStages.java - - src/main/java/com/apideck/unify/models/components/PosBankAccount.java - - src/main/java/com/apideck/unify/models/components/PosPayment.java - - src/main/java/com/apideck/unify/models/components/PosPaymentCardDetails.java - - src/main/java/com/apideck/unify/models/components/PosPaymentInput.java - - src/main/java/com/apideck/unify/models/components/PosPaymentProcessingFeesType.java - - src/main/java/com/apideck/unify/models/components/PosPaymentSource.java - - src/main/java/com/apideck/unify/models/components/PosPaymentStatus.java - - src/main/java/com/apideck/unify/models/components/PosPaymentStatusStatus.java - - src/main/java/com/apideck/unify/models/components/PosPaymentType.java - - src/main/java/com/apideck/unify/models/components/PosPaymentWalletStatus.java - - src/main/java/com/apideck/unify/models/components/PrepaidType.java - src/main/java/com/apideck/unify/models/components/Price.java - - src/main/java/com/apideck/unify/models/components/PricingType.java - src/main/java/com/apideck/unify/models/components/Priority.java - src/main/java/com/apideck/unify/models/components/ProbationPeriod.java - - src/main/java/com/apideck/unify/models/components/ProcessingFees.java - src/main/java/com/apideck/unify/models/components/ProductStatus.java - - src/main/java/com/apideck/unify/models/components/ProductType.java - src/main/java/com/apideck/unify/models/components/ProfitAndLoss.java - src/main/java/com/apideck/unify/models/components/ProfitAndLossFilter.java - src/main/java/com/apideck/unify/models/components/PurchaseDetails.java @@ -2425,8 +2041,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/PurchaseOrdersFilter.java - src/main/java/com/apideck/unify/models/components/PurchaseOrdersSort.java - src/main/java/com/apideck/unify/models/components/PurchaseOrdersSortBy.java - - src/main/java/com/apideck/unify/models/components/Recipient.java - - src/main/java/com/apideck/unify/models/components/Refunds.java - src/main/java/com/apideck/unify/models/components/Reports.java - src/main/java/com/apideck/unify/models/components/RequestCountAllocation.java - src/main/java/com/apideck/unify/models/components/RequestRate.java @@ -2436,22 +2050,17 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/Salary.java - src/main/java/com/apideck/unify/models/components/SalesDetails.java - src/main/java/com/apideck/unify/models/components/Schedule.java - - src/main/java/com/apideck/unify/models/components/ScheduleType.java - src/main/java/com/apideck/unify/models/components/Schema.java - src/main/java/com/apideck/unify/models/components/SchemaSupport.java - src/main/java/com/apideck/unify/models/components/Scope.java - src/main/java/com/apideck/unify/models/components/Security.java - src/main/java/com/apideck/unify/models/components/Service.java - - src/main/java/com/apideck/unify/models/components/ServiceCharge.java - - src/main/java/com/apideck/unify/models/components/ServiceChargeInput.java - - src/main/java/com/apideck/unify/models/components/ServiceChargeType.java - src/main/java/com/apideck/unify/models/components/Session.java - src/main/java/com/apideck/unify/models/components/SessionSettings.java - src/main/java/com/apideck/unify/models/components/Settings.java - src/main/java/com/apideck/unify/models/components/SharedLink.java - src/main/java/com/apideck/unify/models/components/SharedLinkInput.java - src/main/java/com/apideck/unify/models/components/SharedLinkTarget.java - - src/main/java/com/apideck/unify/models/components/ShipmentDetails.java - src/main/java/com/apideck/unify/models/components/ShowAs.java - src/main/java/com/apideck/unify/models/components/SimpleFormFieldOption.java - src/main/java/com/apideck/unify/models/components/SimpleFormFieldOptionValue.java @@ -2459,7 +2068,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/SocialLink.java - src/main/java/com/apideck/unify/models/components/SocialLinks.java - src/main/java/com/apideck/unify/models/components/SortDirection.java - - src/main/java/com/apideck/unify/models/components/Source.java - src/main/java/com/apideck/unify/models/components/Stage.java - src/main/java/com/apideck/unify/models/components/Stages.java - src/main/java/com/apideck/unify/models/components/Status.java @@ -2484,11 +2092,7 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/TaxRateInput.java - src/main/java/com/apideck/unify/models/components/TaxRateStatus.java - src/main/java/com/apideck/unify/models/components/TaxRatesFilter.java - - src/main/java/com/apideck/unify/models/components/Taxes.java - src/main/java/com/apideck/unify/models/components/Team.java - - src/main/java/com/apideck/unify/models/components/Tender.java - - src/main/java/com/apideck/unify/models/components/TenderInput.java - - src/main/java/com/apideck/unify/models/components/Tenders.java - src/main/java/com/apideck/unify/models/components/TheStartMonthOfFiscalYear.java - src/main/java/com/apideck/unify/models/components/Theme.java - src/main/java/com/apideck/unify/models/components/Ticket.java @@ -2505,7 +2109,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/TrackingCategoryInput.java - src/main/java/com/apideck/unify/models/components/TrackingCategoryStatus.java - src/main/java/com/apideck/unify/models/components/TrackingItem.java - - src/main/java/com/apideck/unify/models/components/Two.java - src/main/java/com/apideck/unify/models/components/Type.java - src/main/java/com/apideck/unify/models/components/UnexpectedErrorResponse.java - src/main/java/com/apideck/unify/models/components/UnifiedApi.java @@ -2542,28 +2145,19 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/UpdateHrisCompanyResponse.java - src/main/java/com/apideck/unify/models/components/UpdateInvoiceItemsResponse.java - src/main/java/com/apideck/unify/models/components/UpdateInvoiceResponse.java - - src/main/java/com/apideck/unify/models/components/UpdateItemResponse.java - src/main/java/com/apideck/unify/models/components/UpdateJournalEntryResponse.java - src/main/java/com/apideck/unify/models/components/UpdateLeadResponse.java - src/main/java/com/apideck/unify/models/components/UpdateLedgerAccountResponse.java - - src/main/java/com/apideck/unify/models/components/UpdateLocationResponse.java - - src/main/java/com/apideck/unify/models/components/UpdateMerchantResponse.java - src/main/java/com/apideck/unify/models/components/UpdateMessageResponse.java - - src/main/java/com/apideck/unify/models/components/UpdateModifierGroupResponse.java - - src/main/java/com/apideck/unify/models/components/UpdateModifierResponse.java - src/main/java/com/apideck/unify/models/components/UpdateNoteResponse.java - src/main/java/com/apideck/unify/models/components/UpdateOpportunityResponse.java - - src/main/java/com/apideck/unify/models/components/UpdateOrderResponse.java - - src/main/java/com/apideck/unify/models/components/UpdateOrderTypeResponse.java - src/main/java/com/apideck/unify/models/components/UpdatePaymentResponse.java - src/main/java/com/apideck/unify/models/components/UpdatePipelineResponse.java - - src/main/java/com/apideck/unify/models/components/UpdatePosPaymentResponse.java - src/main/java/com/apideck/unify/models/components/UpdatePurchaseOrderResponse.java - src/main/java/com/apideck/unify/models/components/UpdateSharedLinkResponse.java - src/main/java/com/apideck/unify/models/components/UpdateSubsidiaryResponse.java - src/main/java/com/apideck/unify/models/components/UpdateSupplierResponse.java - src/main/java/com/apideck/unify/models/components/UpdateTaxRateResponse.java - - src/main/java/com/apideck/unify/models/components/UpdateTenderResponse.java - src/main/java/com/apideck/unify/models/components/UpdateTicketResponse.java - src/main/java/com/apideck/unify/models/components/UpdateTimeOffRequestResponse.java - src/main/java/com/apideck/unify/models/components/UpdateTrackingCategoryResponse.java @@ -2578,10 +2172,8 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/Value.java - src/main/java/com/apideck/unify/models/components/Value5.java - src/main/java/com/apideck/unify/models/components/Variants.java - - src/main/java/com/apideck/unify/models/components/Variations.java - src/main/java/com/apideck/unify/models/components/VirtualWebhooks.java - src/main/java/com/apideck/unify/models/components/Visibility.java - - src/main/java/com/apideck/unify/models/components/WalletDetails.java - src/main/java/com/apideck/unify/models/components/Webhook.java - src/main/java/com/apideck/unify/models/components/WebhookEventType.java - src/main/java/com/apideck/unify/models/components/WebhookSubscription.java @@ -2595,13 +2187,9 @@ generatedFiles: - src/main/java/com/apideck/unify/models/errors/AuthException.java - src/main/java/com/apideck/unify/models/errors/BadRequestResponse.java - src/main/java/com/apideck/unify/models/errors/Detail.java - - src/main/java/com/apideck/unify/models/errors/Detail2.java - - src/main/java/com/apideck/unify/models/errors/DetailNotFoundResponse2.java - - src/main/java/com/apideck/unify/models/errors/DetailUnprocessableResponse2.java - src/main/java/com/apideck/unify/models/errors/NotFoundResponse.java - src/main/java/com/apideck/unify/models/errors/NotFoundResponseDetail.java - src/main/java/com/apideck/unify/models/errors/PaymentRequiredResponse.java - - src/main/java/com/apideck/unify/models/errors/Two.java - src/main/java/com/apideck/unify/models/errors/UnauthorizedResponse.java - src/main/java/com/apideck/unify/models/errors/UnauthorizedResponseDetail.java - src/main/java/com/apideck/unify/models/errors/UnprocessableResponse.java @@ -3297,159 +2885,6 @@ generatedFiles: - src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionsOneRequest.java - src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionsOneRequestBuilder.java - src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionsOneResponse.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsAddRequest.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsAddRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsAddResponse.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsAllRequest.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsAllRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsAllResponse.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteRequest.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteResponse.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsOneRequest.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsOneRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsOneResponse.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateRequest.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateResponse.java - - src/main/java/com/apideck/unify/models/operations/PosItemsAddRequest.java - - src/main/java/com/apideck/unify/models/operations/PosItemsAddRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosItemsAddResponse.java - - src/main/java/com/apideck/unify/models/operations/PosItemsAllRequest.java - - src/main/java/com/apideck/unify/models/operations/PosItemsAllRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosItemsAllResponse.java - - src/main/java/com/apideck/unify/models/operations/PosItemsDeleteRequest.java - - src/main/java/com/apideck/unify/models/operations/PosItemsDeleteRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosItemsDeleteResponse.java - - src/main/java/com/apideck/unify/models/operations/PosItemsOneRequest.java - - src/main/java/com/apideck/unify/models/operations/PosItemsOneRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosItemsOneResponse.java - - src/main/java/com/apideck/unify/models/operations/PosItemsUpdateRequest.java - - src/main/java/com/apideck/unify/models/operations/PosItemsUpdateRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosItemsUpdateResponse.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsAddRequest.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsAddRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsAddResponse.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsAllRequest.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsAllRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsAllResponse.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteRequest.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteResponse.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsOneRequest.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsOneRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsOneResponse.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateRequest.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateResponse.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsAddRequest.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsAddRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsAddResponse.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsAllRequest.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsAllRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsAllResponse.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteRequest.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteResponse.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsOneRequest.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsOneRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsOneResponse.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateRequest.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateResponse.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddRequest.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddResponse.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllRequest.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllResponse.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteRequest.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteResponse.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneRequest.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneResponse.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateRequest.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateResponse.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersAddRequest.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersAddRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersAddResponse.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersAllRequest.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersAllRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersAllResponse.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteRequest.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteResponse.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersOneRequest.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersOneRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersOneResponse.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateRequest.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateResponse.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddRequest.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddResponse.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllRequest.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllResponse.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteRequest.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteResponse.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneRequest.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneResponse.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateRequest.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateResponse.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersAddRequest.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersAddRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersAddResponse.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersAllRequest.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersAllRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersAllResponse.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteRequest.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteResponse.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersOneRequest.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersOneRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersOneResponse.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersPayRequest.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersPayRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersPayResponse.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateRequest.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateResponse.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsAddRequest.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsAddRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsAddResponse.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsAllRequest.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsAllRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsAllResponse.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteRequest.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteResponse.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsOneRequest.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsOneRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsOneResponse.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateRequest.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateResponse.java - - src/main/java/com/apideck/unify/models/operations/PosTendersAddRequest.java - - src/main/java/com/apideck/unify/models/operations/PosTendersAddRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosTendersAddResponse.java - - src/main/java/com/apideck/unify/models/operations/PosTendersAllRequest.java - - src/main/java/com/apideck/unify/models/operations/PosTendersAllRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosTendersAllResponse.java - - src/main/java/com/apideck/unify/models/operations/PosTendersDeleteRequest.java - - src/main/java/com/apideck/unify/models/operations/PosTendersDeleteRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosTendersDeleteResponse.java - - src/main/java/com/apideck/unify/models/operations/PosTendersOneRequest.java - - src/main/java/com/apideck/unify/models/operations/PosTendersOneRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosTendersOneResponse.java - - src/main/java/com/apideck/unify/models/operations/PosTendersUpdateRequest.java - - src/main/java/com/apideck/unify/models/operations/PosTendersUpdateRequestBuilder.java - - src/main/java/com/apideck/unify/models/operations/PosTendersUpdateResponse.java - src/main/java/com/apideck/unify/models/operations/SDKMethodInterfaces.java - src/main/java/com/apideck/unify/models/operations/SmsMessagesAddRequest.java - src/main/java/com/apideck/unify/models/operations/SmsMessagesAddRequestBuilder.java @@ -4783,7 +4218,7 @@ examples: parameters: query: pass_through: {"search": "San Francisco"} - filter: {"start_date": "2021-01-01", "end_date": "2021-12-31"} + filter: {"start_date": "2021-01-01", "end_date": "2021-12-31", "period_count": 3, "period_type": "month"} header: x-apideck-consumer-id: "test-consumer" x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" @@ -11549,3 +10984,4 @@ examples: application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} +generatedTests: {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 870865b..141a465 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true java: - version: 0.1.12 + version: 0.2.0 additionalDependencies: [] additionalPlugins: [] artifactID: unify diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index acee6b8..7ca576f 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,21 @@ -speakeasyVersion: 1.443.0 +speakeasyVersion: 1.448.2 sources: Apideck-OAS: sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:13f8e8b9a943c9ea0285af8c8c0c4c3ab2ada32d0e2230115a52338e13e5aa31 - sourceBlobDigest: sha256:287e6fe6d2552ff30ece81b95facf5086a495e96c2e83b174a942be60c3e3643 + sourceRevisionDigest: sha256:1e1b719c947797d2ebd7eb8a136e4b5b84c0cb970573c669775d129e30aee462 + sourceBlobDigest: sha256:c3ee1e7fee0a43d2700c1bad102e747820d3e74509b9ab3f5d080b9018935ce7 tags: - latest - - speakeasy-sdk-regen-1732234351 + - speakeasy-sdk-regen-1732728787 + - 10.8.1 targets: apideck: source: Apideck-OAS sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:13f8e8b9a943c9ea0285af8c8c0c4c3ab2ada32d0e2230115a52338e13e5aa31 - sourceBlobDigest: sha256:287e6fe6d2552ff30ece81b95facf5086a495e96c2e83b174a942be60c3e3643 - codeSamplesNamespace: apideck-oas-code-samples - codeSamplesRevisionDigest: sha256:2e3692895938cda246ef6b8efacf58e5894906e14e577d829cd359f4b2afdf42 + sourceRevisionDigest: sha256:1e1b719c947797d2ebd7eb8a136e4b5b84c0cb970573c669775d129e30aee462 + sourceBlobDigest: sha256:c3ee1e7fee0a43d2700c1bad102e747820d3e74509b9ab3f5d080b9018935ce7 + codeSamplesNamespace: apideck-oas-java-code-samples + codeSamplesRevisionDigest: sha256:23160f6425f725df00a7231938dcfee0cad2195ec06c1d7a621c4b8afffeab55 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest @@ -36,5 +37,5 @@ workflow: gpgPassPhrase: $java_gpg_passphrase codeSamples: registry: - location: registry.speakeasyapi.dev/apideck-k2o/apideck/apideck-oas-code-samples + location: registry.speakeasyapi.dev/apideck-k2o/apideck/apideck-oas-java-code-samples blocking: false diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 3181da6..bbde057 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -18,5 +18,5 @@ targets: gpgPassPhrase: $java_gpg_passphrase codeSamples: registry: - location: registry.speakeasyapi.dev/apideck-k2o/apideck/apideck-oas-code-samples + location: registry.speakeasyapi.dev/apideck-k2o/apideck/apideck-oas-java-code-samples blocking: false diff --git a/README.md b/README.md index d2880a1..29755b3 100644 --- a/README.md +++ b/README.md @@ -20,14 +20,19 @@ For more information about the API: [Apideck Developer Docs](https://developers. ## Table of Contents + +* [openapi](#openapi) + * [SDK Installation](#sdk-installation) + * [SDK Example Usage](#sdk-example-usage) + * [Available Resources and Operations](#available-resources-and-operations) + * [Retries](#retries) + * [Error Handling](#error-handling) + * [Server Selection](#server-selection) + * [Authentication](#authentication) +* [Development](#development) + * [Maturity](#maturity) + * [Contributions](#contributions) -* [SDK Installation](#sdk-installation) -* [SDK Example Usage](#sdk-example-usage) -* [Available Resources and Operations](#available-resources-and-operations) -* [Retries](#retries) -* [Error Handling](#error-handling) -* [Server Selection](#server-selection) -* [Authentication](#authentication) @@ -41,7 +46,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.apideck:unify:0.1.12' +implementation 'com.apideck:unify:0.2.0' ``` Maven: @@ -49,7 +54,7 @@ Maven: com.apideck unify - 0.1.12 + 0.2.0 ``` @@ -94,7 +99,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -565,93 +570,6 @@ public class Application { * [list](docs/sdks/collectionusers/README.md#list) - List Users * [get](docs/sdks/collectionusers/README.md#get) - Get user -### [lead()](docs/sdks/lead/README.md) - - -#### [lead().leads()](docs/sdks/apideckleads/README.md) - -* [list](docs/sdks/apideckleads/README.md#list) - List leads -* [create](docs/sdks/apideckleads/README.md#create) - Create lead -* [get](docs/sdks/apideckleads/README.md#get) - Get lead -* [update](docs/sdks/apideckleads/README.md#update) - Update lead -* [delete](docs/sdks/apideckleads/README.md#delete) - Delete lead - -### [pos()](docs/sdks/pos/README.md) - - -#### [pos().items()](docs/sdks/items/README.md) - -* [list](docs/sdks/items/README.md#list) - List Items -* [create](docs/sdks/items/README.md#create) - Create Item -* [get](docs/sdks/items/README.md#get) - Get Item -* [update](docs/sdks/items/README.md#update) - Update Item -* [delete](docs/sdks/items/README.md#delete) - Delete Item - -#### [pos().locations()](docs/sdks/apidecklocations/README.md) - -* [list](docs/sdks/apidecklocations/README.md#list) - List Locations -* [create](docs/sdks/apidecklocations/README.md#create) - Create Location -* [get](docs/sdks/apidecklocations/README.md#get) - Get Location -* [update](docs/sdks/apidecklocations/README.md#update) - Update Location -* [delete](docs/sdks/apidecklocations/README.md#delete) - Delete Location - -#### [pos().merchants()](docs/sdks/merchants/README.md) - -* [list](docs/sdks/merchants/README.md#list) - List Merchants -* [create](docs/sdks/merchants/README.md#create) - Create Merchant -* [get](docs/sdks/merchants/README.md#get) - Get Merchant -* [update](docs/sdks/merchants/README.md#update) - Update Merchant -* [delete](docs/sdks/merchants/README.md#delete) - Delete Merchant - -#### [pos().modifierGroups()](docs/sdks/modifiergroups/README.md) - -* [list](docs/sdks/modifiergroups/README.md#list) - List Modifier Groups -* [create](docs/sdks/modifiergroups/README.md#create) - Create Modifier Group -* [get](docs/sdks/modifiergroups/README.md#get) - Get Modifier Group -* [update](docs/sdks/modifiergroups/README.md#update) - Update Modifier Group -* [delete](docs/sdks/modifiergroups/README.md#delete) - Delete Modifier Group - -#### [pos().modifiers()](docs/sdks/modifiers/README.md) - -* [list](docs/sdks/modifiers/README.md#list) - List Modifiers -* [create](docs/sdks/modifiers/README.md#create) - Create Modifier -* [get](docs/sdks/modifiers/README.md#get) - Get Modifier -* [update](docs/sdks/modifiers/README.md#update) - Update Modifier -* [delete](docs/sdks/modifiers/README.md#delete) - Delete Modifier - -#### [pos().orders()](docs/sdks/apideckorders/README.md) - -* [list](docs/sdks/apideckorders/README.md#list) - List Orders -* [create](docs/sdks/apideckorders/README.md#create) - Create Order -* [get](docs/sdks/apideckorders/README.md#get) - Get Order -* [update](docs/sdks/apideckorders/README.md#update) - Update Order -* [delete](docs/sdks/apideckorders/README.md#delete) - Delete Order -* [pay](docs/sdks/apideckorders/README.md#pay) - Pay Order - -#### [pos().orderTypes()](docs/sdks/ordertypes/README.md) - -* [list](docs/sdks/ordertypes/README.md#list) - List Order Types -* [create](docs/sdks/ordertypes/README.md#create) - Create Order Type -* [get](docs/sdks/ordertypes/README.md#get) - Get Order Type -* [update](docs/sdks/ordertypes/README.md#update) - Update Order Type -* [delete](docs/sdks/ordertypes/README.md#delete) - Delete Order Type - -#### [pos().payments()](docs/sdks/apideckpayments/README.md) - -* [list](docs/sdks/apideckpayments/README.md#list) - List Payments -* [create](docs/sdks/apideckpayments/README.md#create) - Create Payment -* [get](docs/sdks/apideckpayments/README.md#get) - Get Payment -* [update](docs/sdks/apideckpayments/README.md#update) - Update Payment -* [delete](docs/sdks/apideckpayments/README.md#delete) - Delete Payment - -#### [pos().tenders()](docs/sdks/tenders/README.md) - -* [list](docs/sdks/tenders/README.md#list) - List Tenders -* [create](docs/sdks/tenders/README.md#create) - Create Tender -* [get](docs/sdks/tenders/README.md#get) - Get Tender -* [update](docs/sdks/tenders/README.md#update) - Update Tender -* [delete](docs/sdks/tenders/README.md#delete) - Delete Tender - ### [sms()](docs/sdks/sms/README.md) @@ -676,7 +594,7 @@ public class Application { * [get](docs/sdks/connections/README.md#get) - Get connection * [update](docs/sdks/connections/README.md#update) - Update connection * [delete](docs/sdks/connections/README.md#delete) - Deletes a connection -* [import_](docs/sdks/connections/README.md#import_) - Import connection +* [imports](docs/sdks/connections/README.md#imports) - Import connection * [token](docs/sdks/connections/README.md#token) - Authorize Access Token #### [vault().connectionSettings()](docs/sdks/connectionsettings/README.md) @@ -764,7 +682,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -838,7 +756,7 @@ public class Application { .build()) .build()) .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -907,7 +825,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -965,7 +883,7 @@ public class Application { Apideck sdk = Apideck.builder() .serverURL("https://unify.apideck.com") .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -1021,7 +939,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -1090,7 +1008,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/RELEASES.md b/RELEASES.md index fd15bf0..0e1bc80 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -18,4 +18,14 @@ Based on: ### Generated - [java v0.1.12] . ### Releases -- [Maven Central v0.1.12] https://central.sonatype.com/artifact/com.apideck/unify/0.1.12 - . \ No newline at end of file +- [Maven Central v0.1.12] https://central.sonatype.com/artifact/com.apideck/unify/0.1.12 - . + +## 2024-11-27 17:33:02 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.448.2 (2.467.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.2.0] . +### Releases +- [Maven Central v0.2.0] https://central.sonatype.com/artifact/com.apideck/unify/0.2.0 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index f39fd98..601196f 100644 --- a/USAGE.md +++ b/USAGE.md @@ -20,7 +20,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/build.gradle b/build.gradle index 30c02d4..5ab17c9 100644 --- a/build.gradle +++ b/build.gradle @@ -63,7 +63,7 @@ tasks.withType(Javadoc) { } group = "com.apideck" -version = "0.1.12" +version = "0.2.0" sourcesJar { archiveBaseName = "unify" @@ -101,7 +101,7 @@ publishing { maven(MavenPublication) { groupId = 'com.apideck' artifactId = 'unify' - version = '0.1.12' + version = '0.2.0' from components.java diff --git a/docs/models/components/AchDetails.md b/docs/models/components/AchDetails.md deleted file mode 100644 index dd193e4..0000000 --- a/docs/models/components/AchDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -# AchDetails - -ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `routingNumber` | *Optional\* | :heavy_minus_sign: | The routing number for the bank account. | -| `accountNumberSuffix` | *Optional\* | :heavy_minus_sign: | The last few digits of the bank account number. | -| `accountType` | *Optional\* | :heavy_minus_sign: | The type of the bank account performing the transfer. The account type can be `CHECKING`,
`SAVINGS`, or `UNKNOWN`. | \ No newline at end of file diff --git a/docs/models/components/AppliedDiscounts.md b/docs/models/components/AppliedDiscounts.md deleted file mode 100644 index 898273a..0000000 --- a/docs/models/components/AppliedDiscounts.md +++ /dev/null @@ -1,11 +0,0 @@ -# AppliedDiscounts - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `discountId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | \ No newline at end of file diff --git a/docs/models/components/AppliedTaxes.md b/docs/models/components/AppliedTaxes.md deleted file mode 100644 index 2142c04..0000000 --- a/docs/models/components/AppliedTaxes.md +++ /dev/null @@ -1,11 +0,0 @@ -# AppliedTaxes - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `taxId` | *Optional\* | :heavy_minus_sign: | N/A | sales-tax | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | \ No newline at end of file diff --git a/docs/models/components/BalanceSheetFilter.md b/docs/models/components/BalanceSheetFilter.md index 194fec6..b2a357f 100644 --- a/docs/models/components/BalanceSheetFilter.md +++ b/docs/models/components/BalanceSheetFilter.md @@ -3,7 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `startDate` | *Optional\* | :heavy_minus_sign: | Filter by start date. If start date is given, end date is required. | 2021-01-01 | -| `endDate` | *Optional\* | :heavy_minus_sign: | Filter by end date. If end date is given, start date is required. | 2021-12-31 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `startDate` | *Optional\* | :heavy_minus_sign: | The start date of the period to include in the resource. | 2021-01-01 | +| `endDate` | *Optional\* | :heavy_minus_sign: | The end date of the period to include in the resource. | 2021-12-31 | +| `periodCount` | *Optional\* | :heavy_minus_sign: | The number of periods to include in the resource. | 3 | +| `periodType` | [Optional\](../../models/components/PeriodType.md) | :heavy_minus_sign: | The type of period to include in the resource: month, quarter, year. | month | \ No newline at end of file diff --git a/docs/models/components/CardBrand.md b/docs/models/components/CardBrand.md deleted file mode 100644 index d1f4ba1..0000000 --- a/docs/models/components/CardBrand.md +++ /dev/null @@ -1,23 +0,0 @@ -# CardBrand - -The first six digits of the card number, known as the Bank Identification Number (BIN). - - -## Values - -| Name | Value | -| --------------------- | --------------------- | -| `VISA` | visa | -| `MASTERCARD` | mastercard | -| `AMEX` | amex | -| `DISCOVER` | discover | -| `DISCOVER_DINERS` | discover-diners | -| `JCB` | jcb | -| `CHINA_UNIONPAY` | china-unionpay | -| `SQUARE_GIFT_CARD` | square-gift-card | -| `SQUARE_CAPITAL_CARD` | square-capital-card | -| `INTERAC` | interac | -| `EFTPOS` | eftpos | -| `FELICA` | felica | -| `EBT` | ebt | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/CardDetails.md b/docs/models/components/CardDetails.md deleted file mode 100644 index abff155..0000000 --- a/docs/models/components/CardDetails.md +++ /dev/null @@ -1,8 +0,0 @@ -# CardDetails - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `card` | [JsonNullable\](../../models/components/PaymentCard.md) | :heavy_minus_sign: | A card's non-confidential details. | \ No newline at end of file diff --git a/docs/models/components/CardEntryMethod.md b/docs/models/components/CardEntryMethod.md deleted file mode 100644 index 6567af3..0000000 --- a/docs/models/components/CardEntryMethod.md +++ /dev/null @@ -1,14 +0,0 @@ -# CardEntryMethod - -The entry method of the card. Only applicable when the tender type is card. - - -## Values - -| Name | Value | -| ------------- | ------------- | -| `EVM` | evm | -| `SWIPED` | swiped | -| `KEYED` | keyed | -| `ON_FILE` | on-file | -| `CONTACTLESS` | contactless | \ No newline at end of file diff --git a/docs/models/components/CardStatus.md b/docs/models/components/CardStatus.md deleted file mode 100644 index 0de1e3f..0000000 --- a/docs/models/components/CardStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# CardStatus - -The status of the card. Only applicable when the tender type is card. - - -## Values - -| Name | Value | -| ------------ | ------------ | -| `AUTHORIZED` | authorized | -| `CAPTURED` | captured | -| `FAILED` | failed | -| `VOIDED` | voided | \ No newline at end of file diff --git a/docs/models/components/CardType.md b/docs/models/components/CardType.md deleted file mode 100644 index 49026a9..0000000 --- a/docs/models/components/CardType.md +++ /dev/null @@ -1,11 +0,0 @@ -# CardType - - -## Values - -| Name | Value | -| --------- | --------- | -| `CREDIT` | credit | -| `DEBIT` | debit | -| `PREPAID` | prepaid | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/CashDetails.md b/docs/models/components/CashDetails.md deleted file mode 100644 index 25f0c42..0000000 --- a/docs/models/components/CashDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -# CashDetails - -Cash details for this payment - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `amount` | *Optional\* | :heavy_minus_sign: | The amount of cash given by the customer. | -| `chargeBackAmount` | *Optional\* | :heavy_minus_sign: | The amount of change due back to the buyer. For Square: this read-only field is calculated from the amount_money and buyer_supplied_money fields. | \ No newline at end of file diff --git a/docs/models/components/CreateItemResponse.md b/docs/models/components/CreateItemResponse.md deleted file mode 100644 index cfa7a8a..0000000 --- a/docs/models/components/CreateItemResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateItemResponse - -Items - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Items | -| `operation` | *String* | :heavy_check_mark: | Operation performed | add | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/CreateLocationResponse.md b/docs/models/components/CreateLocationResponse.md deleted file mode 100644 index 97a9652..0000000 --- a/docs/models/components/CreateLocationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateLocationResponse - -Locations - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Locations | -| `operation` | *String* | :heavy_check_mark: | Operation performed | add | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/CreateMerchantResponse.md b/docs/models/components/CreateMerchantResponse.md deleted file mode 100644 index 6e80eb8..0000000 --- a/docs/models/components/CreateMerchantResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateMerchantResponse - -Merchants - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Merchants | -| `operation` | *String* | :heavy_check_mark: | Operation performed | add | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/CreateModifierGroupResponse.md b/docs/models/components/CreateModifierGroupResponse.md deleted file mode 100644 index 6f6fd86..0000000 --- a/docs/models/components/CreateModifierGroupResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateModifierGroupResponse - -ModifierGroups - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | ModifierGroups | -| `operation` | *String* | :heavy_check_mark: | Operation performed | add | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/CreateModifierResponse.md b/docs/models/components/CreateModifierResponse.md deleted file mode 100644 index 37f0b59..0000000 --- a/docs/models/components/CreateModifierResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateModifierResponse - -Modifiers - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Modifiers | -| `operation` | *String* | :heavy_check_mark: | Operation performed | add | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/CreateOrderResponse.md b/docs/models/components/CreateOrderResponse.md deleted file mode 100644 index ba63d48..0000000 --- a/docs/models/components/CreateOrderResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateOrderResponse - -Orders - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | orders | -| `operation` | *String* | :heavy_check_mark: | Operation performed | add | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/CreateOrderTypeResponse.md b/docs/models/components/CreateOrderTypeResponse.md deleted file mode 100644 index 569094f..0000000 --- a/docs/models/components/CreateOrderTypeResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateOrderTypeResponse - -OrderTypes - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | OrderTypes | -| `operation` | *String* | :heavy_check_mark: | Operation performed | add | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/CreatePosPaymentResponse.md b/docs/models/components/CreatePosPaymentResponse.md deleted file mode 100644 index 0d4ddb9..0000000 --- a/docs/models/components/CreatePosPaymentResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreatePosPaymentResponse - -PosPayments - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | PosPayments | -| `operation` | *String* | :heavy_check_mark: | Operation performed | add | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/CreateTenderResponse.md b/docs/models/components/CreateTenderResponse.md deleted file mode 100644 index d9ff6e5..0000000 --- a/docs/models/components/CreateTenderResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateTenderResponse - -Tenders - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Tenders | -| `operation` | *String* | :heavy_check_mark: | Operation performed | add | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/CurbsidePickupDetails.md b/docs/models/components/CurbsidePickupDetails.md deleted file mode 100644 index 6a6287a..0000000 --- a/docs/models/components/CurbsidePickupDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -# CurbsidePickupDetails - -Specific details for curbside pickup. - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `curbsideDetails` | *Optional\* | :heavy_minus_sign: | Specific details for curbside pickup, such as parking number and vehicle model. | | -| `buyerArrivedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the buyer arrived and is waiting for pickup. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | \ No newline at end of file diff --git a/docs/models/components/Customers.md b/docs/models/components/Customers.md deleted file mode 100644 index b53cf89..0000000 --- a/docs/models/components/Customers.md +++ /dev/null @@ -1,13 +0,0 @@ -# Customers - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `id` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `firstName` | *JsonNullable\* | :heavy_minus_sign: | N/A | Elon | -| `middleName` | *JsonNullable\* | :heavy_minus_sign: | N/A | D. | -| `lastName` | *JsonNullable\* | :heavy_minus_sign: | N/A | Musk | -| `phoneNumbers` | List\<[PhoneNumber](../../models/components/PhoneNumber.md)> | :heavy_minus_sign: | N/A | | -| `emails` | List\<[Email](../../models/components/Email.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/DeleteItemResponse.md b/docs/models/components/DeleteItemResponse.md deleted file mode 100644 index 400fc1e..0000000 --- a/docs/models/components/DeleteItemResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeleteItemResponse - -Items - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Items | -| `operation` | *String* | :heavy_check_mark: | Operation performed | delete | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/DeleteLocationResponse.md b/docs/models/components/DeleteLocationResponse.md deleted file mode 100644 index 6895035..0000000 --- a/docs/models/components/DeleteLocationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeleteLocationResponse - -Locations - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Locations | -| `operation` | *String* | :heavy_check_mark: | Operation performed | delete | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/DeleteMerchantResponse.md b/docs/models/components/DeleteMerchantResponse.md deleted file mode 100644 index 8fcd17e..0000000 --- a/docs/models/components/DeleteMerchantResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeleteMerchantResponse - -Merchants - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Merchants | -| `operation` | *String* | :heavy_check_mark: | Operation performed | delete | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/DeleteModifierGroupResponse.md b/docs/models/components/DeleteModifierGroupResponse.md deleted file mode 100644 index 0acbe34..0000000 --- a/docs/models/components/DeleteModifierGroupResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeleteModifierGroupResponse - -ModifierGroups - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | ModifierGroups | -| `operation` | *String* | :heavy_check_mark: | Operation performed | delete | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/DeleteModifierResponse.md b/docs/models/components/DeleteModifierResponse.md deleted file mode 100644 index b43514e..0000000 --- a/docs/models/components/DeleteModifierResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeleteModifierResponse - -Modifiers - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Modifiers | -| `operation` | *String* | :heavy_check_mark: | Operation performed | delete | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/DeleteOrderResponse.md b/docs/models/components/DeleteOrderResponse.md deleted file mode 100644 index c00b064..0000000 --- a/docs/models/components/DeleteOrderResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeleteOrderResponse - -Orders - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | orders | -| `operation` | *String* | :heavy_check_mark: | Operation performed | delete | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/DeleteOrderTypeResponse.md b/docs/models/components/DeleteOrderTypeResponse.md deleted file mode 100644 index 80dd00f..0000000 --- a/docs/models/components/DeleteOrderTypeResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeleteOrderTypeResponse - -OrderTypes - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | OrderTypes | -| `operation` | *String* | :heavy_check_mark: | Operation performed | delete | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/DeletePosPaymentResponse.md b/docs/models/components/DeletePosPaymentResponse.md deleted file mode 100644 index c188b3f..0000000 --- a/docs/models/components/DeletePosPaymentResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeletePosPaymentResponse - -PosPayments - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | PosPayments | -| `operation` | *String* | :heavy_check_mark: | Operation performed | delete | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/DeleteTenderResponse.md b/docs/models/components/DeleteTenderResponse.md deleted file mode 100644 index cb348c9..0000000 --- a/docs/models/components/DeleteTenderResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeleteTenderResponse - -Tenders - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Tenders | -| `operation` | *String* | :heavy_check_mark: | Operation performed | delete | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/Discounts.md b/docs/models/components/Discounts.md deleted file mode 100644 index dfa34de..0000000 --- a/docs/models/components/Discounts.md +++ /dev/null @@ -1,14 +0,0 @@ -# Discounts - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `productId` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | 10% off | -| `type` | [OrderDiscountsType](../../models/components/OrderDiscountsType.md) | :heavy_check_mark: | N/A | percentage | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `scope` | [Optional\](../../models/components/OrderDiscountsScope.md) | :heavy_minus_sign: | N/A | order | \ No newline at end of file diff --git a/docs/models/components/ExternalDetails.md b/docs/models/components/ExternalDetails.md deleted file mode 100644 index c832131..0000000 --- a/docs/models/components/ExternalDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -# ExternalDetails - -Details about an external payment. - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [PosPaymentType](../../models/components/PosPaymentType.md) | :heavy_check_mark: | The type of external payment the seller received. It can be one of the following:
- CHECK - Paid using a physical check.
- BANK_TRANSFER - Paid using external bank transfer.
- OTHER\_GIFT\_CARD - Paid using a non-Square gift card.
- CRYPTO - Paid using a crypto currency.
- SQUARE_CASH - Paid using Square Cash App.
- SOCIAL - Paid using peer-to-peer payment applications.
- EXTERNAL - A third-party application gathered this payment outside of Square.
- EMONEY - Paid using an E-money provider.
- CARD - A credit or debit card that Square does not support.
- STORED_BALANCE - Use for house accounts, store credit, and so forth.
- FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals
- OTHER - A type not listed here. | | -| `source` | *String* | :heavy_check_mark: | A description of the external payment source. For example,
"Food Delivery Service". | | -| `sourceId` | *Optional\* | :heavy_minus_sign: | An ID to associate the payment to its originating source. | | -| `sourceFeeAmount` | *Optional\* | :heavy_minus_sign: | The fees paid to the source. The amount minus this field is the net amount seller receives. | 2.5 | \ No newline at end of file diff --git a/docs/models/components/Fulfillments.md b/docs/models/components/Fulfillments.md deleted file mode 100644 index 9d67a64..0000000 --- a/docs/models/components/Fulfillments.md +++ /dev/null @@ -1,12 +0,0 @@ -# Fulfillments - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `status` | [Optional\](../../models/components/OrderFulfillmentStatus.md) | :heavy_minus_sign: | The state of the fulfillment. | | -| `type` | [Optional\](../../models/components/OrderFulfillmentsType.md) | :heavy_minus_sign: | N/A | shipment | -| `pickupDetails` | [Optional\](../../models/components/PickupDetails.md) | :heavy_minus_sign: | N/A | | -| `shipmentDetails` | [Optional\](../../models/components/ShipmentDetails.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetItemResponse.md b/docs/models/components/GetItemResponse.md deleted file mode 100644 index 9400ee1..0000000 --- a/docs/models/components/GetItemResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetItemResponse - -Items - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Items | -| `operation` | *String* | :heavy_check_mark: | Operation performed | one | -| `data` | [Item](../../models/components/Item.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetItemsResponse.md b/docs/models/components/GetItemsResponse.md deleted file mode 100644 index 13feed4..0000000 --- a/docs/models/components/GetItemsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetItemsResponse - -Items - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Items | -| `operation` | *String* | :heavy_check_mark: | Operation performed | all | -| `data` | List\<[Item](../../models/components/Item.md)> | :heavy_check_mark: | N/A | | -| `meta` | [Optional\](../../models/components/Meta.md) | :heavy_minus_sign: | Response metadata | | -| `links` | [Optional\](../../models/components/Links.md) | :heavy_minus_sign: | Links to navigate to previous or next pages through the API | | \ No newline at end of file diff --git a/docs/models/components/GetLocationResponse.md b/docs/models/components/GetLocationResponse.md deleted file mode 100644 index 0e7deb1..0000000 --- a/docs/models/components/GetLocationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetLocationResponse - -Locations - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Locations | -| `operation` | *String* | :heavy_check_mark: | Operation performed | one | -| `data` | [Location](../../models/components/Location.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetLocationsResponse.md b/docs/models/components/GetLocationsResponse.md deleted file mode 100644 index f3212db..0000000 --- a/docs/models/components/GetLocationsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetLocationsResponse - -Locations - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Locations | -| `operation` | *String* | :heavy_check_mark: | Operation performed | all | -| `data` | List\<[Location](../../models/components/Location.md)> | :heavy_check_mark: | N/A | | -| `meta` | [Optional\](../../models/components/Meta.md) | :heavy_minus_sign: | Response metadata | | -| `links` | [Optional\](../../models/components/Links.md) | :heavy_minus_sign: | Links to navigate to previous or next pages through the API | | \ No newline at end of file diff --git a/docs/models/components/GetMerchantResponse.md b/docs/models/components/GetMerchantResponse.md deleted file mode 100644 index 3d52978..0000000 --- a/docs/models/components/GetMerchantResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetMerchantResponse - -Merchants - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Merchants | -| `operation` | *String* | :heavy_check_mark: | Operation performed | one | -| `data` | [Merchant](../../models/components/Merchant.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetMerchantsResponse.md b/docs/models/components/GetMerchantsResponse.md deleted file mode 100644 index 5cd7691..0000000 --- a/docs/models/components/GetMerchantsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetMerchantsResponse - -Merchants - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Merchants | -| `operation` | *String* | :heavy_check_mark: | Operation performed | all | -| `data` | List\<[Merchant](../../models/components/Merchant.md)> | :heavy_check_mark: | N/A | | -| `meta` | [Optional\](../../models/components/Meta.md) | :heavy_minus_sign: | Response metadata | | -| `links` | [Optional\](../../models/components/Links.md) | :heavy_minus_sign: | Links to navigate to previous or next pages through the API | | \ No newline at end of file diff --git a/docs/models/components/GetModifierGroupResponse.md b/docs/models/components/GetModifierGroupResponse.md deleted file mode 100644 index 3431083..0000000 --- a/docs/models/components/GetModifierGroupResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetModifierGroupResponse - -ModifierGroups - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | ModifierGroups | -| `operation` | *String* | :heavy_check_mark: | Operation performed | one | -| `data` | [ModifierGroup](../../models/components/ModifierGroup.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetModifierGroupsResponse.md b/docs/models/components/GetModifierGroupsResponse.md deleted file mode 100644 index 9478a01..0000000 --- a/docs/models/components/GetModifierGroupsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetModifierGroupsResponse - -ModifierGroups - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | ModifierGroups | -| `operation` | *String* | :heavy_check_mark: | Operation performed | all | -| `data` | List\<[ModifierGroup](../../models/components/ModifierGroup.md)> | :heavy_check_mark: | N/A | | -| `meta` | [Optional\](../../models/components/Meta.md) | :heavy_minus_sign: | Response metadata | | -| `links` | [Optional\](../../models/components/Links.md) | :heavy_minus_sign: | Links to navigate to previous or next pages through the API | | \ No newline at end of file diff --git a/docs/models/components/GetModifierResponse.md b/docs/models/components/GetModifierResponse.md deleted file mode 100644 index 751c79f..0000000 --- a/docs/models/components/GetModifierResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetModifierResponse - -Modifiers - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Modifiers | -| `operation` | *String* | :heavy_check_mark: | Operation performed | one | -| `data` | [Modifier](../../models/components/Modifier.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetModifiersResponse.md b/docs/models/components/GetModifiersResponse.md deleted file mode 100644 index 3bcbe88..0000000 --- a/docs/models/components/GetModifiersResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetModifiersResponse - -Modifiers - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Modifiers | -| `operation` | *String* | :heavy_check_mark: | Operation performed | all | -| `data` | List\<[Modifier](../../models/components/Modifier.md)> | :heavy_check_mark: | N/A | | -| `meta` | [Optional\](../../models/components/Meta.md) | :heavy_minus_sign: | Response metadata | | -| `links` | [Optional\](../../models/components/Links.md) | :heavy_minus_sign: | Links to navigate to previous or next pages through the API | | \ No newline at end of file diff --git a/docs/models/components/GetOrderResponse.md b/docs/models/components/GetOrderResponse.md deleted file mode 100644 index acd9b17..0000000 --- a/docs/models/components/GetOrderResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetOrderResponse - -Orders - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | orders | -| `operation` | *String* | :heavy_check_mark: | Operation performed | one | -| `data` | [Order](../../models/components/Order.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetOrderTypeResponse.md b/docs/models/components/GetOrderTypeResponse.md deleted file mode 100644 index 4f20108..0000000 --- a/docs/models/components/GetOrderTypeResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetOrderTypeResponse - -OrderTypes - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | OrderTypes | -| `operation` | *String* | :heavy_check_mark: | Operation performed | one | -| `data` | [OrderType](../../models/components/OrderType.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetOrderTypesResponse.md b/docs/models/components/GetOrderTypesResponse.md deleted file mode 100644 index 5bec5ac..0000000 --- a/docs/models/components/GetOrderTypesResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetOrderTypesResponse - -OrderTypes - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | OrderTypes | -| `operation` | *String* | :heavy_check_mark: | Operation performed | all | -| `data` | List\<[OrderType](../../models/components/OrderType.md)> | :heavy_check_mark: | N/A | | -| `meta` | [Optional\](../../models/components/Meta.md) | :heavy_minus_sign: | Response metadata | | -| `links` | [Optional\](../../models/components/Links.md) | :heavy_minus_sign: | Links to navigate to previous or next pages through the API | | \ No newline at end of file diff --git a/docs/models/components/GetOrdersResponse.md b/docs/models/components/GetOrdersResponse.md deleted file mode 100644 index 521be80..0000000 --- a/docs/models/components/GetOrdersResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetOrdersResponse - -Orders - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | orders | -| `operation` | *String* | :heavy_check_mark: | Operation performed | all | -| `data` | List\<[Order](../../models/components/Order.md)> | :heavy_check_mark: | N/A | | -| `meta` | [Optional\](../../models/components/Meta.md) | :heavy_minus_sign: | Response metadata | | -| `links` | [Optional\](../../models/components/Links.md) | :heavy_minus_sign: | Links to navigate to previous or next pages through the API | | \ No newline at end of file diff --git a/docs/models/components/GetPosPaymentResponse.md b/docs/models/components/GetPosPaymentResponse.md deleted file mode 100644 index 9331ff9..0000000 --- a/docs/models/components/GetPosPaymentResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetPosPaymentResponse - -PosPayments - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | PosPayments | -| `operation` | *String* | :heavy_check_mark: | Operation performed | one | -| `data` | [PosPayment](../../models/components/PosPayment.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetPosPaymentsResponse.md b/docs/models/components/GetPosPaymentsResponse.md deleted file mode 100644 index 38ae60c..0000000 --- a/docs/models/components/GetPosPaymentsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetPosPaymentsResponse - -PosPayments - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | PosPayments | -| `operation` | *String* | :heavy_check_mark: | Operation performed | all | -| `data` | List\<[PosPayment](../../models/components/PosPayment.md)> | :heavy_check_mark: | N/A | | -| `meta` | [Optional\](../../models/components/Meta.md) | :heavy_minus_sign: | Response metadata | | -| `links` | [Optional\](../../models/components/Links.md) | :heavy_minus_sign: | Links to navigate to previous or next pages through the API | | \ No newline at end of file diff --git a/docs/models/components/GetTenderResponse.md b/docs/models/components/GetTenderResponse.md deleted file mode 100644 index 448bd7a..0000000 --- a/docs/models/components/GetTenderResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetTenderResponse - -Tenders - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Tenders | -| `operation` | *String* | :heavy_check_mark: | Operation performed | one | -| `data` | [Tender](../../models/components/Tender.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetTendersResponse.md b/docs/models/components/GetTendersResponse.md deleted file mode 100644 index 8bba031..0000000 --- a/docs/models/components/GetTendersResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTendersResponse - -Tenders - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Tenders | -| `operation` | *String* | :heavy_check_mark: | Operation performed | all | -| `data` | List\<[Tender](../../models/components/Tender.md)> | :heavy_check_mark: | N/A | | -| `meta` | [Optional\](../../models/components/Meta.md) | :heavy_minus_sign: | Response metadata | | -| `links` | [Optional\](../../models/components/Links.md) | :heavy_minus_sign: | Links to navigate to previous or next pages through the API | | \ No newline at end of file diff --git a/docs/models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.md b/docs/models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.md deleted file mode 100644 index 535d08e..0000000 --- a/docs/models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.md +++ /dev/null @@ -1,9 +0,0 @@ -# IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `SINGLE` | single | -| `MULTIPLE` | multiple | \ No newline at end of file diff --git a/docs/models/components/Item.md b/docs/models/components/Item.md deleted file mode 100644 index c44414d..0000000 --- a/docs/models/components/Item.md +++ /dev/null @@ -1,40 +0,0 @@ -# Item - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | N/A | #cocoa | -| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | A value you specify that uniquely identifies this request among requests you have sent. | random_string | -| `name` | *String* | :heavy_check_mark: | N/A | Cocoa | -| `description` | *Optional\* | :heavy_minus_sign: | N/A | Hot Chocolate | -| `abbreviation` | *Optional\* | :heavy_minus_sign: | N/A | Ch | -| `productType` | [Optional\](../../models/components/ProductType.md) | :heavy_minus_sign: | N/A | regular | -| `priceAmount` | *Optional\* | :heavy_minus_sign: | N/A | 10 | -| `pricingType` | [Optional\](../../models/components/PricingType.md) | :heavy_minus_sign: | N/A | fixed | -| `priceCurrency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `cost` | *Optional\* | :heavy_minus_sign: | N/A | 2 | -| `taxIds` | List\<*String*> | :heavy_minus_sign: | A list of Tax IDs for the product. | [
"12345",
"67890"
] | -| `isRevenue` | *Optional\* | :heavy_minus_sign: | True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. | false | -| `useDefaultTaxRates` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `absentAtLocationIds` | List\<*String*> | :heavy_minus_sign: | A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. | [
"12345",
"67890"
] | -| `presentAtAllLocations` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `availableForPickup` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `availableOnline` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `sku` | *Optional\* | :heavy_minus_sign: | SKU of the item | 11910345 | -| `code` | *Optional\* | :heavy_minus_sign: | Product code, e.g. UPC or EAN | 11910345 | -| `categories` | List\<[ItemCategories](../../models/components/ItemCategories.md)> | :heavy_minus_sign: | N/A | [
{
"id": "12345",
"name": "Food",
"image_ids": [
"12345",
"67890"
]
}
] | -| `options` | List\<[ItemOptions](../../models/components/ItemOptions.md)> | :heavy_minus_sign: | List of options pertaining to this item's attribute variation | | -| `variations` | List\<[Variations](../../models/components/Variations.md)> | :heavy_minus_sign: | N/A | [
{
"id": "12345",
"name": "Food",
"sku": "11910345",
"item_id": "12345",
"sequence": 0,
"pricing_type": "fixed",
"price_amount": 10,
"price_currency": "USD",
"image_ids": [
"12345",
"67890"
]
}
] | -| `modifierGroups` | List\<[ModifierGroups](../../models/components/ModifierGroups.md)> | :heavy_minus_sign: | N/A | [
{
"id": "12345"
}
] | -| `available` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `hidden` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `version` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `customMappings` | [JsonNullable\](../../models/components/CustomMappings.md) | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `deleted` | *JsonNullable\* | :heavy_minus_sign: | Flag to indicate if the object is deleted. | true | -| `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/ItemCategories.md b/docs/models/components/ItemCategories.md deleted file mode 100644 index 9e56edc..0000000 --- a/docs/models/components/ItemCategories.md +++ /dev/null @@ -1,10 +0,0 @@ -# ItemCategories - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | | -| `imageIds` | List\<*String*> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/ItemCategoriesInput.md b/docs/models/components/ItemCategoriesInput.md deleted file mode 100644 index 8038597..0000000 --- a/docs/models/components/ItemCategoriesInput.md +++ /dev/null @@ -1,9 +0,0 @@ -# ItemCategoriesInput - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | -| `imageIds` | List\<*String*> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/ItemInput.md b/docs/models/components/ItemInput.md deleted file mode 100644 index d3f9fa0..0000000 --- a/docs/models/components/ItemInput.md +++ /dev/null @@ -1,34 +0,0 @@ -# ItemInput - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | N/A | #cocoa | -| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | A value you specify that uniquely identifies this request among requests you have sent. | random_string | -| `name` | *String* | :heavy_check_mark: | N/A | Cocoa | -| `description` | *Optional\* | :heavy_minus_sign: | N/A | Hot Chocolate | -| `abbreviation` | *Optional\* | :heavy_minus_sign: | N/A | Ch | -| `productType` | [Optional\](../../models/components/ProductType.md) | :heavy_minus_sign: | N/A | regular | -| `priceAmount` | *Optional\* | :heavy_minus_sign: | N/A | 10 | -| `pricingType` | [Optional\](../../models/components/PricingType.md) | :heavy_minus_sign: | N/A | fixed | -| `priceCurrency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `cost` | *Optional\* | :heavy_minus_sign: | N/A | 2 | -| `taxIds` | List\<*String*> | :heavy_minus_sign: | A list of Tax IDs for the product. | [
"12345",
"67890"
] | -| `isRevenue` | *Optional\* | :heavy_minus_sign: | True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. | false | -| `useDefaultTaxRates` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `absentAtLocationIds` | List\<*String*> | :heavy_minus_sign: | A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. | [
"12345",
"67890"
] | -| `presentAtAllLocations` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `availableForPickup` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `availableOnline` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `sku` | *Optional\* | :heavy_minus_sign: | SKU of the item | 11910345 | -| `code` | *Optional\* | :heavy_minus_sign: | Product code, e.g. UPC or EAN | 11910345 | -| `categories` | List\<[ItemCategoriesInput](../../models/components/ItemCategoriesInput.md)> | :heavy_minus_sign: | N/A | [
{
"id": "12345",
"name": "Food",
"image_ids": [
"12345",
"67890"
]
}
] | -| `options` | List\<[ItemOptions](../../models/components/ItemOptions.md)> | :heavy_minus_sign: | List of options pertaining to this item's attribute variation | | -| `variations` | List\<[ItemVariations](../../models/components/ItemVariations.md)> | :heavy_minus_sign: | N/A | [
{
"id": "12345",
"name": "Food",
"sku": "11910345",
"item_id": "12345",
"sequence": 0,
"pricing_type": "fixed",
"price_amount": 10,
"price_currency": "USD",
"image_ids": [
"12345",
"67890"
]
}
] | -| `modifierGroups` | List\<[ItemModifierGroups](../../models/components/ItemModifierGroups.md)> | :heavy_minus_sign: | N/A | [
{
"id": "12345"
}
] | -| `available` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `hidden` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `deleted` | *JsonNullable\* | :heavy_minus_sign: | Flag to indicate if the object is deleted. | true | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/ItemModifierGroups.md b/docs/models/components/ItemModifierGroups.md deleted file mode 100644 index 0a4d4e3..0000000 --- a/docs/models/components/ItemModifierGroups.md +++ /dev/null @@ -1,7 +0,0 @@ -# ItemModifierGroups - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/ItemOptions.md b/docs/models/components/ItemOptions.md deleted file mode 100644 index 1fc2ae7..0000000 --- a/docs/models/components/ItemOptions.md +++ /dev/null @@ -1,10 +0,0 @@ -# ItemOptions - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | Option 1 | -| `attributeId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | \ No newline at end of file diff --git a/docs/models/components/ItemPricingType.md b/docs/models/components/ItemPricingType.md deleted file mode 100644 index 4422097..0000000 --- a/docs/models/components/ItemPricingType.md +++ /dev/null @@ -1,10 +0,0 @@ -# ItemPricingType - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `FIXED` | fixed | -| `VARIABLE` | variable | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/ItemVariations.md b/docs/models/components/ItemVariations.md deleted file mode 100644 index 92c1a72..0000000 --- a/docs/models/components/ItemVariations.md +++ /dev/null @@ -1,15 +0,0 @@ -# ItemVariations - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | Variation | -| `sku` | *Optional\* | :heavy_minus_sign: | N/A | 11910345 | -| `sequence` | *JsonNullable\* | :heavy_minus_sign: | N/A | 1 | -| `pricingType` | [Optional\](../../models/components/ItemPricingType.md) | :heavy_minus_sign: | N/A | fixed | -| `priceAmount` | *Optional\* | :heavy_minus_sign: | N/A | 10 | -| `priceCurrency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `stockable` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `presentAtAllLocations` | *Optional\* | :heavy_minus_sign: | N/A | false | \ No newline at end of file diff --git a/docs/models/components/LineItems.md b/docs/models/components/LineItems.md deleted file mode 100644 index 90b35d8..0000000 --- a/docs/models/components/LineItems.md +++ /dev/null @@ -1,18 +0,0 @@ -# LineItems - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | New York Strip Steak | -| `item` | [Optional\](../../models/components/OrderItem.md) | :heavy_minus_sign: | N/A | | -| `totalTax` | *JsonNullable\* | :heavy_minus_sign: | N/A | 2000 | -| `totalDiscount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 3000 | -| `totalAmount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 27500 | -| `quantity` | *JsonNullable\* | :heavy_minus_sign: | N/A | 1 | -| `unitPrice` | *JsonNullable\* | :heavy_minus_sign: | N/A | 27500.5 | -| `appliedTaxes` | List\<[AppliedTaxes](../../models/components/AppliedTaxes.md)> | :heavy_minus_sign: | N/A | | -| `appliedDiscounts` | List\<[AppliedDiscounts](../../models/components/AppliedDiscounts.md)> | :heavy_minus_sign: | N/A | | -| `modifiers` | List\<[OrderModifiers](../../models/components/OrderModifiers.md)> | :heavy_minus_sign: | Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts | | \ No newline at end of file diff --git a/docs/models/components/Location.md b/docs/models/components/Location.md deleted file mode 100644 index 976e281..0000000 --- a/docs/models/components/Location.md +++ /dev/null @@ -1,20 +0,0 @@ -# Location - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `name` | *JsonNullable\* | :heavy_minus_sign: | The name of the location | Dunkin Donuts | -| `businessName` | *JsonNullable\* | :heavy_minus_sign: | The business name of the location | Dunkin Donuts LLC | -| `address` | [Optional\
](../../models/components/Address.md) | :heavy_minus_sign: | N/A | | -| `status` | [JsonNullable\](../../models/components/LocationStatusStatus.md) | :heavy_minus_sign: | Status of this location. | active | -| `merchantId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `customMappings` | [JsonNullable\](../../models/components/CustomMappings.md) | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/LocationInput.md b/docs/models/components/LocationInput.md deleted file mode 100644 index cbce5df..0000000 --- a/docs/models/components/LocationInput.md +++ /dev/null @@ -1,14 +0,0 @@ -# LocationInput - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *JsonNullable\* | :heavy_minus_sign: | The name of the location | Dunkin Donuts | -| `businessName` | *JsonNullable\* | :heavy_minus_sign: | The business name of the location | Dunkin Donuts LLC | -| `address` | [Optional\
](../../models/components/Address.md) | :heavy_minus_sign: | N/A | | -| `status` | [JsonNullable\](../../models/components/LocationStatusStatus.md) | :heavy_minus_sign: | Status of this location. | active | -| `merchantId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/LocationStatusStatus.md b/docs/models/components/LocationStatusStatus.md deleted file mode 100644 index 334f89d..0000000 --- a/docs/models/components/LocationStatusStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# LocationStatusStatus - -Status of this location. - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `ACTIVE` | active | -| `INACTIVE` | inactive | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/Merchant.md b/docs/models/components/Merchant.md deleted file mode 100644 index 11cbf91..0000000 --- a/docs/models/components/Merchant.md +++ /dev/null @@ -1,22 +0,0 @@ -# Merchant - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `name` | *JsonNullable\* | :heavy_minus_sign: | The name of the merchant | Dunkin Donuts | -| `address` | [Optional\
](../../models/components/Address.md) | :heavy_minus_sign: | N/A | | -| `ownerId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `mainLocationId` | *JsonNullable\* | :heavy_minus_sign: | The main location ID of the merchant | 12345 | -| `status` | [JsonNullable\](../../models/components/MerchantStatus.md) | :heavy_minus_sign: | Status of this merchant. | active | -| `serviceCharges` | List\<[ServiceCharge](../../models/components/ServiceCharge.md)> | :heavy_minus_sign: | N/A | | -| `language` | *JsonNullable\* | :heavy_minus_sign: | language code according to ISO 639-1. For the United States - EN | EN | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `customMappings` | [JsonNullable\](../../models/components/CustomMappings.md) | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/MerchantInput.md b/docs/models/components/MerchantInput.md deleted file mode 100644 index 0bc3260..0000000 --- a/docs/models/components/MerchantInput.md +++ /dev/null @@ -1,16 +0,0 @@ -# MerchantInput - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *JsonNullable\* | :heavy_minus_sign: | The name of the merchant | Dunkin Donuts | -| `address` | [Optional\
](../../models/components/Address.md) | :heavy_minus_sign: | N/A | | -| `ownerId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `mainLocationId` | *JsonNullable\* | :heavy_minus_sign: | The main location ID of the merchant | 12345 | -| `status` | [JsonNullable\](../../models/components/MerchantStatus.md) | :heavy_minus_sign: | Status of this merchant. | active | -| `serviceCharges` | List\<[ServiceChargeInput](../../models/components/ServiceChargeInput.md)> | :heavy_minus_sign: | N/A | | -| `language` | *JsonNullable\* | :heavy_minus_sign: | language code according to ISO 639-1. For the United States - EN | EN | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/MerchantStatus.md b/docs/models/components/MerchantStatus.md deleted file mode 100644 index 296953f..0000000 --- a/docs/models/components/MerchantStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# MerchantStatus - -Status of this merchant. - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `ACTIVE` | active | -| `INACTIVE` | inactive | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/Modifier.md b/docs/models/components/Modifier.md deleted file mode 100644 index 975b351..0000000 --- a/docs/models/components/Modifier.md +++ /dev/null @@ -1,21 +0,0 @@ -# Modifier - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | A value you specify that uniquely identifies this request among requests you have sent. | random_string | -| `name` | *String* | :heavy_check_mark: | N/A | Modifier | -| `alternateName` | *Optional\* | :heavy_minus_sign: | N/A | Modifier New | -| `priceAmount` | *Optional\* | :heavy_minus_sign: | N/A | 10 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `modifierGroupId` | *String* | :heavy_check_mark: | N/A | 123 | -| `available` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `customMappings` | [JsonNullable\](../../models/components/CustomMappings.md) | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/ModifierGroup.md b/docs/models/components/ModifierGroup.md deleted file mode 100644 index 724e4b4..0000000 --- a/docs/models/components/ModifierGroup.md +++ /dev/null @@ -1,23 +0,0 @@ -# ModifierGroup - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | Modifier | -| `alternateName` | *Optional\* | :heavy_minus_sign: | N/A | Modifier New | -| `minimumRequired` | *Optional\* | :heavy_minus_sign: | N/A | 1 | -| `maximumAllowed` | *Optional\* | :heavy_minus_sign: | N/A | 5 | -| `selectionType` | [Optional\](../../models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.md) | :heavy_minus_sign: | N/A | single | -| `presentAtAllLocations` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `modifiers` | List\<[Modifiers](../../models/components/Modifiers.md)> | :heavy_minus_sign: | N/A | | -| `deleted` | *JsonNullable\* | :heavy_minus_sign: | Flag to indicate if the object is deleted. | true | -| `customMappings` | [JsonNullable\](../../models/components/CustomMappings.md) | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `rowVersion` | *JsonNullable\* | :heavy_minus_sign: | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | 1-12345 | -| `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/ModifierGroupFilter.md b/docs/models/components/ModifierGroupFilter.md deleted file mode 100644 index 850d81b..0000000 --- a/docs/models/components/ModifierGroupFilter.md +++ /dev/null @@ -1,8 +0,0 @@ -# ModifierGroupFilter - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `modifierGroupId` | *Optional\* | :heavy_minus_sign: | Id of the job to filter on | 1234 | \ No newline at end of file diff --git a/docs/models/components/ModifierGroupInput.md b/docs/models/components/ModifierGroupInput.md deleted file mode 100644 index 07eb447..0000000 --- a/docs/models/components/ModifierGroupInput.md +++ /dev/null @@ -1,17 +0,0 @@ -# ModifierGroupInput - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | Modifier | -| `alternateName` | *Optional\* | :heavy_minus_sign: | N/A | Modifier New | -| `minimumRequired` | *Optional\* | :heavy_minus_sign: | N/A | 1 | -| `maximumAllowed` | *Optional\* | :heavy_minus_sign: | N/A | 5 | -| `selectionType` | [Optional\](../../models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.md) | :heavy_minus_sign: | N/A | single | -| `presentAtAllLocations` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `modifiers` | List\<[Modifiers](../../models/components/Modifiers.md)> | :heavy_minus_sign: | N/A | | -| `deleted` | *JsonNullable\* | :heavy_minus_sign: | Flag to indicate if the object is deleted. | true | -| `rowVersion` | *JsonNullable\* | :heavy_minus_sign: | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | 1-12345 | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/ModifierGroups.md b/docs/models/components/ModifierGroups.md deleted file mode 100644 index 2cdf29c..0000000 --- a/docs/models/components/ModifierGroups.md +++ /dev/null @@ -1,8 +0,0 @@ -# ModifierGroups - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | \ No newline at end of file diff --git a/docs/models/components/ModifierInput.md b/docs/models/components/ModifierInput.md deleted file mode 100644 index dd30619..0000000 --- a/docs/models/components/ModifierInput.md +++ /dev/null @@ -1,15 +0,0 @@ -# ModifierInput - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | A value you specify that uniquely identifies this request among requests you have sent. | random_string | -| `name` | *String* | :heavy_check_mark: | N/A | Modifier | -| `alternateName` | *Optional\* | :heavy_minus_sign: | N/A | Modifier New | -| `priceAmount` | *Optional\* | :heavy_minus_sign: | N/A | 10 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `modifierGroupId` | *String* | :heavy_check_mark: | N/A | 123 | -| `available` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/Modifiers.md b/docs/models/components/Modifiers.md deleted file mode 100644 index b2adaeb..0000000 --- a/docs/models/components/Modifiers.md +++ /dev/null @@ -1,13 +0,0 @@ -# Modifiers - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | Modifier | -| `alternateName` | *Optional\* | :heavy_minus_sign: | N/A | Modifier New | -| `priceAmount` | *Optional\* | :heavy_minus_sign: | N/A | 10 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `available` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | \ No newline at end of file diff --git a/docs/models/components/Order.md b/docs/models/components/Order.md deleted file mode 100644 index 73284bf..0000000 --- a/docs/models/components/Order.md +++ /dev/null @@ -1,51 +0,0 @@ -# Order - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | A value you specify that uniquely identifies this request among requests you have sent. | random_string | -| `orderNumber` | *Optional\* | :heavy_minus_sign: | N/A | 1F | -| `orderDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | 2022-08-12 | -| `closedDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | 2022-08-13 | -| `referenceId` | *JsonNullable\* | :heavy_minus_sign: | An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. | my-order-001 | -| `status` | [Optional\](../../models/components/OrderStatus.md) | :heavy_minus_sign: | Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() | open | -| `paymentStatus` | [Optional\](../../models/components/PosPaymentStatus.md) | :heavy_minus_sign: | Is this order paid or not? | open | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `title` | *Optional\* | :heavy_minus_sign: | N/A | | -| `note` | *Optional\* | :heavy_minus_sign: | A note with information about this order, may be printed on the order receipt and displayed in apps | | -| `merchantId` | *String* | :heavy_check_mark: | N/A | 12345 | -| `customerId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `employeeId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `locationId` | *String* | :heavy_check_mark: | N/A | 12345 | -| `orderTypeId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `table` | *Optional\* | :heavy_minus_sign: | N/A | 1F | -| `seat` | *Optional\* | :heavy_minus_sign: | N/A | 23F | -| `totalAmount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 275 | -| `totalTip` | *JsonNullable\* | :heavy_minus_sign: | N/A | 700 | -| `totalTax` | *JsonNullable\* | :heavy_minus_sign: | N/A | 275 | -| `totalDiscount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 300 | -| `totalRefund` | *JsonNullable\* | :heavy_minus_sign: | N/A | 0 | -| `totalServiceCharge` | *JsonNullable\* | :heavy_minus_sign: | N/A | 0 | -| `refunded` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `customers` | List\<[Customers](../../models/components/Customers.md)> | :heavy_minus_sign: | N/A | | -| `fulfillments` | List\<[Fulfillments](../../models/components/Fulfillments.md)> | :heavy_minus_sign: | N/A | | -| `lineItems` | List\<[LineItems](../../models/components/LineItems.md)> | :heavy_minus_sign: | N/A | | -| `payments` | List\<[Payments](../../models/components/Payments.md)> | :heavy_minus_sign: | N/A | | -| `serviceCharges` | List\<[ServiceCharge](../../models/components/ServiceCharge.md)> | :heavy_minus_sign: | Optional service charges or gratuity tip applied to the order. | | -| `refunds` | List\<[Refunds](../../models/components/Refunds.md)> | :heavy_minus_sign: | N/A | | -| `taxes` | List\<[Taxes](../../models/components/Taxes.md)> | :heavy_minus_sign: | N/A | | -| `discounts` | List\<[Discounts](../../models/components/Discounts.md)> | :heavy_minus_sign: | N/A | | -| `tenders` | List\<[Tenders](../../models/components/Tenders.md)> | :heavy_minus_sign: | N/A | | -| `source` | [JsonNullable\](../../models/components/Source.md) | :heavy_minus_sign: | Source of order. Indicates the way that the order was placed. | api | -| `voided` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `voidedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2020-09-30T07:43:32.000Z | -| `customMappings` | [JsonNullable\](../../models/components/CustomMappings.md) | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `version` | *JsonNullable\* | :heavy_minus_sign: | N/A | 230320320320 | -| `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/OrderAppliedDiscounts.md b/docs/models/components/OrderAppliedDiscounts.md deleted file mode 100644 index 9d27100..0000000 --- a/docs/models/components/OrderAppliedDiscounts.md +++ /dev/null @@ -1,10 +0,0 @@ -# OrderAppliedDiscounts - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `discountId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | \ No newline at end of file diff --git a/docs/models/components/OrderAppliedTaxes.md b/docs/models/components/OrderAppliedTaxes.md deleted file mode 100644 index 991e530..0000000 --- a/docs/models/components/OrderAppliedTaxes.md +++ /dev/null @@ -1,10 +0,0 @@ -# OrderAppliedTaxes - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `taxId` | *Optional\* | :heavy_minus_sign: | N/A | sales-tax | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | \ No newline at end of file diff --git a/docs/models/components/OrderDiscounts.md b/docs/models/components/OrderDiscounts.md deleted file mode 100644 index 12c0539..0000000 --- a/docs/models/components/OrderDiscounts.md +++ /dev/null @@ -1,12 +0,0 @@ -# OrderDiscounts - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | 10% off | -| `type` | [OrderDiscountsType](../../models/components/OrderDiscountsType.md) | :heavy_check_mark: | N/A | percentage | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `scope` | [Optional\](../../models/components/OrderDiscountsScope.md) | :heavy_minus_sign: | N/A | order | \ No newline at end of file diff --git a/docs/models/components/OrderDiscountsScope.md b/docs/models/components/OrderDiscountsScope.md deleted file mode 100644 index a7c7cad..0000000 --- a/docs/models/components/OrderDiscountsScope.md +++ /dev/null @@ -1,9 +0,0 @@ -# OrderDiscountsScope - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `ORDER` | order | -| `LINE_ITEM` | line_item | \ No newline at end of file diff --git a/docs/models/components/OrderDiscountsType.md b/docs/models/components/OrderDiscountsType.md deleted file mode 100644 index a4d397d..0000000 --- a/docs/models/components/OrderDiscountsType.md +++ /dev/null @@ -1,9 +0,0 @@ -# OrderDiscountsType - - -## Values - -| Name | Value | -| ------------ | ------------ | -| `PERCENTAGE` | percentage | -| `FLAT_FEE` | flat_fee | \ No newline at end of file diff --git a/docs/models/components/OrderFulfillmentStatus.md b/docs/models/components/OrderFulfillmentStatus.md deleted file mode 100644 index cce0364..0000000 --- a/docs/models/components/OrderFulfillmentStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# OrderFulfillmentStatus - -The state of the fulfillment. - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `PROPOSED` | proposed | -| `RESERVED` | reserved | -| `PREPARED` | prepared | -| `COMPLETED` | completed | -| `CANCELLED` | cancelled | -| `FAILED` | failed | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/OrderFulfillments.md b/docs/models/components/OrderFulfillments.md deleted file mode 100644 index 6f15f76..0000000 --- a/docs/models/components/OrderFulfillments.md +++ /dev/null @@ -1,12 +0,0 @@ -# OrderFulfillments - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `status` | [Optional\](../../models/components/OrderFulfillmentStatus.md) | :heavy_minus_sign: | The state of the fulfillment. | | -| `type` | [Optional\](../../models/components/OrderFulfillmentsType.md) | :heavy_minus_sign: | N/A | shipment | -| `pickupDetails` | [Optional\](../../models/components/OrderPickupDetails.md) | :heavy_minus_sign: | N/A | | -| `shipmentDetails` | [Optional\](../../models/components/ShipmentDetails.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/OrderFulfillmentsType.md b/docs/models/components/OrderFulfillmentsType.md deleted file mode 100644 index eb4856a..0000000 --- a/docs/models/components/OrderFulfillmentsType.md +++ /dev/null @@ -1,9 +0,0 @@ -# OrderFulfillmentsType - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `PICKUP` | pickup | -| `SHIPMENT` | shipment | \ No newline at end of file diff --git a/docs/models/components/OrderInput.md b/docs/models/components/OrderInput.md deleted file mode 100644 index e57c2b9..0000000 --- a/docs/models/components/OrderInput.md +++ /dev/null @@ -1,43 +0,0 @@ -# OrderInput - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | A value you specify that uniquely identifies this request among requests you have sent. | random_string | -| `orderNumber` | *Optional\* | :heavy_minus_sign: | N/A | 1F | -| `orderDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | 2022-08-12 | -| `closedDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | 2022-08-13 | -| `referenceId` | *JsonNullable\* | :heavy_minus_sign: | An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. | my-order-001 | -| `status` | [Optional\](../../models/components/OrderStatus.md) | :heavy_minus_sign: | Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() | open | -| `paymentStatus` | [Optional\](../../models/components/PosPaymentStatus.md) | :heavy_minus_sign: | Is this order paid or not? | open | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `title` | *Optional\* | :heavy_minus_sign: | N/A | | -| `note` | *Optional\* | :heavy_minus_sign: | A note with information about this order, may be printed on the order receipt and displayed in apps | | -| `merchantId` | *String* | :heavy_check_mark: | N/A | 12345 | -| `customerId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `employeeId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `locationId` | *String* | :heavy_check_mark: | N/A | 12345 | -| `orderTypeId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `table` | *Optional\* | :heavy_minus_sign: | N/A | 1F | -| `seat` | *Optional\* | :heavy_minus_sign: | N/A | 23F | -| `totalAmount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 275 | -| `totalTip` | *JsonNullable\* | :heavy_minus_sign: | N/A | 700 | -| `totalTax` | *JsonNullable\* | :heavy_minus_sign: | N/A | 275 | -| `totalDiscount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 300 | -| `totalRefund` | *JsonNullable\* | :heavy_minus_sign: | N/A | 0 | -| `totalServiceCharge` | *JsonNullable\* | :heavy_minus_sign: | N/A | 0 | -| `refunded` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `customers` | List\<[Customers](../../models/components/Customers.md)> | :heavy_minus_sign: | N/A | | -| `fulfillments` | List\<[OrderFulfillments](../../models/components/OrderFulfillments.md)> | :heavy_minus_sign: | N/A | | -| `lineItems` | List\<[OrderLineItems](../../models/components/OrderLineItems.md)> | :heavy_minus_sign: | N/A | | -| `payments` | List\<[OrderPayments](../../models/components/OrderPayments.md)> | :heavy_minus_sign: | N/A | | -| `serviceCharges` | List\<[ServiceChargeInput](../../models/components/ServiceChargeInput.md)> | :heavy_minus_sign: | Optional service charges or gratuity tip applied to the order. | | -| `refunds` | List\<[OrderRefunds](../../models/components/OrderRefunds.md)> | :heavy_minus_sign: | N/A | | -| `taxes` | List\<[Taxes](../../models/components/Taxes.md)> | :heavy_minus_sign: | N/A | | -| `discounts` | List\<[OrderDiscounts](../../models/components/OrderDiscounts.md)> | :heavy_minus_sign: | N/A | | -| `tenders` | List\<[OrderTenders](../../models/components/OrderTenders.md)> | :heavy_minus_sign: | N/A | | -| `voided` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `version` | *JsonNullable\* | :heavy_minus_sign: | N/A | 230320320320 | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/OrderItem.md b/docs/models/components/OrderItem.md deleted file mode 100644 index 2568b93..0000000 --- a/docs/models/components/OrderItem.md +++ /dev/null @@ -1,8 +0,0 @@ -# OrderItem - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | \ No newline at end of file diff --git a/docs/models/components/OrderItemInput.md b/docs/models/components/OrderItemInput.md deleted file mode 100644 index 5d0996c..0000000 --- a/docs/models/components/OrderItemInput.md +++ /dev/null @@ -1,7 +0,0 @@ -# OrderItemInput - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/OrderLineItems.md b/docs/models/components/OrderLineItems.md deleted file mode 100644 index d3d44c0..0000000 --- a/docs/models/components/OrderLineItems.md +++ /dev/null @@ -1,17 +0,0 @@ -# OrderLineItems - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | New York Strip Steak | -| `item` | [Optional\](../../models/components/OrderItemInput.md) | :heavy_minus_sign: | N/A | | -| `totalTax` | *JsonNullable\* | :heavy_minus_sign: | N/A | 2000 | -| `totalDiscount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 3000 | -| `totalAmount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 27500 | -| `quantity` | *JsonNullable\* | :heavy_minus_sign: | N/A | 1 | -| `unitPrice` | *JsonNullable\* | :heavy_minus_sign: | N/A | 27500.5 | -| `appliedTaxes` | List\<[OrderAppliedTaxes](../../models/components/OrderAppliedTaxes.md)> | :heavy_minus_sign: | N/A | | -| `appliedDiscounts` | List\<[OrderAppliedDiscounts](../../models/components/OrderAppliedDiscounts.md)> | :heavy_minus_sign: | N/A | | -| `modifiers` | List\<[OrderModifiers](../../models/components/OrderModifiers.md)> | :heavy_minus_sign: | Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts | | \ No newline at end of file diff --git a/docs/models/components/OrderModifiers.md b/docs/models/components/OrderModifiers.md deleted file mode 100644 index daaf080..0000000 --- a/docs/models/components/OrderModifiers.md +++ /dev/null @@ -1,13 +0,0 @@ -# OrderModifiers - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | New York Strip Steak - no cheese | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `alternateName` | *Optional\* | :heavy_minus_sign: | N/A | Modifier New | -| `modifierGroupId` | *Optional\* | :heavy_minus_sign: | N/A | 123 | \ No newline at end of file diff --git a/docs/models/components/OrderPayments.md b/docs/models/components/OrderPayments.md deleted file mode 100644 index 02dee63..0000000 --- a/docs/models/components/OrderPayments.md +++ /dev/null @@ -1,9 +0,0 @@ -# OrderPayments - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | \ No newline at end of file diff --git a/docs/models/components/OrderPickupDetails.md b/docs/models/components/OrderPickupDetails.md deleted file mode 100644 index 58cf635..0000000 --- a/docs/models/components/OrderPickupDetails.md +++ /dev/null @@ -1,24 +0,0 @@ -# OrderPickupDetails - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `autoCompleteDuration` | *JsonNullable\* | :heavy_minus_sign: | The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). | P1W3D | -| `cancelReason` | *JsonNullable\* | :heavy_minus_sign: | A description of why the pickup was canceled. | Not hungry | -| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future.
If `expires_at` is not set, this pickup fulfillment is automatically accepted when
placed. | 2016-09-04T23:59:33.123Z | -| `scheduleType` | [Optional\](../../models/components/ScheduleType.md) | :heavy_minus_sign: | The schedule type of the pickup fulfillment. | | -| `pickupAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g.,
"2016-09-04T23:59:33.123Z".

For fulfillments with the schedule type `ASAP`, this is automatically set
to the current time plus the expected duration to prepare the fulfillment. | 2016-09-04T23:59:33.123Z | -| `pickupWindowDuration` | *Optional\* | :heavy_minus_sign: | The window of time in which the order should be picked up after the `pickup_at` timestamp.
Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an
informational guideline for merchants. | P1W3D | -| `prepTimeDuration` | *Optional\* | :heavy_minus_sign: | The duration of time it takes to prepare this fulfillment.
The duration must be in RFC 3339 format (for example, "P1W3D"). | P1W3D | -| `note` | *Optional\* | :heavy_minus_sign: | A note meant to provide additional instructions about the pickup
fulfillment displayed in the Square Point of Sale application and set by the API. | Pickup in the back. | -| `placedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `rejectedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `readyAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `expiredAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `pickedUpAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `canceledAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `isCurbsidePickup` | *Optional\* | :heavy_minus_sign: | If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. | | -| `curbsidePickupDetails` | [Optional\](../../models/components/CurbsidePickupDetails.md) | :heavy_minus_sign: | Specific details for curbside pickup. | | -| `recipient` | [Optional\](../../models/components/Recipient.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/OrderRefunds.md b/docs/models/components/OrderRefunds.md deleted file mode 100644 index 32374fc..0000000 --- a/docs/models/components/OrderRefunds.md +++ /dev/null @@ -1,11 +0,0 @@ -# OrderRefunds - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `reason` | *Optional\* | :heavy_minus_sign: | N/A | The reason for the refund being issued. | -| `status` | [Optional\](../../models/components/OrderRefundsStatus.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/OrderRefundsStatus.md b/docs/models/components/OrderRefundsStatus.md deleted file mode 100644 index 094f6ab..0000000 --- a/docs/models/components/OrderRefundsStatus.md +++ /dev/null @@ -1,11 +0,0 @@ -# OrderRefundsStatus - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `PENDING` | pending | -| `APPROVED` | approved | -| `REJECTED` | rejected | -| `FAILED` | failed | \ No newline at end of file diff --git a/docs/models/components/OrderScope.md b/docs/models/components/OrderScope.md deleted file mode 100644 index 931e583..0000000 --- a/docs/models/components/OrderScope.md +++ /dev/null @@ -1,9 +0,0 @@ -# OrderScope - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `ORDER` | order | -| `LINE_ITEM` | line_item | \ No newline at end of file diff --git a/docs/models/components/OrderStatus.md b/docs/models/components/OrderStatus.md deleted file mode 100644 index 6cd936f..0000000 --- a/docs/models/components/OrderStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# OrderStatus - -Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `OPEN` | open | -| `DRAFT` | draft | -| `DELIVERED` | delivered | -| `DELAYED` | delayed | -| `VOIDED` | voided | -| `COMPLETED` | completed | -| `HIDDEN` | hidden | \ No newline at end of file diff --git a/docs/models/components/OrderTaxesType.md b/docs/models/components/OrderTaxesType.md deleted file mode 100644 index 1bd66ec..0000000 --- a/docs/models/components/OrderTaxesType.md +++ /dev/null @@ -1,10 +0,0 @@ -# OrderTaxesType - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `UNKNOWN` | unknown | -| `ADDITIVE` | additive | -| `INCLUSIVE` | inclusive | \ No newline at end of file diff --git a/docs/models/components/OrderTenders.md b/docs/models/components/OrderTenders.md deleted file mode 100644 index 1b46bdb..0000000 --- a/docs/models/components/OrderTenders.md +++ /dev/null @@ -1,25 +0,0 @@ -# OrderTenders - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | 10% off | -| `type` | [Optional\](../../models/components/OrderTendersType.md) | :heavy_minus_sign: | N/A | cash | -| `note` | *Optional\* | :heavy_minus_sign: | N/A | An optional note associated with the tender at the time of payment. | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `percentage` | *Optional\* | :heavy_minus_sign: | N/A | 10 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `totalAmount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 275 | -| `totalTip` | *JsonNullable\* | :heavy_minus_sign: | N/A | 7 | -| `totalProcessingFee` | *JsonNullable\* | :heavy_minus_sign: | N/A | 0 | -| `totalTax` | *JsonNullable\* | :heavy_minus_sign: | N/A | 2.75 | -| `totalDiscount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 3 | -| `totalRefund` | *JsonNullable\* | :heavy_minus_sign: | N/A | 0 | -| `totalServiceCharge` | *JsonNullable\* | :heavy_minus_sign: | N/A | 0 | -| `buyerTenderedCashAmount` | *JsonNullable\* | :heavy_minus_sign: | The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. | 27500 | -| `changeBackCashAmount` | *JsonNullable\* | :heavy_minus_sign: | The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. | 27500 | -| `card` | [JsonNullable\](../../models/components/PaymentCardInput.md) | :heavy_minus_sign: | A card's non-confidential details. | | -| `cardStatus` | [JsonNullable\](../../models/components/CardStatus.md) | :heavy_minus_sign: | The status of the card. Only applicable when the tender type is card. | authorized | -| `cardEntryMethod` | [JsonNullable\](../../models/components/CardEntryMethod.md) | :heavy_minus_sign: | The entry method of the card. Only applicable when the tender type is card. | swiped | \ No newline at end of file diff --git a/docs/models/components/OrderTendersType.md b/docs/models/components/OrderTendersType.md deleted file mode 100644 index 99ced6f..0000000 --- a/docs/models/components/OrderTendersType.md +++ /dev/null @@ -1,10 +0,0 @@ -# OrderTendersType - - -## Values - -| Name | Value | -| ------- | ------- | -| `CASH` | cash | -| `CARD` | card | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/OrderType.md b/docs/models/components/OrderType.md deleted file mode 100644 index 78b5d37..0000000 --- a/docs/models/components/OrderType.md +++ /dev/null @@ -1,15 +0,0 @@ -# OrderType - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | Default order type | -| `default_` | *Optional\* | :heavy_minus_sign: | N/A | true | -| `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/OrderTypeInput.md b/docs/models/components/OrderTypeInput.md deleted file mode 100644 index 0b0a0f5..0000000 --- a/docs/models/components/OrderTypeInput.md +++ /dev/null @@ -1,10 +0,0 @@ -# OrderTypeInput - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | Default order type | -| `default_` | *Optional\* | :heavy_minus_sign: | N/A | true | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/PaymentCard.md b/docs/models/components/PaymentCard.md deleted file mode 100644 index d23535f..0000000 --- a/docs/models/components/PaymentCard.md +++ /dev/null @@ -1,25 +0,0 @@ -# PaymentCard - -A card's non-confidential details. - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `bin` | *JsonNullable\* | :heavy_minus_sign: | The first six digits of the card number, known as the Bank Identification Number (BIN). | 41111 | -| `cardBrand` | [JsonNullable\](../../models/components/CardBrand.md) | :heavy_minus_sign: | The first six digits of the card number, known as the Bank Identification Number (BIN). | | -| `cardType` | [JsonNullable\](../../models/components/CardType.md) | :heavy_minus_sign: | N/A | credit | -| `prepaidType` | [JsonNullable\](../../models/components/PrepaidType.md) | :heavy_minus_sign: | N/A | prepaid | -| `cardholderName` | *JsonNullable\* | :heavy_minus_sign: | N/A | John Doe | -| `customerId` | *JsonNullable\* | :heavy_minus_sign: | N/A | 12345 | -| `merchantId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `expMonth` | *JsonNullable\* | :heavy_minus_sign: | The expiration month of the associated card as an integer between 1 and 12. | 1 | -| `expYear` | *JsonNullable\* | :heavy_minus_sign: | The four-digit year of the card's expiration date. | 2022 | -| `fingerprint` | *JsonNullable\* | :heavy_minus_sign: | N/A | Intended as a POS-assigned identifier, based on the card number, to identify the card across multiple locations within a single application. | -| `last4` | *JsonNullable\* | :heavy_minus_sign: | N/A | The last 4 digits of the card number. | -| `enabled` | *JsonNullable\* | :heavy_minus_sign: | Indicates whether or not a card can be used for payments. | true | -| `billingAddress` | [Optional\
](../../models/components/Address.md) | :heavy_minus_sign: | N/A | | -| `referenceId` | *JsonNullable\* | :heavy_minus_sign: | An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. | card-001 | -| `version` | *JsonNullable\* | :heavy_minus_sign: | N/A | 230320320320 | \ No newline at end of file diff --git a/docs/models/components/PaymentCardInput.md b/docs/models/components/PaymentCardInput.md deleted file mode 100644 index 6530dd8..0000000 --- a/docs/models/components/PaymentCardInput.md +++ /dev/null @@ -1,24 +0,0 @@ -# PaymentCardInput - -A card's non-confidential details. - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `bin` | *JsonNullable\* | :heavy_minus_sign: | The first six digits of the card number, known as the Bank Identification Number (BIN). | 41111 | -| `cardBrand` | [JsonNullable\](../../models/components/CardBrand.md) | :heavy_minus_sign: | The first six digits of the card number, known as the Bank Identification Number (BIN). | | -| `cardType` | [JsonNullable\](../../models/components/CardType.md) | :heavy_minus_sign: | N/A | credit | -| `prepaidType` | [JsonNullable\](../../models/components/PrepaidType.md) | :heavy_minus_sign: | N/A | prepaid | -| `cardholderName` | *JsonNullable\* | :heavy_minus_sign: | N/A | John Doe | -| `customerId` | *JsonNullable\* | :heavy_minus_sign: | N/A | 12345 | -| `merchantId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `expMonth` | *JsonNullable\* | :heavy_minus_sign: | The expiration month of the associated card as an integer between 1 and 12. | 1 | -| `expYear` | *JsonNullable\* | :heavy_minus_sign: | The four-digit year of the card's expiration date. | 2022 | -| `fingerprint` | *JsonNullable\* | :heavy_minus_sign: | N/A | Intended as a POS-assigned identifier, based on the card number, to identify the card across multiple locations within a single application. | -| `last4` | *JsonNullable\* | :heavy_minus_sign: | N/A | The last 4 digits of the card number. | -| `enabled` | *JsonNullable\* | :heavy_minus_sign: | Indicates whether or not a card can be used for payments. | true | -| `billingAddress` | [Optional\
](../../models/components/Address.md) | :heavy_minus_sign: | N/A | | -| `referenceId` | *JsonNullable\* | :heavy_minus_sign: | An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. | card-001 | -| `version` | *JsonNullable\* | :heavy_minus_sign: | N/A | 230320320320 | \ No newline at end of file diff --git a/docs/models/components/Payments.md b/docs/models/components/Payments.md deleted file mode 100644 index d5be72f..0000000 --- a/docs/models/components/Payments.md +++ /dev/null @@ -1,10 +0,0 @@ -# Payments - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | \ No newline at end of file diff --git a/docs/models/components/PeriodType.md b/docs/models/components/PeriodType.md new file mode 100644 index 0000000..80ba05c --- /dev/null +++ b/docs/models/components/PeriodType.md @@ -0,0 +1,12 @@ +# PeriodType + +The type of period to include in the resource: month, quarter, year. + + +## Values + +| Name | Value | +| --------- | --------- | +| `MONTH` | month | +| `QUARTER` | quarter | +| `YEAR` | year | \ No newline at end of file diff --git a/docs/models/components/PickupDetails.md b/docs/models/components/PickupDetails.md deleted file mode 100644 index e01e62e..0000000 --- a/docs/models/components/PickupDetails.md +++ /dev/null @@ -1,25 +0,0 @@ -# PickupDetails - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `acceptedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2020-09-30T07:43:32.000Z | -| `autoCompleteDuration` | *JsonNullable\* | :heavy_minus_sign: | The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). | P1W3D | -| `cancelReason` | *JsonNullable\* | :heavy_minus_sign: | A description of why the pickup was canceled. | Not hungry | -| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future.
If `expires_at` is not set, this pickup fulfillment is automatically accepted when
placed. | 2016-09-04T23:59:33.123Z | -| `scheduleType` | [Optional\](../../models/components/ScheduleType.md) | :heavy_minus_sign: | The schedule type of the pickup fulfillment. | | -| `pickupAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g.,
"2016-09-04T23:59:33.123Z".

For fulfillments with the schedule type `ASAP`, this is automatically set
to the current time plus the expected duration to prepare the fulfillment. | 2016-09-04T23:59:33.123Z | -| `pickupWindowDuration` | *Optional\* | :heavy_minus_sign: | The window of time in which the order should be picked up after the `pickup_at` timestamp.
Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an
informational guideline for merchants. | P1W3D | -| `prepTimeDuration` | *Optional\* | :heavy_minus_sign: | The duration of time it takes to prepare this fulfillment.
The duration must be in RFC 3339 format (for example, "P1W3D"). | P1W3D | -| `note` | *Optional\* | :heavy_minus_sign: | A note meant to provide additional instructions about the pickup
fulfillment displayed in the Square Point of Sale application and set by the API. | Pickup in the back. | -| `placedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `rejectedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `readyAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `expiredAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `pickedUpAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `canceledAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z"). | 2016-09-04T23:59:33.123Z | -| `isCurbsidePickup` | *Optional\* | :heavy_minus_sign: | If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. | | -| `curbsidePickupDetails` | [Optional\](../../models/components/CurbsidePickupDetails.md) | :heavy_minus_sign: | Specific details for curbside pickup. | | -| `recipient` | [Optional\](../../models/components/Recipient.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/PosBankAccount.md b/docs/models/components/PosBankAccount.md deleted file mode 100644 index ee009b9..0000000 --- a/docs/models/components/PosBankAccount.md +++ /dev/null @@ -1,16 +0,0 @@ -# PosBankAccount - -Card details for this payment. This field is currently not available. Reach out to our team for more info. - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `bankName` | *Optional\* | :heavy_minus_sign: | The name of the bank associated with the bank account. | | -| `transferType` | *Optional\* | :heavy_minus_sign: | The type of the bank transfer. The type can be `ACH` or `UNKNOWN`. | | -| `accountOwnershipType` | *Optional\* | :heavy_minus_sign: | The ownership type of the bank account performing the transfer.
The type can be `INDIVIDUAL`, `COMPANY`, or `UNKNOWN`. | | -| `fingerprint` | *Optional\* | :heavy_minus_sign: | Uniquely identifies the bank account for this seller and can be used
to determine if payments are from the same bank account. | | -| `country` | *JsonNullable\* | :heavy_minus_sign: | Country code according to ISO 3166-1 alpha-2. | US | -| `statementDescription` | *Optional\* | :heavy_minus_sign: | The statement description as sent to the bank. | | -| `achDetails` | [Optional\](../../models/components/AchDetails.md) | :heavy_minus_sign: | ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`. | | \ No newline at end of file diff --git a/docs/models/components/PosPayment.md b/docs/models/components/PosPayment.md deleted file mode 100644 index 013d752..0000000 --- a/docs/models/components/PosPayment.md +++ /dev/null @@ -1,42 +0,0 @@ -# PosPayment - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `sourceId` | *String* | :heavy_check_mark: | The ID for the source of funds for this payment. Square-only: This can be a payment token (card nonce) generated by the payment form or a card on file made linked to the customer. if recording a payment that the seller received outside of Square, specify either `CASH` or `EXTERNAL`. | 12345 | -| `orderId` | *String* | :heavy_check_mark: | N/A | 12345 | -| `merchantId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `customerId` | *String* | :heavy_check_mark: | N/A | 12345 | -| `employeeId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `locationId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `deviceId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `tenderId` | *String* | :heavy_check_mark: | N/A | 12345 | -| `externalPaymentId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | A value you specify that uniquely identifies this request among requests you have sent. | random_string | -| `amount` | *double* | :heavy_check_mark: | N/A | 27.5 | -| `currency` | [Optional\](../../models/components/Currency.md) | :heavy_check_mark: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `tip` | *Optional\* | :heavy_minus_sign: | N/A | 7 | -| `tax` | *Optional\* | :heavy_minus_sign: | N/A | 20 | -| `total` | *Optional\* | :heavy_minus_sign: | N/A | 37.5 | -| `appFee` | *Optional\* | :heavy_minus_sign: | The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. | 3 | -| `changeBackCashAmount` | *Optional\* | :heavy_minus_sign: | N/A | 20 | -| `approved` | *Optional\* | :heavy_minus_sign: | The initial amount of money approved for this payment. | 37.5 | -| `refunded` | *Optional\* | :heavy_minus_sign: | The initial amount of money approved for this payment. | 37.5 | -| `processingFees` | List\<[ProcessingFees](../../models/components/ProcessingFees.md)> | :heavy_minus_sign: | N/A | [
{
"amount": 1.05,
"effective_at": "2020-09-30T07:43:32.000Z",
"processing_type": "initial"
}
] | -| `source` | [Optional\](../../models/components/PosPaymentSource.md) | :heavy_minus_sign: | Source of this payment. | external | -| `status` | [Optional\](../../models/components/PosPaymentStatusStatus.md) | :heavy_minus_sign: | Status of this payment. | approved | -| `cash` | [Optional\](../../models/components/CashDetails.md) | :heavy_minus_sign: | Cash details for this payment | | -| `cardDetails` | [Optional\](../../models/components/CardDetails.md) | :heavy_minus_sign: | N/A | | -| `bankAccount` | [Optional\](../../models/components/PosBankAccount.md) | :heavy_minus_sign: | Card details for this payment. This field is currently not available. Reach out to our team for more info. | | -| `wallet` | [Optional\](../../models/components/WalletDetails.md) | :heavy_minus_sign: | Wallet details for this payment. This field is currently not available. Reach out to our team for more info. | | -| `externalDetails` | [Optional\](../../models/components/ExternalDetails.md) | :heavy_minus_sign: | Details about an external payment. | | -| `serviceCharges` | List\<[ServiceCharge](../../models/components/ServiceCharge.md)> | :heavy_minus_sign: | Optional service charges or gratuity tip applied to the order. | | -| `customMappings` | [JsonNullable\](../../models/components/CustomMappings.md) | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/PosPaymentCardDetails.md b/docs/models/components/PosPaymentCardDetails.md deleted file mode 100644 index 2f7c6a8..0000000 --- a/docs/models/components/PosPaymentCardDetails.md +++ /dev/null @@ -1,8 +0,0 @@ -# PosPaymentCardDetails - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `card` | [JsonNullable\](../../models/components/PaymentCardInput.md) | :heavy_minus_sign: | A card's non-confidential details. | \ No newline at end of file diff --git a/docs/models/components/PosPaymentInput.md b/docs/models/components/PosPaymentInput.md deleted file mode 100644 index f9f7b7d..0000000 --- a/docs/models/components/PosPaymentInput.md +++ /dev/null @@ -1,36 +0,0 @@ -# PosPaymentInput - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `sourceId` | *String* | :heavy_check_mark: | The ID for the source of funds for this payment. Square-only: This can be a payment token (card nonce) generated by the payment form or a card on file made linked to the customer. if recording a payment that the seller received outside of Square, specify either `CASH` or `EXTERNAL`. | 12345 | -| `orderId` | *String* | :heavy_check_mark: | N/A | 12345 | -| `merchantId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `customerId` | *String* | :heavy_check_mark: | N/A | 12345 | -| `employeeId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `locationId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `deviceId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `tenderId` | *String* | :heavy_check_mark: | N/A | 12345 | -| `externalPaymentId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | A value you specify that uniquely identifies this request among requests you have sent. | random_string | -| `amount` | *double* | :heavy_check_mark: | N/A | 27.5 | -| `currency` | [Optional\](../../models/components/Currency.md) | :heavy_check_mark: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `tip` | *Optional\* | :heavy_minus_sign: | N/A | 7 | -| `tax` | *Optional\* | :heavy_minus_sign: | N/A | 20 | -| `total` | *Optional\* | :heavy_minus_sign: | N/A | 37.5 | -| `appFee` | *Optional\* | :heavy_minus_sign: | The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. | 3 | -| `changeBackCashAmount` | *Optional\* | :heavy_minus_sign: | N/A | 20 | -| `approved` | *Optional\* | :heavy_minus_sign: | The initial amount of money approved for this payment. | 37.5 | -| `refunded` | *Optional\* | :heavy_minus_sign: | The initial amount of money approved for this payment. | 37.5 | -| `processingFees` | List\<[ProcessingFees](../../models/components/ProcessingFees.md)> | :heavy_minus_sign: | N/A | [
{
"amount": 1.05,
"effective_at": "2020-09-30T07:43:32.000Z",
"processing_type": "initial"
}
] | -| `source` | [Optional\](../../models/components/PosPaymentSource.md) | :heavy_minus_sign: | Source of this payment. | external | -| `status` | [Optional\](../../models/components/PosPaymentStatusStatus.md) | :heavy_minus_sign: | Status of this payment. | approved | -| `cash` | [Optional\](../../models/components/CashDetails.md) | :heavy_minus_sign: | Cash details for this payment | | -| `cardDetails` | [Optional\](../../models/components/PosPaymentCardDetails.md) | :heavy_minus_sign: | N/A | | -| `bankAccount` | [Optional\](../../models/components/PosBankAccount.md) | :heavy_minus_sign: | Card details for this payment. This field is currently not available. Reach out to our team for more info. | | -| `wallet` | [Optional\](../../models/components/WalletDetails.md) | :heavy_minus_sign: | Wallet details for this payment. This field is currently not available. Reach out to our team for more info. | | -| `externalDetails` | [Optional\](../../models/components/ExternalDetails.md) | :heavy_minus_sign: | Details about an external payment. | | -| `serviceCharges` | List\<[ServiceChargeInput](../../models/components/ServiceChargeInput.md)> | :heavy_minus_sign: | Optional service charges or gratuity tip applied to the order. | | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/PosPaymentProcessingFeesType.md b/docs/models/components/PosPaymentProcessingFeesType.md deleted file mode 100644 index af7b9c4..0000000 --- a/docs/models/components/PosPaymentProcessingFeesType.md +++ /dev/null @@ -1,9 +0,0 @@ -# PosPaymentProcessingFeesType - - -## Values - -| Name | Value | -| ------------ | ------------ | -| `INITIAL` | initial | -| `ADJUSTMENT` | adjustment | \ No newline at end of file diff --git a/docs/models/components/PosPaymentSource.md b/docs/models/components/PosPaymentSource.md deleted file mode 100644 index fbae5a0..0000000 --- a/docs/models/components/PosPaymentSource.md +++ /dev/null @@ -1,16 +0,0 @@ -# PosPaymentSource - -Source of this payment. - - -## Values - -| Name | Value | -| -------------- | -------------- | -| `CARD` | card | -| `BANK_ACCOUNT` | bank_account | -| `WALLET` | wallet | -| `BNPL` | bnpl | -| `CASH` | cash | -| `EXTERNAL` | external | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/PosPaymentStatus.md b/docs/models/components/PosPaymentStatus.md deleted file mode 100644 index d27e497..0000000 --- a/docs/models/components/PosPaymentStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# PosPaymentStatus - -Is this order paid or not? - - -## Values - -| Name | Value | -| -------------------- | -------------------- | -| `OPEN` | open | -| `PAID` | paid | -| `REFUNDED` | refunded | -| `CREDITED` | credited | -| `PARTIALLY_PAID` | partially_paid | -| `PARTIALLY_REFUNDED` | partially_refunded | -| `UNKNOWN` | unknown | \ No newline at end of file diff --git a/docs/models/components/PosPaymentStatusStatus.md b/docs/models/components/PosPaymentStatusStatus.md deleted file mode 100644 index cab2658..0000000 --- a/docs/models/components/PosPaymentStatusStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# PosPaymentStatusStatus - -Status of this payment. - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `APPROVED` | approved | -| `PENDING` | pending | -| `COMPLETED` | completed | -| `CANCELED` | canceled | -| `FAILED` | failed | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/PosPaymentType.md b/docs/models/components/PosPaymentType.md deleted file mode 100644 index 77d66c1..0000000 --- a/docs/models/components/PosPaymentType.md +++ /dev/null @@ -1,33 +0,0 @@ -# PosPaymentType - -The type of external payment the seller received. It can be one of the following: -- CHECK - Paid using a physical check. -- BANK_TRANSFER - Paid using external bank transfer. -- OTHER\_GIFT\_CARD - Paid using a non-Square gift card. -- CRYPTO - Paid using a crypto currency. -- SQUARE_CASH - Paid using Square Cash App. -- SOCIAL - Paid using peer-to-peer payment applications. -- EXTERNAL - A third-party application gathered this payment outside of Square. -- EMONEY - Paid using an E-money provider. -- CARD - A credit or debit card that Square does not support. -- STORED_BALANCE - Use for house accounts, store credit, and so forth. -- FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals -- OTHER - A type not listed here. - - -## Values - -| Name | Value | -| ----------------- | ----------------- | -| `CHECK` | check | -| `BANK_TRANSFER` | bank_transfer | -| `OTHER_GIFT_CARD` | other_gift_card | -| `CRYPTO` | crypto | -| `SQUARE_CASH` | square_cash | -| `SOCIAL` | social | -| `EXTERNAL` | external | -| `EMONEY` | emoney | -| `CARD` | card | -| `STORED_BALANCE` | stored_balance | -| `FOOD_VOUCHER` | food_voucher | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/PosPaymentWalletStatus.md b/docs/models/components/PosPaymentWalletStatus.md deleted file mode 100644 index c502489..0000000 --- a/docs/models/components/PosPaymentWalletStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# PosPaymentWalletStatus - -The status of the wallet payment. The status can be AUTHORIZED, CAPTURED, VOIDED, or FAILED. - - -## Values - -| Name | Value | -| ------------ | ------------ | -| `AUTHORIZED` | authorized | -| `CAPTURED` | captured | -| `VOIDED` | voided | -| `FAILED` | failed | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/PrepaidType.md b/docs/models/components/PrepaidType.md deleted file mode 100644 index c187bb2..0000000 --- a/docs/models/components/PrepaidType.md +++ /dev/null @@ -1,10 +0,0 @@ -# PrepaidType - - -## Values - -| Name | Value | -| ------------- | ------------- | -| `NON_PREPAID` | non-prepaid | -| `PREPAID` | prepaid | -| `UNKNOWN` | unknown | \ No newline at end of file diff --git a/docs/models/components/PricingType.md b/docs/models/components/PricingType.md deleted file mode 100644 index 4e906f1..0000000 --- a/docs/models/components/PricingType.md +++ /dev/null @@ -1,11 +0,0 @@ -# PricingType - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `FIXED` | fixed | -| `VARIABLE` | variable | -| `PER_UNIT` | per_unit | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/ProcessingFees.md b/docs/models/components/ProcessingFees.md deleted file mode 100644 index 4798589..0000000 --- a/docs/models/components/ProcessingFees.md +++ /dev/null @@ -1,10 +0,0 @@ -# ProcessingFees - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 1.05 | -| `effectiveAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2020-09-30T07:43:32.000Z | -| `processingType` | [Optional\](../../models/components/PosPaymentProcessingFeesType.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/ProductType.md b/docs/models/components/ProductType.md deleted file mode 100644 index fcaf268..0000000 --- a/docs/models/components/ProductType.md +++ /dev/null @@ -1,9 +0,0 @@ -# ProductType - - -## Values - -| Name | Value | -| --------- | --------- | -| `REGULAR` | regular | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/components/Recipient.md b/docs/models/components/Recipient.md deleted file mode 100644 index b8afb5f..0000000 --- a/docs/models/components/Recipient.md +++ /dev/null @@ -1,12 +0,0 @@ -# Recipient - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | N/A | 12345 | -| `displayName` | *Optional\* | :heavy_minus_sign: | N/A | Elon Musk | -| `address` | [Optional\
](../../models/components/Address.md) | :heavy_minus_sign: | N/A | | -| `phoneNumber` | [Optional\](../../models/components/PhoneNumber.md) | :heavy_minus_sign: | N/A | | -| `email` | [Optional\](../../models/components/Email.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/Refunds.md b/docs/models/components/Refunds.md deleted file mode 100644 index 054dd74..0000000 --- a/docs/models/components/Refunds.md +++ /dev/null @@ -1,15 +0,0 @@ -# Refunds - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `locationId` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `reason` | *Optional\* | :heavy_minus_sign: | N/A | The reason for the refund being issued. | -| `status` | [Optional\](../../models/components/OrderRefundsStatus.md) | :heavy_minus_sign: | N/A | | -| `tenderId` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `transactionId` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | \ No newline at end of file diff --git a/docs/models/components/Reports.md b/docs/models/components/Reports.md index 58534e5..6c39ee8 100644 --- a/docs/models/components/Reports.md +++ b/docs/models/components/Reports.md @@ -3,20 +3,20 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `reportName` | *Optional\* | :heavy_minus_sign: | The name of the report | BalanceSheet | -| `startDate` | *Optional\* | :heavy_minus_sign: | The start date of the report | 2017-01-01 | -| `endDate` | *String* | :heavy_check_mark: | The start date of the report | 2017-01-31 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `assets` | [BalanceSheetAssetsAccount](../../models/components/BalanceSheetAssetsAccount.md) | :heavy_check_mark: | A balance sheet assets account represents the financial position of a company at a specific point in time. | {
"account_id": "1",
"code": "1000",
"name": "Assets",
"amount": 50000,
"items": [
{
"account_id": "101",
"code": "1100",
"name": "Current Assets",
"amount": 20000,
"items": [
{
"account_id": "1011",
"code": "1101",
"name": "Cash and Cash Equivalents",
"amount": 10000
},
{
"account_id": "1012",
"code": "1102",
"name": "Accounts Receivable",
"amount": 5000
},
{
"account_id": "1013",
"code": "1103",
"name": "Inventory",
"amount": 3000
},
{
"account_id": "1014",
"code": "1104",
"name": "Prepaid Expenses",
"amount": 2000
}
]
},
{
"account_id": "102",
"code": "1200",
"name": "Non-Current Assets",
"amount": 30000,
"items": [
{
"account_id": "1021",
"code": "1201",
"name": "Property, Plant, and Equipment (PPE)",
"amount": 25000
},
{
"account_id": "1022",
"code": "1202",
"name": "Intangible Assets",
"amount": 5000,
"items": [
{
"account_id": "10221",
"code": "1203",
"name": "Goodwill",
"amount": 3000
},
{
"account_id": "10222",
"code": "1204",
"name": "Patents",
"amount": 2000
}
]
}
]
}
]
} | -| `liabilities` | [BalanceSheetLiabilitiesAccount](../../models/components/BalanceSheetLiabilitiesAccount.md) | :heavy_check_mark: | A balance sheet liabilities account represents the financial position of a company at a specific point in time. | {
"account_id": "2",
"code": "2000",
"name": "Liabilities",
"amount": 30000,
"items": [
{
"account_id": "201",
"code": "2100",
"name": "Current Liabilities",
"amount": 10000,
"items": [
{
"account_id": "2011",
"code": "2101",
"name": "Accounts Payable",
"amount": 4000
},
{
"account_id": "2012",
"code": "2102",
"name": "Short-Term Debt",
"amount": 2000
},
{
"account_id": "2013",
"code": "2103",
"name": "Accrued Expenses",
"amount": 1000
},
{
"account_id": "2014",
"code": "2104",
"name": "Current Portion of Long-Term Debt",
"amount": 3000
}
]
},
{
"account_id": "202",
"code": "2200",
"name": "Non-Current Liabilities",
"amount": 20000,
"items": [
{
"account_id": "2021",
"code": "2201",
"name": "Long-Term Debt",
"amount": 15000
},
{
"account_id": "2022",
"code": "2202",
"name": "Deferred Tax Liabilities",
"amount": 3000
},
{
"account_id": "2023",
"code": "2203",
"name": "Pension Liabilities",
"amount": 2000
}
]
}
]
} | -| `equity` | [BalanceSheetEquityAccount](../../models/components/BalanceSheetEquityAccount.md) | :heavy_check_mark: | A balance sheet equity account represents the financial position of a company at a specific point in time. | {
"account_id": "3",
"code": "3000",
"name": "Equity",
"amount": 20000,
"items": [
{
"account_id": "301",
"code": "3100",
"name": "Common Stock",
"amount": 5000
},
{
"account_id": "302",
"code": "3200",
"name": "Retained Earnings",
"amount": 10000
},
{
"account_id": "303",
"code": "3300",
"name": "Additional Paid-In Capital",
"amount": 3000
},
{
"account_id": "304",
"code": "3400",
"name": "Treasury Stock",
"amount": -1000
},
{
"account_id": "305",
"code": "3500",
"name": "Other Comprehensive Income",
"amount": 3000
}
]
} | -| `netAssets` | *Optional\* | :heavy_minus_sign: | The net assets of the balance sheet | 1000 | -| `customMappings` | [JsonNullable\](../../models/components/CustomMappings.md) | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `uncategorizedItems` | [Optional\](../../models/components/BalanceSheetUncategorizedItemsAccount.md) | :heavy_minus_sign: | A balance sheet uncategorized items account represents the financial position of a company at a specific point in time. | {
"account_id": "3",
"code": "3000",
"name": "Uncategorized Items",
"amount": 1000,
"items": [
{
"account_id": "301",
"code": "3100",
"name": "not linked account",
"amount": 1000
}
]
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | +| `reportName` | *Optional\* | :heavy_minus_sign: | The name of the report | BalanceSheet | +| `startDate` | *Optional\* | :heavy_minus_sign: | The start date of the report | 2017-01-01 | +| `endDate` | *String* | :heavy_check_mark: | The start date of the report | 2017-01-31 | +| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | +| `assets` | [BalanceSheetAssetsAccount](../../models/components/BalanceSheetAssetsAccount.md) | :heavy_check_mark: | A balance sheet assets account represents the financial position of a company at a specific point in time. | {
"account_id": "1",
"code": "1000",
"name": "Assets",
"value": 50000,
"items": [
{
"account_id": "101",
"code": "1100",
"name": "Current Assets",
"value": 20000,
"items": [
{
"account_id": "1011",
"code": "1101",
"name": "Cash and Cash Equivalents",
"value": 10000
},
{
"account_id": "1012",
"code": "1102",
"name": "Accounts Receivable",
"value": 5000
},
{
"account_id": "1013",
"code": "1103",
"name": "Inventory",
"value": 3000
},
{
"account_id": "1014",
"code": "1104",
"name": "Prepaid Expenses",
"value": 2000
}
]
},
{
"account_id": "102",
"code": "1200",
"name": "Non-Current Assets",
"value": 30000,
"items": [
{
"account_id": "1021",
"code": "1201",
"name": "Property, Plant, and Equipment (PPE)",
"value": 25000
},
{
"account_id": "1022",
"code": "1202",
"name": "Intangible Assets",
"value": 5000,
"items": [
{
"account_id": "10221",
"code": "1203",
"name": "Goodwill",
"value": 3000
},
{
"account_id": "10222",
"code": "1204",
"name": "Patents",
"value": 2000
}
]
}
]
}
]
} | +| `liabilities` | [BalanceSheetLiabilitiesAccount](../../models/components/BalanceSheetLiabilitiesAccount.md) | :heavy_check_mark: | A balance sheet liabilities account represents the financial position of a company at a specific point in time. | {
"account_id": "2",
"code": "2000",
"name": "Liabilities",
"value": 30000,
"items": [
{
"account_id": "201",
"code": "2100",
"name": "Current Liabilities",
"value": 10000,
"items": [
{
"account_id": "2011",
"code": "2101",
"name": "Accounts Payable",
"value": 4000
},
{
"account_id": "2012",
"code": "2102",
"name": "Short-Term Debt",
"value": 2000
},
{
"account_id": "2013",
"code": "2103",
"name": "Accrued Expenses",
"value": 1000
},
{
"account_id": "2014",
"code": "2104",
"name": "Current Portion of Long-Term Debt",
"value": 3000
}
]
},
{
"account_id": "202",
"code": "2200",
"name": "Non-Current Liabilities",
"value": 20000,
"items": [
{
"account_id": "2021",
"code": "2201",
"name": "Long-Term Debt",
"value": 15000
},
{
"account_id": "2022",
"code": "2202",
"name": "Deferred Tax Liabilities",
"value": 3000
},
{
"account_id": "2023",
"code": "2203",
"name": "Pension Liabilities",
"value": 2000
}
]
}
]
} | +| `equity` | [BalanceSheetEquityAccount](../../models/components/BalanceSheetEquityAccount.md) | :heavy_check_mark: | A balance sheet equity account represents the financial position of a company at a specific point in time. | {
"account_id": "3",
"code": "3000",
"name": "Equity",
"value": 20000,
"items": [
{
"account_id": "301",
"code": "3100",
"name": "Common Stock",
"value": 5000
},
{
"account_id": "302",
"code": "3200",
"name": "Retained Earnings",
"value": 10000
},
{
"account_id": "303",
"code": "3300",
"name": "Additional Paid-In Capital",
"value": 3000
},
{
"account_id": "304",
"code": "3400",
"name": "Treasury Stock",
"value": -1000
},
{
"account_id": "305",
"code": "3500",
"name": "Other Comprehensive Income",
"value": 3000
}
]
} | +| `netAssets` | *Optional\* | :heavy_minus_sign: | The net assets of the balance sheet | 1000 | +| `customMappings` | [JsonNullable\](../../models/components/CustomMappings.md) | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | +| `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | +| `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | +| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | +| `uncategorizedItems` | [Optional\](../../models/components/BalanceSheetUncategorizedItemsAccount.md) | :heavy_minus_sign: | A balance sheet uncategorized items account represents the financial position of a company at a specific point in time. | {
"account_id": "3",
"code": "3000",
"name": "Uncategorized Items",
"value": 1000,
"items": [
{
"account_id": "301",
"code": "3100",
"name": "not linked account",
"value": 1000
}
]
} | \ No newline at end of file diff --git a/docs/models/components/ScheduleType.md b/docs/models/components/ScheduleType.md deleted file mode 100644 index 73317db..0000000 --- a/docs/models/components/ScheduleType.md +++ /dev/null @@ -1,10 +0,0 @@ -# ScheduleType - -The schedule type of the pickup fulfillment. - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `SCHEDULED` | scheduled | \ No newline at end of file diff --git a/docs/models/components/ServiceCharge.md b/docs/models/components/ServiceCharge.md deleted file mode 100644 index 4662ebd..0000000 --- a/docs/models/components/ServiceCharge.md +++ /dev/null @@ -1,14 +0,0 @@ -# ServiceCharge - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `name` | *Optional\* | :heavy_minus_sign: | Service charge name | Charge for delivery | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `percentage` | *Optional\* | :heavy_minus_sign: | Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. | 12.5 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `active` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `type` | [Optional\](../../models/components/ServiceChargeType.md) | :heavy_minus_sign: | The type of the service charge. | | \ No newline at end of file diff --git a/docs/models/components/ServiceChargeInput.md b/docs/models/components/ServiceChargeInput.md deleted file mode 100644 index 198dd4b..0000000 --- a/docs/models/components/ServiceChargeInput.md +++ /dev/null @@ -1,13 +0,0 @@ -# ServiceChargeInput - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional\* | :heavy_minus_sign: | Service charge name | Charge for delivery | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `percentage` | *Optional\* | :heavy_minus_sign: | Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. | 12.5 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `active` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `type` | [Optional\](../../models/components/ServiceChargeType.md) | :heavy_minus_sign: | The type of the service charge. | | \ No newline at end of file diff --git a/docs/models/components/ServiceChargeType.md b/docs/models/components/ServiceChargeType.md deleted file mode 100644 index 28eb9cb..0000000 --- a/docs/models/components/ServiceChargeType.md +++ /dev/null @@ -1,11 +0,0 @@ -# ServiceChargeType - -The type of the service charge. - - -## Values - -| Name | Value | -| --------------- | --------------- | -| `AUTO_GRATUITY` | auto_gratuity | -| `CUSTOM` | custom | \ No newline at end of file diff --git a/docs/models/components/ShipmentDetails.md b/docs/models/components/ShipmentDetails.md deleted file mode 100644 index 2eb8889..0000000 --- a/docs/models/components/ShipmentDetails.md +++ /dev/null @@ -1,7 +0,0 @@ -# ShipmentDetails - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/Source.md b/docs/models/components/Source.md deleted file mode 100644 index 88860e1..0000000 --- a/docs/models/components/Source.md +++ /dev/null @@ -1,17 +0,0 @@ -# Source - -Source of order. Indicates the way that the order was placed. - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `IN_STORE` | in-store | -| `ONLINE` | online | -| `OPT` | opt | -| `API` | api | -| `KIOSK` | kiosk | -| `CALLER_ID` | caller-id | -| `GOOGLE` | google | -| `INVOICE` | invoice | \ No newline at end of file diff --git a/docs/models/components/Taxes.md b/docs/models/components/Taxes.md deleted file mode 100644 index 5e2f13e..0000000 --- a/docs/models/components/Taxes.md +++ /dev/null @@ -1,15 +0,0 @@ -# Taxes - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | N/A | state-sales-tax | -| `name` | *Optional\* | :heavy_minus_sign: | The tax's name. | State Sales Tax | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `percentage` | *Optional\* | :heavy_minus_sign: | N/A | 15 | -| `scope` | [Optional\](../../models/components/OrderScope.md) | :heavy_minus_sign: | N/A | | -| `type` | [Optional\](../../models/components/OrderTaxesType.md) | :heavy_minus_sign: | N/A | | -| `autoApplied` | *Optional\* | :heavy_minus_sign: | Square-only: Determines whether the tax was automatically applied to the order based on the catalog configuration. For an example, see Automatically Apply Taxes to an Order. [https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts/auto-apply-taxes]() | true | \ No newline at end of file diff --git a/docs/models/components/Tender.md b/docs/models/components/Tender.md deleted file mode 100644 index dd44f1d..0000000 --- a/docs/models/components/Tender.md +++ /dev/null @@ -1,21 +0,0 @@ -# Tender - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `key` | *JsonNullable\* | :heavy_minus_sign: | N/A | com.clover.tender.cash | -| `label` | *JsonNullable\* | :heavy_minus_sign: | N/A | Cash | -| `active` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `hidden` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `editable` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `opensCashDrawer` | *Optional\* | :heavy_minus_sign: | If this tender opens the cash drawer | | -| `allowsTipping` | *Optional\* | :heavy_minus_sign: | Allow tipping on payment from tender | | -| `customMappings` | [JsonNullable\](../../models/components/CustomMappings.md) | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/TenderInput.md b/docs/models/components/TenderInput.md deleted file mode 100644 index cacda07..0000000 --- a/docs/models/components/TenderInput.md +++ /dev/null @@ -1,15 +0,0 @@ -# TenderInput - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `key` | *JsonNullable\* | :heavy_minus_sign: | N/A | com.clover.tender.cash | -| `label` | *JsonNullable\* | :heavy_minus_sign: | N/A | Cash | -| `active` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `hidden` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `editable` | *JsonNullable\* | :heavy_minus_sign: | N/A | true | -| `opensCashDrawer` | *Optional\* | :heavy_minus_sign: | If this tender opens the cash drawer | | -| `allowsTipping` | *Optional\* | :heavy_minus_sign: | Allow tipping on payment from tender | | -| `passThrough` | List\<[PassThroughBody](../../models/components/PassThroughBody.md)> | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/Tenders.md b/docs/models/components/Tenders.md deleted file mode 100644 index a40b004..0000000 --- a/docs/models/components/Tenders.md +++ /dev/null @@ -1,29 +0,0 @@ -# Tenders - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | 10% off | -| `type` | [Optional\](../../models/components/OrderTendersType.md) | :heavy_minus_sign: | N/A | cash | -| `note` | *Optional\* | :heavy_minus_sign: | N/A | An optional note associated with the tender at the time of payment. | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 27500 | -| `percentage` | *Optional\* | :heavy_minus_sign: | N/A | 10 | -| `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `totalAmount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 275 | -| `totalTip` | *JsonNullable\* | :heavy_minus_sign: | N/A | 7 | -| `totalProcessingFee` | *JsonNullable\* | :heavy_minus_sign: | N/A | 0 | -| `totalTax` | *JsonNullable\* | :heavy_minus_sign: | N/A | 2.75 | -| `totalDiscount` | *JsonNullable\* | :heavy_minus_sign: | N/A | 3 | -| `totalRefund` | *JsonNullable\* | :heavy_minus_sign: | N/A | 0 | -| `totalServiceCharge` | *JsonNullable\* | :heavy_minus_sign: | N/A | 0 | -| `buyerTenderedCashAmount` | *JsonNullable\* | :heavy_minus_sign: | The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. | 27500 | -| `changeBackCashAmount` | *JsonNullable\* | :heavy_minus_sign: | The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. | 27500 | -| `card` | [JsonNullable\](../../models/components/PaymentCard.md) | :heavy_minus_sign: | A card's non-confidential details. | | -| `cardStatus` | [JsonNullable\](../../models/components/CardStatus.md) | :heavy_minus_sign: | The status of the card. Only applicable when the tender type is card. | authorized | -| `cardEntryMethod` | [JsonNullable\](../../models/components/CardEntryMethod.md) | :heavy_minus_sign: | The entry method of the card. Only applicable when the tender type is card. | swiped | -| `paymentId` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `locationId` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `transactionId` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | \ No newline at end of file diff --git a/docs/models/components/Two.md b/docs/models/components/Two.md deleted file mode 100644 index 6a72955..0000000 --- a/docs/models/components/Two.md +++ /dev/null @@ -1,7 +0,0 @@ -# Two - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/UpdateItemResponse.md b/docs/models/components/UpdateItemResponse.md deleted file mode 100644 index 5e8a2f7..0000000 --- a/docs/models/components/UpdateItemResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateItemResponse - -Items - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Items | -| `operation` | *String* | :heavy_check_mark: | Operation performed | update | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/UpdateLocationResponse.md b/docs/models/components/UpdateLocationResponse.md deleted file mode 100644 index 066340e..0000000 --- a/docs/models/components/UpdateLocationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateLocationResponse - -Locations - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Locations | -| `operation` | *String* | :heavy_check_mark: | Operation performed | update | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/UpdateMerchantResponse.md b/docs/models/components/UpdateMerchantResponse.md deleted file mode 100644 index c54fd24..0000000 --- a/docs/models/components/UpdateMerchantResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateMerchantResponse - -Merchants - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Merchants | -| `operation` | *String* | :heavy_check_mark: | Operation performed | update | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/UpdateModifierGroupResponse.md b/docs/models/components/UpdateModifierGroupResponse.md deleted file mode 100644 index 638a9da..0000000 --- a/docs/models/components/UpdateModifierGroupResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateModifierGroupResponse - -ModifierGroups - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | ModifierGroups | -| `operation` | *String* | :heavy_check_mark: | Operation performed | update | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/UpdateModifierResponse.md b/docs/models/components/UpdateModifierResponse.md deleted file mode 100644 index 672ae33..0000000 --- a/docs/models/components/UpdateModifierResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateModifierResponse - -Modifiers - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Modifiers | -| `operation` | *String* | :heavy_check_mark: | Operation performed | update | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/UpdateOrderResponse.md b/docs/models/components/UpdateOrderResponse.md deleted file mode 100644 index 099edb9..0000000 --- a/docs/models/components/UpdateOrderResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateOrderResponse - -Orders - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | orders | -| `operation` | *String* | :heavy_check_mark: | Operation performed | update | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/UpdateOrderTypeResponse.md b/docs/models/components/UpdateOrderTypeResponse.md deleted file mode 100644 index 6bd3e55..0000000 --- a/docs/models/components/UpdateOrderTypeResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateOrderTypeResponse - -OrderTypes - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | OrderTypes | -| `operation` | *String* | :heavy_check_mark: | Operation performed | update | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/UpdatePosPaymentResponse.md b/docs/models/components/UpdatePosPaymentResponse.md deleted file mode 100644 index 2cfd4d6..0000000 --- a/docs/models/components/UpdatePosPaymentResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdatePosPaymentResponse - -PosPayments - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | square | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | PosPayments | -| `operation` | *String* | :heavy_check_mark: | Operation performed | update | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/UpdateTenderResponse.md b/docs/models/components/UpdateTenderResponse.md deleted file mode 100644 index 0aa6a63..0000000 --- a/docs/models/components/UpdateTenderResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateTenderResponse - -Tenders - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `statusCode` | *long* | :heavy_check_mark: | HTTP Response Status Code | 200 | -| `status` | *String* | :heavy_check_mark: | HTTP Response Status | OK | -| `service` | *String* | :heavy_check_mark: | Apideck ID of service provider | clover | -| `resource` | *String* | :heavy_check_mark: | Unified API resource name | Tenders | -| `operation` | *String* | :heavy_check_mark: | Operation performed | update | -| `data` | [UnifiedId](../../models/components/UnifiedId.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/Variations.md b/docs/models/components/Variations.md deleted file mode 100644 index 9d71bd2..0000000 --- a/docs/models/components/Variations.md +++ /dev/null @@ -1,20 +0,0 @@ -# Variations - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | Variation | -| `sku` | *Optional\* | :heavy_minus_sign: | N/A | 11910345 | -| `itemId` | *Optional\* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `sequence` | *JsonNullable\* | :heavy_minus_sign: | N/A | 1 | -| `pricingType` | [Optional\](../../models/components/ItemPricingType.md) | :heavy_minus_sign: | N/A | fixed | -| `priceAmount` | *Optional\* | :heavy_minus_sign: | N/A | 10 | -| `priceCurrency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `stockable` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `presentAtAllLocations` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `version` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | \ No newline at end of file diff --git a/docs/models/components/WalletDetails.md b/docs/models/components/WalletDetails.md deleted file mode 100644 index 88da987..0000000 --- a/docs/models/components/WalletDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# WalletDetails - -Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `status` | [Optional\](../../models/components/PosPaymentWalletStatus.md) | :heavy_minus_sign: | The status of the wallet payment. The status can be AUTHORIZED, CAPTURED, VOIDED, or FAILED. | \ No newline at end of file diff --git a/docs/models/errors/Detail2.md b/docs/models/errors/Detail2.md deleted file mode 100644 index 4f4186e..0000000 --- a/docs/models/errors/Detail2.md +++ /dev/null @@ -1,7 +0,0 @@ -# Detail2 - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/errors/DetailNotFoundResponse2.md b/docs/models/errors/DetailNotFoundResponse2.md deleted file mode 100644 index b581bfa..0000000 --- a/docs/models/errors/DetailNotFoundResponse2.md +++ /dev/null @@ -1,7 +0,0 @@ -# DetailNotFoundResponse2 - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/errors/DetailUnprocessableResponse2.md b/docs/models/errors/DetailUnprocessableResponse2.md deleted file mode 100644 index db913b6..0000000 --- a/docs/models/errors/DetailUnprocessableResponse2.md +++ /dev/null @@ -1,7 +0,0 @@ -# DetailUnprocessableResponse2 - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/errors/Two.md b/docs/models/errors/Two.md deleted file mode 100644 index 6a72955..0000000 --- a/docs/models/errors/Two.md +++ /dev/null @@ -1,7 +0,0 @@ -# Two - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/AccountingAttachmentsAllRequest.md b/docs/models/operations/AccountingAttachmentsAllRequest.md index 8fc155d..31934cc 100644 --- a/docs/models/operations/AccountingAttachmentsAllRequest.md +++ b/docs/models/operations/AccountingAttachmentsAllRequest.md @@ -8,7 +8,7 @@ | `referenceType` | [AttachmentReferenceType](../../models/components/AttachmentReferenceType.md) | :heavy_check_mark: | The reference type of the document. | invoice | | `referenceId` | *String* | :heavy_check_mark: | The reference id of the object to retrieve. | 12345 | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingAttachmentsDeleteRequest.md b/docs/models/operations/AccountingAttachmentsDeleteRequest.md index c9600c7..a04a9cb 100644 --- a/docs/models/operations/AccountingAttachmentsDeleteRequest.md +++ b/docs/models/operations/AccountingAttachmentsDeleteRequest.md @@ -8,7 +8,7 @@ | `referenceType` | [AttachmentReferenceType](../../models/components/AttachmentReferenceType.md) | :heavy_check_mark: | The reference type of the document. | invoice | | `referenceId` | *String* | :heavy_check_mark: | The reference id of the object to retrieve. | 12345 | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingAttachmentsDownloadRequest.md b/docs/models/operations/AccountingAttachmentsDownloadRequest.md index 5d5b501..f706b92 100644 --- a/docs/models/operations/AccountingAttachmentsDownloadRequest.md +++ b/docs/models/operations/AccountingAttachmentsDownloadRequest.md @@ -8,7 +8,7 @@ | `referenceType` | [AttachmentReferenceType](../../models/components/AttachmentReferenceType.md) | :heavy_check_mark: | The reference type of the document. | invoice | | `referenceId` | *String* | :heavy_check_mark: | The reference id of the object to retrieve. | 12345 | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/AccountingAttachmentsOneRequest.md b/docs/models/operations/AccountingAttachmentsOneRequest.md index 8768187..adb4176 100644 --- a/docs/models/operations/AccountingAttachmentsOneRequest.md +++ b/docs/models/operations/AccountingAttachmentsOneRequest.md @@ -8,7 +8,7 @@ | `referenceType` | [AttachmentReferenceType](../../models/components/AttachmentReferenceType.md) | :heavy_check_mark: | The reference type of the document. | invoice | | `referenceId` | *String* | :heavy_check_mark: | The reference id of the object to retrieve. | 12345 | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingBalanceSheetOneRequest.md b/docs/models/operations/AccountingBalanceSheetOneRequest.md index f86bcc2..3433b9b 100644 --- a/docs/models/operations/AccountingBalanceSheetOneRequest.md +++ b/docs/models/operations/AccountingBalanceSheetOneRequest.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `passThrough` | Map\ | :heavy_minus_sign: | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | {
"search": "San Francisco"
} | -| `filter` | [Optional\](../../models/components/BalanceSheetFilter.md) | :heavy_minus_sign: | Apply filters | {
"start_date": "2021-01-01",
"end_date": "2021-12-31"
} | +| `filter` | [Optional\](../../models/components/BalanceSheetFilter.md) | :heavy_minus_sign: | Apply filters | {
"start_date": "2021-01-01",
"end_date": "2021-12-31",
"period_count": 3,
"period_type": "month"
} | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingBillPaymentsAddRequest.md b/docs/models/operations/AccountingBillPaymentsAddRequest.md index 0f424af..4b6622e 100644 --- a/docs/models/operations/AccountingBillPaymentsAddRequest.md +++ b/docs/models/operations/AccountingBillPaymentsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `billPayment` | [BillPaymentInput](../../models/components/BillPaymentInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingBillPaymentsAllRequest.md b/docs/models/operations/AccountingBillPaymentsAllRequest.md index 17b8ac5..c1f0264 100644 --- a/docs/models/operations/AccountingBillPaymentsAllRequest.md +++ b/docs/models/operations/AccountingBillPaymentsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingBillPaymentsDeleteRequest.md b/docs/models/operations/AccountingBillPaymentsDeleteRequest.md index 542e707..37d78c2 100644 --- a/docs/models/operations/AccountingBillPaymentsDeleteRequest.md +++ b/docs/models/operations/AccountingBillPaymentsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingBillPaymentsOneRequest.md b/docs/models/operations/AccountingBillPaymentsOneRequest.md index 64db86e..d67c7ce 100644 --- a/docs/models/operations/AccountingBillPaymentsOneRequest.md +++ b/docs/models/operations/AccountingBillPaymentsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingBillPaymentsUpdateRequest.md b/docs/models/operations/AccountingBillPaymentsUpdateRequest.md index b579ee6..66a5f2e 100644 --- a/docs/models/operations/AccountingBillPaymentsUpdateRequest.md +++ b/docs/models/operations/AccountingBillPaymentsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingBillsAddRequest.md b/docs/models/operations/AccountingBillsAddRequest.md index 9ca858e..feeb39d 100644 --- a/docs/models/operations/AccountingBillsAddRequest.md +++ b/docs/models/operations/AccountingBillsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `bill` | [BillInput](../../models/components/BillInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingBillsAllRequest.md b/docs/models/operations/AccountingBillsAllRequest.md index 9a6ba2c..980e13d 100644 --- a/docs/models/operations/AccountingBillsAllRequest.md +++ b/docs/models/operations/AccountingBillsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingBillsDeleteRequest.md b/docs/models/operations/AccountingBillsDeleteRequest.md index 0df3cc3..c5c57a6 100644 --- a/docs/models/operations/AccountingBillsDeleteRequest.md +++ b/docs/models/operations/AccountingBillsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingBillsOneRequest.md b/docs/models/operations/AccountingBillsOneRequest.md index a152bdc..7959999 100644 --- a/docs/models/operations/AccountingBillsOneRequest.md +++ b/docs/models/operations/AccountingBillsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingBillsUpdateRequest.md b/docs/models/operations/AccountingBillsUpdateRequest.md index 31947c9..34f5795 100644 --- a/docs/models/operations/AccountingBillsUpdateRequest.md +++ b/docs/models/operations/AccountingBillsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingCompanyInfoOneRequest.md b/docs/models/operations/AccountingCompanyInfoOneRequest.md index ae58cee..fa924a2 100644 --- a/docs/models/operations/AccountingCompanyInfoOneRequest.md +++ b/docs/models/operations/AccountingCompanyInfoOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/AccountingCreditNotesAddRequest.md b/docs/models/operations/AccountingCreditNotesAddRequest.md index b3edff9..e812386 100644 --- a/docs/models/operations/AccountingCreditNotesAddRequest.md +++ b/docs/models/operations/AccountingCreditNotesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `creditNote` | [CreditNoteInput](../../models/components/CreditNoteInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingCreditNotesAllRequest.md b/docs/models/operations/AccountingCreditNotesAllRequest.md index 4e36d9e..422cb1a 100644 --- a/docs/models/operations/AccountingCreditNotesAllRequest.md +++ b/docs/models/operations/AccountingCreditNotesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingCreditNotesDeleteRequest.md b/docs/models/operations/AccountingCreditNotesDeleteRequest.md index c9a66f8..4e25ba4 100644 --- a/docs/models/operations/AccountingCreditNotesDeleteRequest.md +++ b/docs/models/operations/AccountingCreditNotesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingCreditNotesOneRequest.md b/docs/models/operations/AccountingCreditNotesOneRequest.md index 2f662eb..6a975e4 100644 --- a/docs/models/operations/AccountingCreditNotesOneRequest.md +++ b/docs/models/operations/AccountingCreditNotesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingCreditNotesUpdateRequest.md b/docs/models/operations/AccountingCreditNotesUpdateRequest.md index 108538c..30222fa 100644 --- a/docs/models/operations/AccountingCreditNotesUpdateRequest.md +++ b/docs/models/operations/AccountingCreditNotesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingCustomersAddRequest.md b/docs/models/operations/AccountingCustomersAddRequest.md index 3157d26..d73d540 100644 --- a/docs/models/operations/AccountingCustomersAddRequest.md +++ b/docs/models/operations/AccountingCustomersAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `customer` | [CustomerInput](../../models/components/CustomerInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingCustomersAllRequest.md b/docs/models/operations/AccountingCustomersAllRequest.md index 0291dc5..8557be3 100644 --- a/docs/models/operations/AccountingCustomersAllRequest.md +++ b/docs/models/operations/AccountingCustomersAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingCustomersDeleteRequest.md b/docs/models/operations/AccountingCustomersDeleteRequest.md index 4b39d99..4c2ddfe 100644 --- a/docs/models/operations/AccountingCustomersDeleteRequest.md +++ b/docs/models/operations/AccountingCustomersDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingCustomersOneRequest.md b/docs/models/operations/AccountingCustomersOneRequest.md index a3d50a2..bef9d8c 100644 --- a/docs/models/operations/AccountingCustomersOneRequest.md +++ b/docs/models/operations/AccountingCustomersOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingCustomersUpdateRequest.md b/docs/models/operations/AccountingCustomersUpdateRequest.md index 15c8976..1176350 100644 --- a/docs/models/operations/AccountingCustomersUpdateRequest.md +++ b/docs/models/operations/AccountingCustomersUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingDepartmentsAddRequest.md b/docs/models/operations/AccountingDepartmentsAddRequest.md index 9d44497..7f504fa 100644 --- a/docs/models/operations/AccountingDepartmentsAddRequest.md +++ b/docs/models/operations/AccountingDepartmentsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `accountingDepartment` | [AccountingDepartmentInput](../../models/components/AccountingDepartmentInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingDepartmentsAllRequest.md b/docs/models/operations/AccountingDepartmentsAllRequest.md index cc9cd19..c59ee80 100644 --- a/docs/models/operations/AccountingDepartmentsAllRequest.md +++ b/docs/models/operations/AccountingDepartmentsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingDepartmentsDeleteRequest.md b/docs/models/operations/AccountingDepartmentsDeleteRequest.md index 5f1a090..56a375a 100644 --- a/docs/models/operations/AccountingDepartmentsDeleteRequest.md +++ b/docs/models/operations/AccountingDepartmentsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingDepartmentsOneRequest.md b/docs/models/operations/AccountingDepartmentsOneRequest.md index f360bf9..5fc7759 100644 --- a/docs/models/operations/AccountingDepartmentsOneRequest.md +++ b/docs/models/operations/AccountingDepartmentsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingDepartmentsUpdateRequest.md b/docs/models/operations/AccountingDepartmentsUpdateRequest.md index 8fefc67..c7f9db6 100644 --- a/docs/models/operations/AccountingDepartmentsUpdateRequest.md +++ b/docs/models/operations/AccountingDepartmentsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingExpensesAddRequest.md b/docs/models/operations/AccountingExpensesAddRequest.md index c42086b..f4c42ea 100644 --- a/docs/models/operations/AccountingExpensesAddRequest.md +++ b/docs/models/operations/AccountingExpensesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `expense` | [ExpenseInput](../../models/components/ExpenseInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingExpensesAllRequest.md b/docs/models/operations/AccountingExpensesAllRequest.md index 4ebc8df..42f3598 100644 --- a/docs/models/operations/AccountingExpensesAllRequest.md +++ b/docs/models/operations/AccountingExpensesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingExpensesDeleteRequest.md b/docs/models/operations/AccountingExpensesDeleteRequest.md index de38ec2..33fb168 100644 --- a/docs/models/operations/AccountingExpensesDeleteRequest.md +++ b/docs/models/operations/AccountingExpensesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingExpensesOneRequest.md b/docs/models/operations/AccountingExpensesOneRequest.md index 7176cfe..8c65720 100644 --- a/docs/models/operations/AccountingExpensesOneRequest.md +++ b/docs/models/operations/AccountingExpensesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingExpensesUpdateRequest.md b/docs/models/operations/AccountingExpensesUpdateRequest.md index 67ad4a6..580c3d0 100644 --- a/docs/models/operations/AccountingExpensesUpdateRequest.md +++ b/docs/models/operations/AccountingExpensesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingInvoiceItemsAddRequest.md b/docs/models/operations/AccountingInvoiceItemsAddRequest.md index f5d1d7a..fdc4d73 100644 --- a/docs/models/operations/AccountingInvoiceItemsAddRequest.md +++ b/docs/models/operations/AccountingInvoiceItemsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `invoiceItem` | [InvoiceItemInput](../../models/components/InvoiceItemInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingInvoiceItemsAllRequest.md b/docs/models/operations/AccountingInvoiceItemsAllRequest.md index 2e5e69a..5c8147d 100644 --- a/docs/models/operations/AccountingInvoiceItemsAllRequest.md +++ b/docs/models/operations/AccountingInvoiceItemsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingInvoiceItemsDeleteRequest.md b/docs/models/operations/AccountingInvoiceItemsDeleteRequest.md index ca37745..a36b87f 100644 --- a/docs/models/operations/AccountingInvoiceItemsDeleteRequest.md +++ b/docs/models/operations/AccountingInvoiceItemsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingInvoiceItemsOneRequest.md b/docs/models/operations/AccountingInvoiceItemsOneRequest.md index 4692276..fe6031d 100644 --- a/docs/models/operations/AccountingInvoiceItemsOneRequest.md +++ b/docs/models/operations/AccountingInvoiceItemsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingInvoiceItemsUpdateRequest.md b/docs/models/operations/AccountingInvoiceItemsUpdateRequest.md index c76d672..1b8ba7b 100644 --- a/docs/models/operations/AccountingInvoiceItemsUpdateRequest.md +++ b/docs/models/operations/AccountingInvoiceItemsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingInvoicesAddRequest.md b/docs/models/operations/AccountingInvoicesAddRequest.md index 5742661..80a8045 100644 --- a/docs/models/operations/AccountingInvoicesAddRequest.md +++ b/docs/models/operations/AccountingInvoicesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `invoice` | [InvoiceInput](../../models/components/InvoiceInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingInvoicesAllRequest.md b/docs/models/operations/AccountingInvoicesAllRequest.md index 2a1a6f5..fa36a18 100644 --- a/docs/models/operations/AccountingInvoicesAllRequest.md +++ b/docs/models/operations/AccountingInvoicesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingInvoicesDeleteRequest.md b/docs/models/operations/AccountingInvoicesDeleteRequest.md index 99104a7..7af5355 100644 --- a/docs/models/operations/AccountingInvoicesDeleteRequest.md +++ b/docs/models/operations/AccountingInvoicesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingInvoicesOneRequest.md b/docs/models/operations/AccountingInvoicesOneRequest.md index 24843fb..a13d12c 100644 --- a/docs/models/operations/AccountingInvoicesOneRequest.md +++ b/docs/models/operations/AccountingInvoicesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingInvoicesUpdateRequest.md b/docs/models/operations/AccountingInvoicesUpdateRequest.md index 6538b5f..ea2db63 100644 --- a/docs/models/operations/AccountingInvoicesUpdateRequest.md +++ b/docs/models/operations/AccountingInvoicesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingJournalEntriesAddRequest.md b/docs/models/operations/AccountingJournalEntriesAddRequest.md index addab31..0f931ba 100644 --- a/docs/models/operations/AccountingJournalEntriesAddRequest.md +++ b/docs/models/operations/AccountingJournalEntriesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `journalEntry` | [JournalEntryInput](../../models/components/JournalEntryInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingJournalEntriesAllRequest.md b/docs/models/operations/AccountingJournalEntriesAllRequest.md index a8b1c56..8245121 100644 --- a/docs/models/operations/AccountingJournalEntriesAllRequest.md +++ b/docs/models/operations/AccountingJournalEntriesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingJournalEntriesDeleteRequest.md b/docs/models/operations/AccountingJournalEntriesDeleteRequest.md index 6758b7e..65b75de 100644 --- a/docs/models/operations/AccountingJournalEntriesDeleteRequest.md +++ b/docs/models/operations/AccountingJournalEntriesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingJournalEntriesOneRequest.md b/docs/models/operations/AccountingJournalEntriesOneRequest.md index fd59c77..3c8dd83 100644 --- a/docs/models/operations/AccountingJournalEntriesOneRequest.md +++ b/docs/models/operations/AccountingJournalEntriesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingJournalEntriesUpdateRequest.md b/docs/models/operations/AccountingJournalEntriesUpdateRequest.md index 5689d80..4e4150a 100644 --- a/docs/models/operations/AccountingJournalEntriesUpdateRequest.md +++ b/docs/models/operations/AccountingJournalEntriesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingLedgerAccountsAddRequest.md b/docs/models/operations/AccountingLedgerAccountsAddRequest.md index d5332b2..30d0007 100644 --- a/docs/models/operations/AccountingLedgerAccountsAddRequest.md +++ b/docs/models/operations/AccountingLedgerAccountsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `ledgerAccount` | [LedgerAccountInput](../../models/components/LedgerAccountInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingLedgerAccountsAllRequest.md b/docs/models/operations/AccountingLedgerAccountsAllRequest.md index 34ae1c1..c2e85b9 100644 --- a/docs/models/operations/AccountingLedgerAccountsAllRequest.md +++ b/docs/models/operations/AccountingLedgerAccountsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingLedgerAccountsDeleteRequest.md b/docs/models/operations/AccountingLedgerAccountsDeleteRequest.md index 50ecaa9..cb36a6f 100644 --- a/docs/models/operations/AccountingLedgerAccountsDeleteRequest.md +++ b/docs/models/operations/AccountingLedgerAccountsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingLedgerAccountsOneRequest.md b/docs/models/operations/AccountingLedgerAccountsOneRequest.md index 9d1611f..167be85 100644 --- a/docs/models/operations/AccountingLedgerAccountsOneRequest.md +++ b/docs/models/operations/AccountingLedgerAccountsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingLedgerAccountsUpdateRequest.md b/docs/models/operations/AccountingLedgerAccountsUpdateRequest.md index 7143d8c..98f4898 100644 --- a/docs/models/operations/AccountingLedgerAccountsUpdateRequest.md +++ b/docs/models/operations/AccountingLedgerAccountsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingLocationsAddRequest.md b/docs/models/operations/AccountingLocationsAddRequest.md index 083a85d..37ade47 100644 --- a/docs/models/operations/AccountingLocationsAddRequest.md +++ b/docs/models/operations/AccountingLocationsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `accountingLocation` | [AccountingLocationInput](../../models/components/AccountingLocationInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingLocationsAllRequest.md b/docs/models/operations/AccountingLocationsAllRequest.md index d8e41a9..a2ab352 100644 --- a/docs/models/operations/AccountingLocationsAllRequest.md +++ b/docs/models/operations/AccountingLocationsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingLocationsDeleteRequest.md b/docs/models/operations/AccountingLocationsDeleteRequest.md index f9cc529..3b778a6 100644 --- a/docs/models/operations/AccountingLocationsDeleteRequest.md +++ b/docs/models/operations/AccountingLocationsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingLocationsOneRequest.md b/docs/models/operations/AccountingLocationsOneRequest.md index d9648e2..108f3ff 100644 --- a/docs/models/operations/AccountingLocationsOneRequest.md +++ b/docs/models/operations/AccountingLocationsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingLocationsUpdateRequest.md b/docs/models/operations/AccountingLocationsUpdateRequest.md index 724cf71..d626299 100644 --- a/docs/models/operations/AccountingLocationsUpdateRequest.md +++ b/docs/models/operations/AccountingLocationsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingPaymentsAddRequest.md b/docs/models/operations/AccountingPaymentsAddRequest.md index cd1ff6f..bd07ab7 100644 --- a/docs/models/operations/AccountingPaymentsAddRequest.md +++ b/docs/models/operations/AccountingPaymentsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `payment` | [PaymentInput](../../models/components/PaymentInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingPaymentsAllRequest.md b/docs/models/operations/AccountingPaymentsAllRequest.md index 7368ac4..14909f1 100644 --- a/docs/models/operations/AccountingPaymentsAllRequest.md +++ b/docs/models/operations/AccountingPaymentsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingPaymentsDeleteRequest.md b/docs/models/operations/AccountingPaymentsDeleteRequest.md index 2196c4f..a63defb 100644 --- a/docs/models/operations/AccountingPaymentsDeleteRequest.md +++ b/docs/models/operations/AccountingPaymentsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingPaymentsOneRequest.md b/docs/models/operations/AccountingPaymentsOneRequest.md index 39943ad..b6bc467 100644 --- a/docs/models/operations/AccountingPaymentsOneRequest.md +++ b/docs/models/operations/AccountingPaymentsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingPaymentsUpdateRequest.md b/docs/models/operations/AccountingPaymentsUpdateRequest.md index 825f5c3..dc4ee5b 100644 --- a/docs/models/operations/AccountingPaymentsUpdateRequest.md +++ b/docs/models/operations/AccountingPaymentsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingProfitAndLossOneRequest.md b/docs/models/operations/AccountingProfitAndLossOneRequest.md index 1f6b7fc..d2e0cd8 100644 --- a/docs/models/operations/AccountingProfitAndLossOneRequest.md +++ b/docs/models/operations/AccountingProfitAndLossOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `filter` | [Optional\](../../models/components/ProfitAndLossFilter.md) | :heavy_minus_sign: | Apply filters | {
"customer_id": "123abc",
"start_date": "2021-01-01",
"end_date": "2021-12-31"
} | diff --git a/docs/models/operations/AccountingPurchaseOrdersAddRequest.md b/docs/models/operations/AccountingPurchaseOrdersAddRequest.md index e2a7480..752c38d 100644 --- a/docs/models/operations/AccountingPurchaseOrdersAddRequest.md +++ b/docs/models/operations/AccountingPurchaseOrdersAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `purchaseOrder` | [PurchaseOrderInput](../../models/components/PurchaseOrderInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingPurchaseOrdersAllRequest.md b/docs/models/operations/AccountingPurchaseOrdersAllRequest.md index 4854ec9..390f9e7 100644 --- a/docs/models/operations/AccountingPurchaseOrdersAllRequest.md +++ b/docs/models/operations/AccountingPurchaseOrdersAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingPurchaseOrdersDeleteRequest.md b/docs/models/operations/AccountingPurchaseOrdersDeleteRequest.md index c354273..3cdac17 100644 --- a/docs/models/operations/AccountingPurchaseOrdersDeleteRequest.md +++ b/docs/models/operations/AccountingPurchaseOrdersDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingPurchaseOrdersOneRequest.md b/docs/models/operations/AccountingPurchaseOrdersOneRequest.md index 209fe6c..6223137 100644 --- a/docs/models/operations/AccountingPurchaseOrdersOneRequest.md +++ b/docs/models/operations/AccountingPurchaseOrdersOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingPurchaseOrdersUpdateRequest.md b/docs/models/operations/AccountingPurchaseOrdersUpdateRequest.md index e30ff93..5a13a63 100644 --- a/docs/models/operations/AccountingPurchaseOrdersUpdateRequest.md +++ b/docs/models/operations/AccountingPurchaseOrdersUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingSubsidiariesAddRequest.md b/docs/models/operations/AccountingSubsidiariesAddRequest.md index 9dea86e..2f45fc4 100644 --- a/docs/models/operations/AccountingSubsidiariesAddRequest.md +++ b/docs/models/operations/AccountingSubsidiariesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `subsidiary` | [SubsidiaryInput](../../models/components/SubsidiaryInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingSubsidiariesAllRequest.md b/docs/models/operations/AccountingSubsidiariesAllRequest.md index 34d1683..94edb7b 100644 --- a/docs/models/operations/AccountingSubsidiariesAllRequest.md +++ b/docs/models/operations/AccountingSubsidiariesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingSubsidiariesDeleteRequest.md b/docs/models/operations/AccountingSubsidiariesDeleteRequest.md index 5f7bacd..7d2b353 100644 --- a/docs/models/operations/AccountingSubsidiariesDeleteRequest.md +++ b/docs/models/operations/AccountingSubsidiariesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingSubsidiariesOneRequest.md b/docs/models/operations/AccountingSubsidiariesOneRequest.md index a8aef59..6fb8eb3 100644 --- a/docs/models/operations/AccountingSubsidiariesOneRequest.md +++ b/docs/models/operations/AccountingSubsidiariesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingSubsidiariesUpdateRequest.md b/docs/models/operations/AccountingSubsidiariesUpdateRequest.md index 3464fc6..84c7ec6 100644 --- a/docs/models/operations/AccountingSubsidiariesUpdateRequest.md +++ b/docs/models/operations/AccountingSubsidiariesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingSuppliersAddRequest.md b/docs/models/operations/AccountingSuppliersAddRequest.md index 835907c..34d23eb 100644 --- a/docs/models/operations/AccountingSuppliersAddRequest.md +++ b/docs/models/operations/AccountingSuppliersAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `supplier` | [SupplierInput](../../models/components/SupplierInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingSuppliersAllRequest.md b/docs/models/operations/AccountingSuppliersAllRequest.md index f599176..e56ca09 100644 --- a/docs/models/operations/AccountingSuppliersAllRequest.md +++ b/docs/models/operations/AccountingSuppliersAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingSuppliersDeleteRequest.md b/docs/models/operations/AccountingSuppliersDeleteRequest.md index f935b15..8189609 100644 --- a/docs/models/operations/AccountingSuppliersDeleteRequest.md +++ b/docs/models/operations/AccountingSuppliersDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingSuppliersOneRequest.md b/docs/models/operations/AccountingSuppliersOneRequest.md index 5e70c00..49414cc 100644 --- a/docs/models/operations/AccountingSuppliersOneRequest.md +++ b/docs/models/operations/AccountingSuppliersOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingSuppliersUpdateRequest.md b/docs/models/operations/AccountingSuppliersUpdateRequest.md index d8ff1b3..e4f5a9a 100644 --- a/docs/models/operations/AccountingSuppliersUpdateRequest.md +++ b/docs/models/operations/AccountingSuppliersUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingTaxRatesAddRequest.md b/docs/models/operations/AccountingTaxRatesAddRequest.md index 5da338e..45a87bd 100644 --- a/docs/models/operations/AccountingTaxRatesAddRequest.md +++ b/docs/models/operations/AccountingTaxRatesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `taxRate` | [TaxRateInput](../../models/components/TaxRateInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingTaxRatesAllRequest.md b/docs/models/operations/AccountingTaxRatesAllRequest.md index 856c705..fe9b85f 100644 --- a/docs/models/operations/AccountingTaxRatesAllRequest.md +++ b/docs/models/operations/AccountingTaxRatesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingTaxRatesDeleteRequest.md b/docs/models/operations/AccountingTaxRatesDeleteRequest.md index bbb4bb4..85759fd 100644 --- a/docs/models/operations/AccountingTaxRatesDeleteRequest.md +++ b/docs/models/operations/AccountingTaxRatesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingTaxRatesOneRequest.md b/docs/models/operations/AccountingTaxRatesOneRequest.md index 10594ea..c79799e 100644 --- a/docs/models/operations/AccountingTaxRatesOneRequest.md +++ b/docs/models/operations/AccountingTaxRatesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingTaxRatesUpdateRequest.md b/docs/models/operations/AccountingTaxRatesUpdateRequest.md index 3b72e5e..b29bf38 100644 --- a/docs/models/operations/AccountingTaxRatesUpdateRequest.md +++ b/docs/models/operations/AccountingTaxRatesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingTrackingCategoriesAddRequest.md b/docs/models/operations/AccountingTrackingCategoriesAddRequest.md index 39ceccc..edd9ad5 100644 --- a/docs/models/operations/AccountingTrackingCategoriesAddRequest.md +++ b/docs/models/operations/AccountingTrackingCategoriesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `trackingCategory` | [TrackingCategoryInput](../../models/components/TrackingCategoryInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AccountingTrackingCategoriesAllRequest.md b/docs/models/operations/AccountingTrackingCategoriesAllRequest.md index c1c86db..e8494ea 100644 --- a/docs/models/operations/AccountingTrackingCategoriesAllRequest.md +++ b/docs/models/operations/AccountingTrackingCategoriesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AccountingTrackingCategoriesDeleteRequest.md b/docs/models/operations/AccountingTrackingCategoriesDeleteRequest.md index 34b1856..f532c41 100644 --- a/docs/models/operations/AccountingTrackingCategoriesDeleteRequest.md +++ b/docs/models/operations/AccountingTrackingCategoriesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AccountingTrackingCategoriesOneRequest.md b/docs/models/operations/AccountingTrackingCategoriesOneRequest.md index d849220..ff8b8ff 100644 --- a/docs/models/operations/AccountingTrackingCategoriesOneRequest.md +++ b/docs/models/operations/AccountingTrackingCategoriesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AccountingTrackingCategoriesUpdateRequest.md b/docs/models/operations/AccountingTrackingCategoriesUpdateRequest.md index 68b3ca5..e71747d 100644 --- a/docs/models/operations/AccountingTrackingCategoriesUpdateRequest.md +++ b/docs/models/operations/AccountingTrackingCategoriesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AtsApplicantsAddRequest.md b/docs/models/operations/AtsApplicantsAddRequest.md index 47e72ea..8612497 100644 --- a/docs/models/operations/AtsApplicantsAddRequest.md +++ b/docs/models/operations/AtsApplicantsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `applicant` | [ApplicantInput](../../models/components/ApplicantInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AtsApplicantsAllRequest.md b/docs/models/operations/AtsApplicantsAllRequest.md index f67c05f..0a8a12c 100644 --- a/docs/models/operations/AtsApplicantsAllRequest.md +++ b/docs/models/operations/AtsApplicantsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AtsApplicantsDeleteRequest.md b/docs/models/operations/AtsApplicantsDeleteRequest.md index f683bee..a86f6fe 100644 --- a/docs/models/operations/AtsApplicantsDeleteRequest.md +++ b/docs/models/operations/AtsApplicantsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AtsApplicantsOneRequest.md b/docs/models/operations/AtsApplicantsOneRequest.md index 84acf66..2c18bf2 100644 --- a/docs/models/operations/AtsApplicantsOneRequest.md +++ b/docs/models/operations/AtsApplicantsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AtsApplicantsUpdateRequest.md b/docs/models/operations/AtsApplicantsUpdateRequest.md index e41fa45..68f2d06 100644 --- a/docs/models/operations/AtsApplicantsUpdateRequest.md +++ b/docs/models/operations/AtsApplicantsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AtsApplicationsAddRequest.md b/docs/models/operations/AtsApplicationsAddRequest.md index 093ca79..233b2cc 100644 --- a/docs/models/operations/AtsApplicationsAddRequest.md +++ b/docs/models/operations/AtsApplicationsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `application` | [ApplicationInput](../../models/components/ApplicationInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AtsApplicationsAllRequest.md b/docs/models/operations/AtsApplicationsAllRequest.md index 05bb6c7..8248a80 100644 --- a/docs/models/operations/AtsApplicationsAllRequest.md +++ b/docs/models/operations/AtsApplicationsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AtsApplicationsDeleteRequest.md b/docs/models/operations/AtsApplicationsDeleteRequest.md index 10f5cfb..2817f11 100644 --- a/docs/models/operations/AtsApplicationsDeleteRequest.md +++ b/docs/models/operations/AtsApplicationsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AtsApplicationsOneRequest.md b/docs/models/operations/AtsApplicationsOneRequest.md index 14ca930..250ddf1 100644 --- a/docs/models/operations/AtsApplicationsOneRequest.md +++ b/docs/models/operations/AtsApplicationsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/AtsApplicationsUpdateRequest.md b/docs/models/operations/AtsApplicationsUpdateRequest.md index 67e5ec4..6f14659 100644 --- a/docs/models/operations/AtsApplicationsUpdateRequest.md +++ b/docs/models/operations/AtsApplicationsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/AtsJobsAllRequest.md b/docs/models/operations/AtsJobsAllRequest.md index ccfaa8e..4ac92b9 100644 --- a/docs/models/operations/AtsJobsAllRequest.md +++ b/docs/models/operations/AtsJobsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/AtsJobsOneRequest.md b/docs/models/operations/AtsJobsOneRequest.md index 9209fa9..2ddbbab 100644 --- a/docs/models/operations/AtsJobsOneRequest.md +++ b/docs/models/operations/AtsJobsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmActivitiesAddRequest.md b/docs/models/operations/CrmActivitiesAddRequest.md index c3e11be..f4bd715 100644 --- a/docs/models/operations/CrmActivitiesAddRequest.md +++ b/docs/models/operations/CrmActivitiesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `activity` | [ActivityInput](../../models/components/ActivityInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/CrmActivitiesAllRequest.md b/docs/models/operations/CrmActivitiesAllRequest.md index 0833803..09a6575 100644 --- a/docs/models/operations/CrmActivitiesAllRequest.md +++ b/docs/models/operations/CrmActivitiesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/CrmActivitiesDeleteRequest.md b/docs/models/operations/CrmActivitiesDeleteRequest.md index dd6dfb0..e57a991 100644 --- a/docs/models/operations/CrmActivitiesDeleteRequest.md +++ b/docs/models/operations/CrmActivitiesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/CrmActivitiesOneRequest.md b/docs/models/operations/CrmActivitiesOneRequest.md index 52d3369..841118b 100644 --- a/docs/models/operations/CrmActivitiesOneRequest.md +++ b/docs/models/operations/CrmActivitiesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmActivitiesUpdateRequest.md b/docs/models/operations/CrmActivitiesUpdateRequest.md index 614df0e..42608cb 100644 --- a/docs/models/operations/CrmActivitiesUpdateRequest.md +++ b/docs/models/operations/CrmActivitiesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmCompaniesAddRequest.md b/docs/models/operations/CrmCompaniesAddRequest.md index 39d4531..b424a72 100644 --- a/docs/models/operations/CrmCompaniesAddRequest.md +++ b/docs/models/operations/CrmCompaniesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `company` | [CompanyInput](../../models/components/CompanyInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/CrmCompaniesAllRequest.md b/docs/models/operations/CrmCompaniesAllRequest.md index 70c07f1..e895dcc 100644 --- a/docs/models/operations/CrmCompaniesAllRequest.md +++ b/docs/models/operations/CrmCompaniesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/CrmCompaniesDeleteRequest.md b/docs/models/operations/CrmCompaniesDeleteRequest.md index 8bba5f7..b694f1e 100644 --- a/docs/models/operations/CrmCompaniesDeleteRequest.md +++ b/docs/models/operations/CrmCompaniesDeleteRequest.md @@ -7,6 +7,6 @@ | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | \ No newline at end of file diff --git a/docs/models/operations/CrmCompaniesOneRequest.md b/docs/models/operations/CrmCompaniesOneRequest.md index a9a9470..095ebb1 100644 --- a/docs/models/operations/CrmCompaniesOneRequest.md +++ b/docs/models/operations/CrmCompaniesOneRequest.md @@ -7,7 +7,7 @@ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/CrmCompaniesUpdateRequest.md b/docs/models/operations/CrmCompaniesUpdateRequest.md index 7850dc8..f400df8 100644 --- a/docs/models/operations/CrmCompaniesUpdateRequest.md +++ b/docs/models/operations/CrmCompaniesUpdateRequest.md @@ -7,7 +7,7 @@ | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `company` | [CompanyInput](../../models/components/CompanyInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/CrmContactsAddRequest.md b/docs/models/operations/CrmContactsAddRequest.md index 4745ff8..b7d09f6 100644 --- a/docs/models/operations/CrmContactsAddRequest.md +++ b/docs/models/operations/CrmContactsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `contact` | [ContactInput](../../models/components/ContactInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/CrmContactsAllRequest.md b/docs/models/operations/CrmContactsAllRequest.md index 91a4695..a0d6979 100644 --- a/docs/models/operations/CrmContactsAllRequest.md +++ b/docs/models/operations/CrmContactsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/CrmContactsDeleteRequest.md b/docs/models/operations/CrmContactsDeleteRequest.md index e3156cd..aa96f36 100644 --- a/docs/models/operations/CrmContactsDeleteRequest.md +++ b/docs/models/operations/CrmContactsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/CrmContactsOneRequest.md b/docs/models/operations/CrmContactsOneRequest.md index 7d5c5ef..ca77c90 100644 --- a/docs/models/operations/CrmContactsOneRequest.md +++ b/docs/models/operations/CrmContactsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmContactsUpdateRequest.md b/docs/models/operations/CrmContactsUpdateRequest.md index 407cc13..d44dfdb 100644 --- a/docs/models/operations/CrmContactsUpdateRequest.md +++ b/docs/models/operations/CrmContactsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmLeadsAddRequest.md b/docs/models/operations/CrmLeadsAddRequest.md index c81368f..3b66f6e 100644 --- a/docs/models/operations/CrmLeadsAddRequest.md +++ b/docs/models/operations/CrmLeadsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `lead` | [LeadInput](../../models/components/LeadInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/CrmLeadsAllRequest.md b/docs/models/operations/CrmLeadsAllRequest.md index d74c20a..e0bf004 100644 --- a/docs/models/operations/CrmLeadsAllRequest.md +++ b/docs/models/operations/CrmLeadsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/CrmLeadsDeleteRequest.md b/docs/models/operations/CrmLeadsDeleteRequest.md index 1f7fd9f..823bfc9 100644 --- a/docs/models/operations/CrmLeadsDeleteRequest.md +++ b/docs/models/operations/CrmLeadsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/CrmLeadsOneRequest.md b/docs/models/operations/CrmLeadsOneRequest.md index 40da0cc..34e041e 100644 --- a/docs/models/operations/CrmLeadsOneRequest.md +++ b/docs/models/operations/CrmLeadsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmLeadsUpdateRequest.md b/docs/models/operations/CrmLeadsUpdateRequest.md index 8e8e76c..29cb1d8 100644 --- a/docs/models/operations/CrmLeadsUpdateRequest.md +++ b/docs/models/operations/CrmLeadsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmNotesAddRequest.md b/docs/models/operations/CrmNotesAddRequest.md index 57cadc7..563f486 100644 --- a/docs/models/operations/CrmNotesAddRequest.md +++ b/docs/models/operations/CrmNotesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `note` | [NoteInput](../../models/components/NoteInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/CrmNotesAllRequest.md b/docs/models/operations/CrmNotesAllRequest.md index 0871511..52b9cd0 100644 --- a/docs/models/operations/CrmNotesAllRequest.md +++ b/docs/models/operations/CrmNotesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/CrmNotesDeleteRequest.md b/docs/models/operations/CrmNotesDeleteRequest.md index 74b48f9..9cdb147 100644 --- a/docs/models/operations/CrmNotesDeleteRequest.md +++ b/docs/models/operations/CrmNotesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/CrmNotesOneRequest.md b/docs/models/operations/CrmNotesOneRequest.md index e6907e0..8650f76 100644 --- a/docs/models/operations/CrmNotesOneRequest.md +++ b/docs/models/operations/CrmNotesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmNotesUpdateRequest.md b/docs/models/operations/CrmNotesUpdateRequest.md index ac444aa..eb96cc5 100644 --- a/docs/models/operations/CrmNotesUpdateRequest.md +++ b/docs/models/operations/CrmNotesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmOpportunitiesAddRequest.md b/docs/models/operations/CrmOpportunitiesAddRequest.md index ee09b5c..630898e 100644 --- a/docs/models/operations/CrmOpportunitiesAddRequest.md +++ b/docs/models/operations/CrmOpportunitiesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `opportunity` | [OpportunityInput](../../models/components/OpportunityInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/CrmOpportunitiesAllRequest.md b/docs/models/operations/CrmOpportunitiesAllRequest.md index a8222d0..12157f2 100644 --- a/docs/models/operations/CrmOpportunitiesAllRequest.md +++ b/docs/models/operations/CrmOpportunitiesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/CrmOpportunitiesDeleteRequest.md b/docs/models/operations/CrmOpportunitiesDeleteRequest.md index 2ecf2ba..510bed3 100644 --- a/docs/models/operations/CrmOpportunitiesDeleteRequest.md +++ b/docs/models/operations/CrmOpportunitiesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/CrmOpportunitiesOneRequest.md b/docs/models/operations/CrmOpportunitiesOneRequest.md index f8e374b..ea322b6 100644 --- a/docs/models/operations/CrmOpportunitiesOneRequest.md +++ b/docs/models/operations/CrmOpportunitiesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmOpportunitiesUpdateRequest.md b/docs/models/operations/CrmOpportunitiesUpdateRequest.md index 146ee56..72ab76a 100644 --- a/docs/models/operations/CrmOpportunitiesUpdateRequest.md +++ b/docs/models/operations/CrmOpportunitiesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmPipelinesAddRequest.md b/docs/models/operations/CrmPipelinesAddRequest.md index 9fab7be..40efc31 100644 --- a/docs/models/operations/CrmPipelinesAddRequest.md +++ b/docs/models/operations/CrmPipelinesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `pipeline` | [PipelineInput](../../models/components/PipelineInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/CrmPipelinesAllRequest.md b/docs/models/operations/CrmPipelinesAllRequest.md index 1d1be15..fecd85d 100644 --- a/docs/models/operations/CrmPipelinesAllRequest.md +++ b/docs/models/operations/CrmPipelinesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/CrmPipelinesDeleteRequest.md b/docs/models/operations/CrmPipelinesDeleteRequest.md index 79a4951..719c32b 100644 --- a/docs/models/operations/CrmPipelinesDeleteRequest.md +++ b/docs/models/operations/CrmPipelinesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/CrmPipelinesOneRequest.md b/docs/models/operations/CrmPipelinesOneRequest.md index 57fb8dd..bddd8c8 100644 --- a/docs/models/operations/CrmPipelinesOneRequest.md +++ b/docs/models/operations/CrmPipelinesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmPipelinesUpdateRequest.md b/docs/models/operations/CrmPipelinesUpdateRequest.md index 016ec45..5207dd2 100644 --- a/docs/models/operations/CrmPipelinesUpdateRequest.md +++ b/docs/models/operations/CrmPipelinesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmUsersAddRequest.md b/docs/models/operations/CrmUsersAddRequest.md index e4111bb..a753543 100644 --- a/docs/models/operations/CrmUsersAddRequest.md +++ b/docs/models/operations/CrmUsersAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `user` | [UserInput](../../models/components/UserInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/CrmUsersAllRequest.md b/docs/models/operations/CrmUsersAllRequest.md index 7dfea25..9092a0a 100644 --- a/docs/models/operations/CrmUsersAllRequest.md +++ b/docs/models/operations/CrmUsersAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/CrmUsersDeleteRequest.md b/docs/models/operations/CrmUsersDeleteRequest.md index 37590eb..173f87d 100644 --- a/docs/models/operations/CrmUsersDeleteRequest.md +++ b/docs/models/operations/CrmUsersDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/CrmUsersOneRequest.md b/docs/models/operations/CrmUsersOneRequest.md index 133d2f8..c7db4c3 100644 --- a/docs/models/operations/CrmUsersOneRequest.md +++ b/docs/models/operations/CrmUsersOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/CrmUsersUpdateRequest.md b/docs/models/operations/CrmUsersUpdateRequest.md index e470247..747fda7 100644 --- a/docs/models/operations/CrmUsersUpdateRequest.md +++ b/docs/models/operations/CrmUsersUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/EcommerceCustomersAllRequest.md b/docs/models/operations/EcommerceCustomersAllRequest.md index 74d32b2..c82f01e 100644 --- a/docs/models/operations/EcommerceCustomersAllRequest.md +++ b/docs/models/operations/EcommerceCustomersAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/EcommerceCustomersOneRequest.md b/docs/models/operations/EcommerceCustomersOneRequest.md index 237c6f3..7abb7fd 100644 --- a/docs/models/operations/EcommerceCustomersOneRequest.md +++ b/docs/models/operations/EcommerceCustomersOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/EcommerceOrdersAllRequest.md b/docs/models/operations/EcommerceOrdersAllRequest.md index 408609d..f485893 100644 --- a/docs/models/operations/EcommerceOrdersAllRequest.md +++ b/docs/models/operations/EcommerceOrdersAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/EcommerceOrdersOneRequest.md b/docs/models/operations/EcommerceOrdersOneRequest.md index 65b8982..6070df5 100644 --- a/docs/models/operations/EcommerceOrdersOneRequest.md +++ b/docs/models/operations/EcommerceOrdersOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/EcommerceProductsAllRequest.md b/docs/models/operations/EcommerceProductsAllRequest.md index 3c0bff1..59c3f57 100644 --- a/docs/models/operations/EcommerceProductsAllRequest.md +++ b/docs/models/operations/EcommerceProductsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/EcommerceProductsOneRequest.md b/docs/models/operations/EcommerceProductsOneRequest.md index 5d0b183..6bdf6e5 100644 --- a/docs/models/operations/EcommerceProductsOneRequest.md +++ b/docs/models/operations/EcommerceProductsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/EcommerceStoresOneRequest.md b/docs/models/operations/EcommerceStoresOneRequest.md index a88eece..462aeb9 100644 --- a/docs/models/operations/EcommerceStoresOneRequest.md +++ b/docs/models/operations/EcommerceStoresOneRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageDriveGroupsAddRequest.md b/docs/models/operations/FileStorageDriveGroupsAddRequest.md index 308c600..6b2c586 100644 --- a/docs/models/operations/FileStorageDriveGroupsAddRequest.md +++ b/docs/models/operations/FileStorageDriveGroupsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `driveGroup` | [DriveGroupInput](../../models/components/DriveGroupInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/FileStorageDriveGroupsAllRequest.md b/docs/models/operations/FileStorageDriveGroupsAllRequest.md index 8179c74..0e2c046 100644 --- a/docs/models/operations/FileStorageDriveGroupsAllRequest.md +++ b/docs/models/operations/FileStorageDriveGroupsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/FileStorageDriveGroupsDeleteRequest.md b/docs/models/operations/FileStorageDriveGroupsDeleteRequest.md index 07f08fd..018f2f8 100644 --- a/docs/models/operations/FileStorageDriveGroupsDeleteRequest.md +++ b/docs/models/operations/FileStorageDriveGroupsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/FileStorageDriveGroupsOneRequest.md b/docs/models/operations/FileStorageDriveGroupsOneRequest.md index abf4c1c..51b3bf8 100644 --- a/docs/models/operations/FileStorageDriveGroupsOneRequest.md +++ b/docs/models/operations/FileStorageDriveGroupsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageDriveGroupsUpdateRequest.md b/docs/models/operations/FileStorageDriveGroupsUpdateRequest.md index 46a69f1..21b3dfb 100644 --- a/docs/models/operations/FileStorageDriveGroupsUpdateRequest.md +++ b/docs/models/operations/FileStorageDriveGroupsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageDrivesAddRequest.md b/docs/models/operations/FileStorageDrivesAddRequest.md index 05f86e7..883bd8c 100644 --- a/docs/models/operations/FileStorageDrivesAddRequest.md +++ b/docs/models/operations/FileStorageDrivesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `drive` | [DriveInput](../../models/components/DriveInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/FileStorageDrivesAllRequest.md b/docs/models/operations/FileStorageDrivesAllRequest.md index 69047f5..60a1c67 100644 --- a/docs/models/operations/FileStorageDrivesAllRequest.md +++ b/docs/models/operations/FileStorageDrivesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/FileStorageDrivesDeleteRequest.md b/docs/models/operations/FileStorageDrivesDeleteRequest.md index 5fae5ae..f558b2c 100644 --- a/docs/models/operations/FileStorageDrivesDeleteRequest.md +++ b/docs/models/operations/FileStorageDrivesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/FileStorageDrivesOneRequest.md b/docs/models/operations/FileStorageDrivesOneRequest.md index 1421a95..17df55c 100644 --- a/docs/models/operations/FileStorageDrivesOneRequest.md +++ b/docs/models/operations/FileStorageDrivesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageDrivesUpdateRequest.md b/docs/models/operations/FileStorageDrivesUpdateRequest.md index 1e40ca1..23bb496 100644 --- a/docs/models/operations/FileStorageDrivesUpdateRequest.md +++ b/docs/models/operations/FileStorageDrivesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageFilesAllRequest.md b/docs/models/operations/FileStorageFilesAllRequest.md index 0bf155a..cb7ec48 100644 --- a/docs/models/operations/FileStorageFilesAllRequest.md +++ b/docs/models/operations/FileStorageFilesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/FileStorageFilesDeleteRequest.md b/docs/models/operations/FileStorageFilesDeleteRequest.md index 2706c26..f070638 100644 --- a/docs/models/operations/FileStorageFilesDeleteRequest.md +++ b/docs/models/operations/FileStorageFilesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/FileStorageFilesDownloadRequest.md b/docs/models/operations/FileStorageFilesDownloadRequest.md index 0ec122e..3798bc2 100644 --- a/docs/models/operations/FileStorageFilesDownloadRequest.md +++ b/docs/models/operations/FileStorageFilesDownloadRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/FileStorageFilesExportRequest.md b/docs/models/operations/FileStorageFilesExportRequest.md index 783643a..301bff7 100644 --- a/docs/models/operations/FileStorageFilesExportRequest.md +++ b/docs/models/operations/FileStorageFilesExportRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | diff --git a/docs/models/operations/FileStorageFilesOneRequest.md b/docs/models/operations/FileStorageFilesOneRequest.md index be02b83..6c9c6ce 100644 --- a/docs/models/operations/FileStorageFilesOneRequest.md +++ b/docs/models/operations/FileStorageFilesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageFilesSearchRequest.md b/docs/models/operations/FileStorageFilesSearchRequest.md index 179f650..ba01f35 100644 --- a/docs/models/operations/FileStorageFilesSearchRequest.md +++ b/docs/models/operations/FileStorageFilesSearchRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `passThrough` | Map\ | :heavy_minus_sign: | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | {
"search": "San Francisco"
} | diff --git a/docs/models/operations/FileStorageFilesUpdateRequest.md b/docs/models/operations/FileStorageFilesUpdateRequest.md index 12af2f4..f8a586e 100644 --- a/docs/models/operations/FileStorageFilesUpdateRequest.md +++ b/docs/models/operations/FileStorageFilesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageFoldersAddRequest.md b/docs/models/operations/FileStorageFoldersAddRequest.md index 94c837b..a14cb05 100644 --- a/docs/models/operations/FileStorageFoldersAddRequest.md +++ b/docs/models/operations/FileStorageFoldersAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | diff --git a/docs/models/operations/FileStorageFoldersCopyRequest.md b/docs/models/operations/FileStorageFoldersCopyRequest.md index ff9ff13..96f9dee 100644 --- a/docs/models/operations/FileStorageFoldersCopyRequest.md +++ b/docs/models/operations/FileStorageFoldersCopyRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageFoldersDeleteRequest.md b/docs/models/operations/FileStorageFoldersDeleteRequest.md index 6d23a5e..d3ba8b8 100644 --- a/docs/models/operations/FileStorageFoldersDeleteRequest.md +++ b/docs/models/operations/FileStorageFoldersDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/FileStorageFoldersOneRequest.md b/docs/models/operations/FileStorageFoldersOneRequest.md index 1c53cec..7d7d911 100644 --- a/docs/models/operations/FileStorageFoldersOneRequest.md +++ b/docs/models/operations/FileStorageFoldersOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageFoldersUpdateRequest.md b/docs/models/operations/FileStorageFoldersUpdateRequest.md index 441d20a..84f5bfc 100644 --- a/docs/models/operations/FileStorageFoldersUpdateRequest.md +++ b/docs/models/operations/FileStorageFoldersUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageSharedLinksAddRequest.md b/docs/models/operations/FileStorageSharedLinksAddRequest.md index 8f2cd1a..cfdb21b 100644 --- a/docs/models/operations/FileStorageSharedLinksAddRequest.md +++ b/docs/models/operations/FileStorageSharedLinksAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `sharedLink` | [SharedLinkInput](../../models/components/SharedLinkInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/FileStorageSharedLinksAllRequest.md b/docs/models/operations/FileStorageSharedLinksAllRequest.md index fe8638c..3dc5c0d 100644 --- a/docs/models/operations/FileStorageSharedLinksAllRequest.md +++ b/docs/models/operations/FileStorageSharedLinksAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/FileStorageSharedLinksDeleteRequest.md b/docs/models/operations/FileStorageSharedLinksDeleteRequest.md index c735c7a..7023159 100644 --- a/docs/models/operations/FileStorageSharedLinksDeleteRequest.md +++ b/docs/models/operations/FileStorageSharedLinksDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/FileStorageSharedLinksOneRequest.md b/docs/models/operations/FileStorageSharedLinksOneRequest.md index 492ea05..090e668 100644 --- a/docs/models/operations/FileStorageSharedLinksOneRequest.md +++ b/docs/models/operations/FileStorageSharedLinksOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageSharedLinksUpdateRequest.md b/docs/models/operations/FileStorageSharedLinksUpdateRequest.md index da127b5..400f028 100644 --- a/docs/models/operations/FileStorageSharedLinksUpdateRequest.md +++ b/docs/models/operations/FileStorageSharedLinksUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/FileStorageUploadSessionsAddRequest.md b/docs/models/operations/FileStorageUploadSessionsAddRequest.md index 4112e97..1ae64cc 100644 --- a/docs/models/operations/FileStorageUploadSessionsAddRequest.md +++ b/docs/models/operations/FileStorageUploadSessionsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `createUploadSessionRequest` | [CreateUploadSessionRequest](../../models/components/CreateUploadSessionRequest.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/FileStorageUploadSessionsDeleteRequest.md b/docs/models/operations/FileStorageUploadSessionsDeleteRequest.md index 9cb0766..7d223a2 100644 --- a/docs/models/operations/FileStorageUploadSessionsDeleteRequest.md +++ b/docs/models/operations/FileStorageUploadSessionsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/FileStorageUploadSessionsFinishRequest.md b/docs/models/operations/FileStorageUploadSessionsFinishRequest.md index c4bbf7c..a6dd361 100644 --- a/docs/models/operations/FileStorageUploadSessionsFinishRequest.md +++ b/docs/models/operations/FileStorageUploadSessionsFinishRequest.md @@ -7,7 +7,7 @@ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `digest` | *Optional\* | :heavy_minus_sign: | The RFC3230 message digest of the uploaded part. Only required for the Box connector. More information on the Box API docs [here](https://developer.box.com/reference/put-files-upload-sessions-id/#param-digest) | sha=fpRyg5eVQletdZqEKaFlqwBXJzM= | diff --git a/docs/models/operations/FileStorageUploadSessionsOneRequest.md b/docs/models/operations/FileStorageUploadSessionsOneRequest.md index bd20baf..303904a 100644 --- a/docs/models/operations/FileStorageUploadSessionsOneRequest.md +++ b/docs/models/operations/FileStorageUploadSessionsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/HrisCompaniesAddRequest.md b/docs/models/operations/HrisCompaniesAddRequest.md index 9e6acbe..59fc887 100644 --- a/docs/models/operations/HrisCompaniesAddRequest.md +++ b/docs/models/operations/HrisCompaniesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `hrisCompany` | [HrisCompanyInput](../../models/components/HrisCompanyInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/HrisCompaniesAllRequest.md b/docs/models/operations/HrisCompaniesAllRequest.md index 3f037a0..ce6c39f 100644 --- a/docs/models/operations/HrisCompaniesAllRequest.md +++ b/docs/models/operations/HrisCompaniesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/HrisCompaniesDeleteRequest.md b/docs/models/operations/HrisCompaniesDeleteRequest.md index a64a53e..515dc97 100644 --- a/docs/models/operations/HrisCompaniesDeleteRequest.md +++ b/docs/models/operations/HrisCompaniesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/HrisCompaniesOneRequest.md b/docs/models/operations/HrisCompaniesOneRequest.md index c58c82f..7ce77f2 100644 --- a/docs/models/operations/HrisCompaniesOneRequest.md +++ b/docs/models/operations/HrisCompaniesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/HrisCompaniesUpdateRequest.md b/docs/models/operations/HrisCompaniesUpdateRequest.md index c783561..db96a68 100644 --- a/docs/models/operations/HrisCompaniesUpdateRequest.md +++ b/docs/models/operations/HrisCompaniesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/HrisDepartmentsAddRequest.md b/docs/models/operations/HrisDepartmentsAddRequest.md index 9bd60e9..2ecc096 100644 --- a/docs/models/operations/HrisDepartmentsAddRequest.md +++ b/docs/models/operations/HrisDepartmentsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `department` | [DepartmentInput](../../models/components/DepartmentInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/HrisDepartmentsAllRequest.md b/docs/models/operations/HrisDepartmentsAllRequest.md index f2453a9..7d9285a 100644 --- a/docs/models/operations/HrisDepartmentsAllRequest.md +++ b/docs/models/operations/HrisDepartmentsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/HrisDepartmentsDeleteRequest.md b/docs/models/operations/HrisDepartmentsDeleteRequest.md index 3d2b416..cea9664 100644 --- a/docs/models/operations/HrisDepartmentsDeleteRequest.md +++ b/docs/models/operations/HrisDepartmentsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/HrisDepartmentsOneRequest.md b/docs/models/operations/HrisDepartmentsOneRequest.md index 31bfa2f..0afa8ea 100644 --- a/docs/models/operations/HrisDepartmentsOneRequest.md +++ b/docs/models/operations/HrisDepartmentsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/HrisDepartmentsUpdateRequest.md b/docs/models/operations/HrisDepartmentsUpdateRequest.md index abff59a..002c2ad 100644 --- a/docs/models/operations/HrisDepartmentsUpdateRequest.md +++ b/docs/models/operations/HrisDepartmentsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/HrisEmployeePayrollsAllRequest.md b/docs/models/operations/HrisEmployeePayrollsAllRequest.md index b359e80..ecaa163 100644 --- a/docs/models/operations/HrisEmployeePayrollsAllRequest.md +++ b/docs/models/operations/HrisEmployeePayrollsAllRequest.md @@ -7,7 +7,7 @@ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `employeeId` | *String* | :heavy_check_mark: | ID of the employee you are acting upon. | | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `filter` | [Optional\](../../models/components/PayrollsFilter.md) | :heavy_minus_sign: | Apply filters | {
"start_date": "2022-04-08",
"end_date": "2022-04-21"
} | diff --git a/docs/models/operations/HrisEmployeePayrollsOneRequest.md b/docs/models/operations/HrisEmployeePayrollsOneRequest.md index 27de8c3..60c34e3 100644 --- a/docs/models/operations/HrisEmployeePayrollsOneRequest.md +++ b/docs/models/operations/HrisEmployeePayrollsOneRequest.md @@ -8,7 +8,7 @@ | `payrollId` | *String* | :heavy_check_mark: | ID of the payroll you are acting upon. | | | `employeeId` | *String* | :heavy_check_mark: | ID of the employee you are acting upon. | | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/HrisEmployeeSchedulesAllRequest.md b/docs/models/operations/HrisEmployeeSchedulesAllRequest.md index 2fd4c70..1a0a39c 100644 --- a/docs/models/operations/HrisEmployeeSchedulesAllRequest.md +++ b/docs/models/operations/HrisEmployeeSchedulesAllRequest.md @@ -7,7 +7,7 @@ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `employeeId` | *String* | :heavy_check_mark: | ID of the employee you are acting upon. | | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `passThrough` | Map\ | :heavy_minus_sign: | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | {
"search": "San Francisco"
} | diff --git a/docs/models/operations/HrisEmployeesAddRequest.md b/docs/models/operations/HrisEmployeesAddRequest.md index 4501841..7291e8a 100644 --- a/docs/models/operations/HrisEmployeesAddRequest.md +++ b/docs/models/operations/HrisEmployeesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `employee` | [EmployeeInput](../../models/components/EmployeeInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/HrisEmployeesAllRequest.md b/docs/models/operations/HrisEmployeesAllRequest.md index 4e76278..7a347db 100644 --- a/docs/models/operations/HrisEmployeesAllRequest.md +++ b/docs/models/operations/HrisEmployeesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/HrisEmployeesDeleteRequest.md b/docs/models/operations/HrisEmployeesDeleteRequest.md index f0d4b7a..2c967e0 100644 --- a/docs/models/operations/HrisEmployeesDeleteRequest.md +++ b/docs/models/operations/HrisEmployeesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/HrisEmployeesOneRequest.md b/docs/models/operations/HrisEmployeesOneRequest.md index 6d6f777..f429431 100644 --- a/docs/models/operations/HrisEmployeesOneRequest.md +++ b/docs/models/operations/HrisEmployeesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/HrisEmployeesUpdateRequest.md b/docs/models/operations/HrisEmployeesUpdateRequest.md index 6893668..54e4394 100644 --- a/docs/models/operations/HrisEmployeesUpdateRequest.md +++ b/docs/models/operations/HrisEmployeesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/HrisPayrollsAllRequest.md b/docs/models/operations/HrisPayrollsAllRequest.md index 43b240e..0c517c7 100644 --- a/docs/models/operations/HrisPayrollsAllRequest.md +++ b/docs/models/operations/HrisPayrollsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `filter` | [Optional\](../../models/components/PayrollsFilter.md) | :heavy_minus_sign: | Apply filters | {
"start_date": "2022-04-08",
"end_date": "2022-04-21"
} | diff --git a/docs/models/operations/HrisPayrollsOneRequest.md b/docs/models/operations/HrisPayrollsOneRequest.md index 6d39d2e..6fe607d 100644 --- a/docs/models/operations/HrisPayrollsOneRequest.md +++ b/docs/models/operations/HrisPayrollsOneRequest.md @@ -7,7 +7,7 @@ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `payrollId` | *String* | :heavy_check_mark: | ID of the payroll you are acting upon. | | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/HrisTimeOffRequestsAddRequest.md b/docs/models/operations/HrisTimeOffRequestsAddRequest.md index 42f0dd2..6d98302 100644 --- a/docs/models/operations/HrisTimeOffRequestsAddRequest.md +++ b/docs/models/operations/HrisTimeOffRequestsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `timeOffRequest` | [TimeOffRequestInput](../../models/components/TimeOffRequestInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/HrisTimeOffRequestsAllRequest.md b/docs/models/operations/HrisTimeOffRequestsAllRequest.md index dfe048c..9b375ac 100644 --- a/docs/models/operations/HrisTimeOffRequestsAllRequest.md +++ b/docs/models/operations/HrisTimeOffRequestsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/HrisTimeOffRequestsDeleteRequest.md b/docs/models/operations/HrisTimeOffRequestsDeleteRequest.md index 722af07..d31d73a 100644 --- a/docs/models/operations/HrisTimeOffRequestsDeleteRequest.md +++ b/docs/models/operations/HrisTimeOffRequestsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/HrisTimeOffRequestsOneRequest.md b/docs/models/operations/HrisTimeOffRequestsOneRequest.md index b40df2e..58f2d01 100644 --- a/docs/models/operations/HrisTimeOffRequestsOneRequest.md +++ b/docs/models/operations/HrisTimeOffRequestsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/HrisTimeOffRequestsUpdateRequest.md b/docs/models/operations/HrisTimeOffRequestsUpdateRequest.md index 71e54f1..85b5496 100644 --- a/docs/models/operations/HrisTimeOffRequestsUpdateRequest.md +++ b/docs/models/operations/HrisTimeOffRequestsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/IssueTrackingCollectionTagsAllRequest.md b/docs/models/operations/IssueTrackingCollectionTagsAllRequest.md index 1bf051e..7ea270c 100644 --- a/docs/models/operations/IssueTrackingCollectionTagsAllRequest.md +++ b/docs/models/operations/IssueTrackingCollectionTagsAllRequest.md @@ -7,7 +7,7 @@ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `collectionId` | *String* | :heavy_check_mark: | The collection ID | apideck-io | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/IssueTrackingCollectionTicketCommentsAddRequest.md b/docs/models/operations/IssueTrackingCollectionTicketCommentsAddRequest.md index 67db0f2..6504fad 100644 --- a/docs/models/operations/IssueTrackingCollectionTicketCommentsAddRequest.md +++ b/docs/models/operations/IssueTrackingCollectionTicketCommentsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `collectionId` | *String* | :heavy_check_mark: | The collection ID | apideck-io | diff --git a/docs/models/operations/IssueTrackingCollectionTicketCommentsAllRequest.md b/docs/models/operations/IssueTrackingCollectionTicketCommentsAllRequest.md index 664a1c1..50086a9 100644 --- a/docs/models/operations/IssueTrackingCollectionTicketCommentsAllRequest.md +++ b/docs/models/operations/IssueTrackingCollectionTicketCommentsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/IssueTrackingCollectionTicketCommentsDeleteRequest.md b/docs/models/operations/IssueTrackingCollectionTicketCommentsDeleteRequest.md index 79092c8..a9fb063 100644 --- a/docs/models/operations/IssueTrackingCollectionTicketCommentsDeleteRequest.md +++ b/docs/models/operations/IssueTrackingCollectionTicketCommentsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/IssueTrackingCollectionTicketCommentsOneRequest.md b/docs/models/operations/IssueTrackingCollectionTicketCommentsOneRequest.md index b678904..d1ace9a 100644 --- a/docs/models/operations/IssueTrackingCollectionTicketCommentsOneRequest.md +++ b/docs/models/operations/IssueTrackingCollectionTicketCommentsOneRequest.md @@ -7,7 +7,7 @@ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/IssueTrackingCollectionTicketCommentsUpdateRequest.md b/docs/models/operations/IssueTrackingCollectionTicketCommentsUpdateRequest.md index 2ce91c9..3e5788d 100644 --- a/docs/models/operations/IssueTrackingCollectionTicketCommentsUpdateRequest.md +++ b/docs/models/operations/IssueTrackingCollectionTicketCommentsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/IssueTrackingCollectionTicketsAddRequest.md b/docs/models/operations/IssueTrackingCollectionTicketsAddRequest.md index c1ae13c..e48bbca 100644 --- a/docs/models/operations/IssueTrackingCollectionTicketsAddRequest.md +++ b/docs/models/operations/IssueTrackingCollectionTicketsAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `collectionId` | *String* | :heavy_check_mark: | The collection ID | apideck-io | diff --git a/docs/models/operations/IssueTrackingCollectionTicketsAllRequest.md b/docs/models/operations/IssueTrackingCollectionTicketsAllRequest.md index d87eabe..29408c3 100644 --- a/docs/models/operations/IssueTrackingCollectionTicketsAllRequest.md +++ b/docs/models/operations/IssueTrackingCollectionTicketsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/IssueTrackingCollectionTicketsDeleteRequest.md b/docs/models/operations/IssueTrackingCollectionTicketsDeleteRequest.md index b386544..b44e99c 100644 --- a/docs/models/operations/IssueTrackingCollectionTicketsDeleteRequest.md +++ b/docs/models/operations/IssueTrackingCollectionTicketsDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `ticketId` | *String* | :heavy_check_mark: | ID of the ticket you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/IssueTrackingCollectionTicketsOneRequest.md b/docs/models/operations/IssueTrackingCollectionTicketsOneRequest.md index 821372e..21b89d4 100644 --- a/docs/models/operations/IssueTrackingCollectionTicketsOneRequest.md +++ b/docs/models/operations/IssueTrackingCollectionTicketsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ticketId` | *String* | :heavy_check_mark: | ID of the ticket you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/IssueTrackingCollectionTicketsUpdateRequest.md b/docs/models/operations/IssueTrackingCollectionTicketsUpdateRequest.md index ec0d609..f8f15c6 100644 --- a/docs/models/operations/IssueTrackingCollectionTicketsUpdateRequest.md +++ b/docs/models/operations/IssueTrackingCollectionTicketsUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `ticketId` | *String* | :heavy_check_mark: | ID of the ticket you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/IssueTrackingCollectionUsersAllRequest.md b/docs/models/operations/IssueTrackingCollectionUsersAllRequest.md index a92b230..755be46 100644 --- a/docs/models/operations/IssueTrackingCollectionUsersAllRequest.md +++ b/docs/models/operations/IssueTrackingCollectionUsersAllRequest.md @@ -7,7 +7,7 @@ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `collectionId` | *String* | :heavy_check_mark: | The collection ID | apideck-io | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/IssueTrackingCollectionUsersOneRequest.md b/docs/models/operations/IssueTrackingCollectionUsersOneRequest.md index 7019cc9..c510835 100644 --- a/docs/models/operations/IssueTrackingCollectionUsersOneRequest.md +++ b/docs/models/operations/IssueTrackingCollectionUsersOneRequest.md @@ -7,7 +7,7 @@ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `collectionId` | *String* | :heavy_check_mark: | The collection ID | apideck-io | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/IssueTrackingCollectionsAllRequest.md b/docs/models/operations/IssueTrackingCollectionsAllRequest.md index 793e580..aeb13c3 100644 --- a/docs/models/operations/IssueTrackingCollectionsAllRequest.md +++ b/docs/models/operations/IssueTrackingCollectionsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/IssueTrackingCollectionsOneRequest.md b/docs/models/operations/IssueTrackingCollectionsOneRequest.md index e07489f..a675fae 100644 --- a/docs/models/operations/IssueTrackingCollectionsOneRequest.md +++ b/docs/models/operations/IssueTrackingCollectionsOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `collectionId` | *String* | :heavy_check_mark: | The collection ID | apideck-io | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/LeadLeadsAddRequest.md b/docs/models/operations/LeadLeadsAddRequest.md deleted file mode 100644 index 53e5309..0000000 --- a/docs/models/operations/LeadLeadsAddRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# LeadLeadsAddRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `lead` | [LeadInput](../../models/components/LeadInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/LeadLeadsAddResponse.md b/docs/models/operations/LeadLeadsAddResponse.md deleted file mode 100644 index aae974e..0000000 --- a/docs/models/operations/LeadLeadsAddResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# LeadLeadsAddResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createLeadResponse` | [Optional\](../../models/components/CreateLeadResponse.md) | :heavy_minus_sign: | Lead created | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/LeadLeadsAllRequest.md b/docs/models/operations/LeadLeadsAllRequest.md deleted file mode 100644 index 388cc06..0000000 --- a/docs/models/operations/LeadLeadsAllRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# LeadLeadsAllRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | -| `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `filter` | [Optional\](../../models/components/LeadsFilter.md) | :heavy_minus_sign: | Apply filters | {
"first_name": "Elon",
"last_name": "Musk",
"email": "elon@tesla.com",
"phone_number": "1234567890"
} | -| `sort` | [Optional\](../../models/components/LeadsSort.md) | :heavy_minus_sign: | Apply sorting | {
"by": "created_at",
"direction": "desc"
} | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/LeadLeadsAllResponse.md b/docs/models/operations/LeadLeadsAllResponse.md deleted file mode 100644 index 5121347..0000000 --- a/docs/models/operations/LeadLeadsAllResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# LeadLeadsAllResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getLeadsResponse` | [Optional\](../../models/components/GetLeadsResponse.md) | :heavy_minus_sign: | Leads | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/LeadLeadsDeleteRequest.md b/docs/models/operations/LeadLeadsDeleteRequest.md deleted file mode 100644 index 0bfa815..0000000 --- a/docs/models/operations/LeadLeadsDeleteRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# LeadLeadsDeleteRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/LeadLeadsDeleteResponse.md b/docs/models/operations/LeadLeadsDeleteResponse.md deleted file mode 100644 index 5d772ab..0000000 --- a/docs/models/operations/LeadLeadsDeleteResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# LeadLeadsDeleteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `deleteLeadResponse` | [Optional\](../../models/components/DeleteLeadResponse.md) | :heavy_minus_sign: | Lead deleted | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/LeadLeadsOneRequest.md b/docs/models/operations/LeadLeadsOneRequest.md deleted file mode 100644 index 872e6b4..0000000 --- a/docs/models/operations/LeadLeadsOneRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# LeadLeadsOneRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/LeadLeadsOneResponse.md b/docs/models/operations/LeadLeadsOneResponse.md deleted file mode 100644 index fc2cc92..0000000 --- a/docs/models/operations/LeadLeadsOneResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# LeadLeadsOneResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getLeadResponse` | [Optional\](../../models/components/GetLeadResponse.md) | :heavy_minus_sign: | Lead | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/LeadLeadsUpdateRequest.md b/docs/models/operations/LeadLeadsUpdateRequest.md deleted file mode 100644 index 717e36a..0000000 --- a/docs/models/operations/LeadLeadsUpdateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# LeadLeadsUpdateRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `lead` | [LeadInput](../../models/components/LeadInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/LeadLeadsUpdateResponse.md b/docs/models/operations/LeadLeadsUpdateResponse.md deleted file mode 100644 index 01a279d..0000000 --- a/docs/models/operations/LeadLeadsUpdateResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# LeadLeadsUpdateResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `updateLeadResponse` | [Optional\](../../models/components/UpdateLeadResponse.md) | :heavy_minus_sign: | Lead updated | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosItemsAddRequest.md b/docs/models/operations/PosItemsAddRequest.md deleted file mode 100644 index 1994153..0000000 --- a/docs/models/operations/PosItemsAddRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosItemsAddRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `item` | [ItemInput](../../models/components/ItemInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosItemsAddResponse.md b/docs/models/operations/PosItemsAddResponse.md deleted file mode 100644 index 71cae22..0000000 --- a/docs/models/operations/PosItemsAddResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosItemsAddResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createItemResponse` | [Optional\](../../models/components/CreateItemResponse.md) | :heavy_minus_sign: | Items | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosItemsAllRequest.md b/docs/models/operations/PosItemsAllRequest.md deleted file mode 100644 index db425d1..0000000 --- a/docs/models/operations/PosItemsAllRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# PosItemsAllRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | -| `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosItemsAllResponse.md b/docs/models/operations/PosItemsAllResponse.md deleted file mode 100644 index 2d8ab5e..0000000 --- a/docs/models/operations/PosItemsAllResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosItemsAllResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getItemsResponse` | [Optional\](../../models/components/GetItemsResponse.md) | :heavy_minus_sign: | Items | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosItemsDeleteRequest.md b/docs/models/operations/PosItemsDeleteRequest.md deleted file mode 100644 index 38401d4..0000000 --- a/docs/models/operations/PosItemsDeleteRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosItemsDeleteRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/PosItemsDeleteResponse.md b/docs/models/operations/PosItemsDeleteResponse.md deleted file mode 100644 index 5f60392..0000000 --- a/docs/models/operations/PosItemsDeleteResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosItemsDeleteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `deleteItemResponse` | [Optional\](../../models/components/DeleteItemResponse.md) | :heavy_minus_sign: | Items | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosItemsOneRequest.md b/docs/models/operations/PosItemsOneRequest.md deleted file mode 100644 index 5963ed9..0000000 --- a/docs/models/operations/PosItemsOneRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosItemsOneRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosItemsOneResponse.md b/docs/models/operations/PosItemsOneResponse.md deleted file mode 100644 index 71b5c2a..0000000 --- a/docs/models/operations/PosItemsOneResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosItemsOneResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getItemResponse` | [Optional\](../../models/components/GetItemResponse.md) | :heavy_minus_sign: | Items | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosItemsUpdateRequest.md b/docs/models/operations/PosItemsUpdateRequest.md deleted file mode 100644 index 67b55fd..0000000 --- a/docs/models/operations/PosItemsUpdateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosItemsUpdateRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `item` | [ItemInput](../../models/components/ItemInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosItemsUpdateResponse.md b/docs/models/operations/PosItemsUpdateResponse.md deleted file mode 100644 index 5ec6d3d..0000000 --- a/docs/models/operations/PosItemsUpdateResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosItemsUpdateResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `updateItemResponse` | [Optional\](../../models/components/UpdateItemResponse.md) | :heavy_minus_sign: | Items | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosLocationsAddRequest.md b/docs/models/operations/PosLocationsAddRequest.md deleted file mode 100644 index 4f8d5a4..0000000 --- a/docs/models/operations/PosLocationsAddRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosLocationsAddRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `location` | [LocationInput](../../models/components/LocationInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosLocationsAddResponse.md b/docs/models/operations/PosLocationsAddResponse.md deleted file mode 100644 index b8a44b4..0000000 --- a/docs/models/operations/PosLocationsAddResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosLocationsAddResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createLocationResponse` | [Optional\](../../models/components/CreateLocationResponse.md) | :heavy_minus_sign: | Locations | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosLocationsAllRequest.md b/docs/models/operations/PosLocationsAllRequest.md deleted file mode 100644 index 78dcc22..0000000 --- a/docs/models/operations/PosLocationsAllRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# PosLocationsAllRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | -| `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosLocationsAllResponse.md b/docs/models/operations/PosLocationsAllResponse.md deleted file mode 100644 index 3e500f0..0000000 --- a/docs/models/operations/PosLocationsAllResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosLocationsAllResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getLocationsResponse` | [Optional\](../../models/components/GetLocationsResponse.md) | :heavy_minus_sign: | Locations | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosLocationsDeleteRequest.md b/docs/models/operations/PosLocationsDeleteRequest.md deleted file mode 100644 index 9e2616c..0000000 --- a/docs/models/operations/PosLocationsDeleteRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosLocationsDeleteRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/PosLocationsDeleteResponse.md b/docs/models/operations/PosLocationsDeleteResponse.md deleted file mode 100644 index 80c9000..0000000 --- a/docs/models/operations/PosLocationsDeleteResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosLocationsDeleteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `deleteLocationResponse` | [Optional\](../../models/components/DeleteLocationResponse.md) | :heavy_minus_sign: | Locations | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosLocationsOneRequest.md b/docs/models/operations/PosLocationsOneRequest.md deleted file mode 100644 index 191e9a3..0000000 --- a/docs/models/operations/PosLocationsOneRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosLocationsOneRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosLocationsOneResponse.md b/docs/models/operations/PosLocationsOneResponse.md deleted file mode 100644 index 913fa5e..0000000 --- a/docs/models/operations/PosLocationsOneResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosLocationsOneResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getLocationResponse` | [Optional\](../../models/components/GetLocationResponse.md) | :heavy_minus_sign: | Locations | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosLocationsUpdateRequest.md b/docs/models/operations/PosLocationsUpdateRequest.md deleted file mode 100644 index a448801..0000000 --- a/docs/models/operations/PosLocationsUpdateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosLocationsUpdateRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `location` | [LocationInput](../../models/components/LocationInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosLocationsUpdateResponse.md b/docs/models/operations/PosLocationsUpdateResponse.md deleted file mode 100644 index 727e048..0000000 --- a/docs/models/operations/PosLocationsUpdateResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosLocationsUpdateResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `updateLocationResponse` | [Optional\](../../models/components/UpdateLocationResponse.md) | :heavy_minus_sign: | Locations | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosMerchantsAddRequest.md b/docs/models/operations/PosMerchantsAddRequest.md deleted file mode 100644 index 0c63fd4..0000000 --- a/docs/models/operations/PosMerchantsAddRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosMerchantsAddRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `merchant` | [MerchantInput](../../models/components/MerchantInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosMerchantsAddResponse.md b/docs/models/operations/PosMerchantsAddResponse.md deleted file mode 100644 index 623493a..0000000 --- a/docs/models/operations/PosMerchantsAddResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosMerchantsAddResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createMerchantResponse` | [Optional\](../../models/components/CreateMerchantResponse.md) | :heavy_minus_sign: | Merchants | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosMerchantsAllRequest.md b/docs/models/operations/PosMerchantsAllRequest.md deleted file mode 100644 index b33964b..0000000 --- a/docs/models/operations/PosMerchantsAllRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# PosMerchantsAllRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | -| `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosMerchantsAllResponse.md b/docs/models/operations/PosMerchantsAllResponse.md deleted file mode 100644 index b46aeac..0000000 --- a/docs/models/operations/PosMerchantsAllResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosMerchantsAllResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getMerchantsResponse` | [Optional\](../../models/components/GetMerchantsResponse.md) | :heavy_minus_sign: | Merchants | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosMerchantsDeleteRequest.md b/docs/models/operations/PosMerchantsDeleteRequest.md deleted file mode 100644 index 69f5f70..0000000 --- a/docs/models/operations/PosMerchantsDeleteRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosMerchantsDeleteRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/PosMerchantsDeleteResponse.md b/docs/models/operations/PosMerchantsDeleteResponse.md deleted file mode 100644 index b933ca6..0000000 --- a/docs/models/operations/PosMerchantsDeleteResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosMerchantsDeleteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `deleteMerchantResponse` | [Optional\](../../models/components/DeleteMerchantResponse.md) | :heavy_minus_sign: | Merchants | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosMerchantsOneRequest.md b/docs/models/operations/PosMerchantsOneRequest.md deleted file mode 100644 index f4ca454..0000000 --- a/docs/models/operations/PosMerchantsOneRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosMerchantsOneRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosMerchantsOneResponse.md b/docs/models/operations/PosMerchantsOneResponse.md deleted file mode 100644 index f519876..0000000 --- a/docs/models/operations/PosMerchantsOneResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosMerchantsOneResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getMerchantResponse` | [Optional\](../../models/components/GetMerchantResponse.md) | :heavy_minus_sign: | Merchants | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosMerchantsUpdateRequest.md b/docs/models/operations/PosMerchantsUpdateRequest.md deleted file mode 100644 index 116662c..0000000 --- a/docs/models/operations/PosMerchantsUpdateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosMerchantsUpdateRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `merchant` | [MerchantInput](../../models/components/MerchantInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosMerchantsUpdateResponse.md b/docs/models/operations/PosMerchantsUpdateResponse.md deleted file mode 100644 index 9a042a0..0000000 --- a/docs/models/operations/PosMerchantsUpdateResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosMerchantsUpdateResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `updateMerchantResponse` | [Optional\](../../models/components/UpdateMerchantResponse.md) | :heavy_minus_sign: | Merchants | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosModifierGroupsAddRequest.md b/docs/models/operations/PosModifierGroupsAddRequest.md deleted file mode 100644 index ff5dfc5..0000000 --- a/docs/models/operations/PosModifierGroupsAddRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifierGroupsAddRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `modifierGroup` | [ModifierGroupInput](../../models/components/ModifierGroupInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosModifierGroupsAddResponse.md b/docs/models/operations/PosModifierGroupsAddResponse.md deleted file mode 100644 index 5260a6b..0000000 --- a/docs/models/operations/PosModifierGroupsAddResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifierGroupsAddResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createModifierGroupResponse` | [Optional\](../../models/components/CreateModifierGroupResponse.md) | :heavy_minus_sign: | ModifierGroups | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosModifierGroupsAllRequest.md b/docs/models/operations/PosModifierGroupsAllRequest.md deleted file mode 100644 index 38996be..0000000 --- a/docs/models/operations/PosModifierGroupsAllRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# PosModifierGroupsAllRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | -| `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosModifierGroupsAllResponse.md b/docs/models/operations/PosModifierGroupsAllResponse.md deleted file mode 100644 index 5cdcf73..0000000 --- a/docs/models/operations/PosModifierGroupsAllResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifierGroupsAllResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getModifierGroupsResponse` | [Optional\](../../models/components/GetModifierGroupsResponse.md) | :heavy_minus_sign: | ModifierGroups | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosModifierGroupsDeleteRequest.md b/docs/models/operations/PosModifierGroupsDeleteRequest.md deleted file mode 100644 index 93e4e2f..0000000 --- a/docs/models/operations/PosModifierGroupsDeleteRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifierGroupsDeleteRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/PosModifierGroupsDeleteResponse.md b/docs/models/operations/PosModifierGroupsDeleteResponse.md deleted file mode 100644 index 6ec6b4e..0000000 --- a/docs/models/operations/PosModifierGroupsDeleteResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifierGroupsDeleteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `deleteModifierGroupResponse` | [Optional\](../../models/components/DeleteModifierGroupResponse.md) | :heavy_minus_sign: | ModifierGroups | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosModifierGroupsOneRequest.md b/docs/models/operations/PosModifierGroupsOneRequest.md deleted file mode 100644 index 682df0a..0000000 --- a/docs/models/operations/PosModifierGroupsOneRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosModifierGroupsOneRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosModifierGroupsOneResponse.md b/docs/models/operations/PosModifierGroupsOneResponse.md deleted file mode 100644 index 726fa2b..0000000 --- a/docs/models/operations/PosModifierGroupsOneResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifierGroupsOneResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getModifierGroupResponse` | [Optional\](../../models/components/GetModifierGroupResponse.md) | :heavy_minus_sign: | ModifierGroups | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosModifierGroupsUpdateRequest.md b/docs/models/operations/PosModifierGroupsUpdateRequest.md deleted file mode 100644 index b082dd9..0000000 --- a/docs/models/operations/PosModifierGroupsUpdateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosModifierGroupsUpdateRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `modifierGroup` | [ModifierGroupInput](../../models/components/ModifierGroupInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosModifierGroupsUpdateResponse.md b/docs/models/operations/PosModifierGroupsUpdateResponse.md deleted file mode 100644 index cc28fc3..0000000 --- a/docs/models/operations/PosModifierGroupsUpdateResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifierGroupsUpdateResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `updateModifierGroupResponse` | [Optional\](../../models/components/UpdateModifierGroupResponse.md) | :heavy_minus_sign: | ModifierGroups | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosModifiersAddRequest.md b/docs/models/operations/PosModifiersAddRequest.md deleted file mode 100644 index 6c4a2ea..0000000 --- a/docs/models/operations/PosModifiersAddRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifiersAddRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `modifier` | [ModifierInput](../../models/components/ModifierInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosModifiersAddResponse.md b/docs/models/operations/PosModifiersAddResponse.md deleted file mode 100644 index 527be12..0000000 --- a/docs/models/operations/PosModifiersAddResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifiersAddResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createModifierResponse` | [Optional\](../../models/components/CreateModifierResponse.md) | :heavy_minus_sign: | Modifiers | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosModifiersAllRequest.md b/docs/models/operations/PosModifiersAllRequest.md deleted file mode 100644 index 464d667..0000000 --- a/docs/models/operations/PosModifiersAllRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# PosModifiersAllRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | -| `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosModifiersAllResponse.md b/docs/models/operations/PosModifiersAllResponse.md deleted file mode 100644 index 641d838..0000000 --- a/docs/models/operations/PosModifiersAllResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifiersAllResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getModifiersResponse` | [Optional\](../../models/components/GetModifiersResponse.md) | :heavy_minus_sign: | Modifiers | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosModifiersDeleteRequest.md b/docs/models/operations/PosModifiersDeleteRequest.md deleted file mode 100644 index 448a060..0000000 --- a/docs/models/operations/PosModifiersDeleteRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosModifiersDeleteRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `filter` | [Optional\](../../models/components/ModifierGroupFilter.md) | :heavy_minus_sign: | Apply filters | {
"modifier_group_id": "1234"
} | \ No newline at end of file diff --git a/docs/models/operations/PosModifiersDeleteResponse.md b/docs/models/operations/PosModifiersDeleteResponse.md deleted file mode 100644 index edbb6b3..0000000 --- a/docs/models/operations/PosModifiersDeleteResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifiersDeleteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `deleteModifierResponse` | [Optional\](../../models/components/DeleteModifierResponse.md) | :heavy_minus_sign: | Modifiers | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosModifiersOneRequest.md b/docs/models/operations/PosModifiersOneRequest.md deleted file mode 100644 index a415c2b..0000000 --- a/docs/models/operations/PosModifiersOneRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# PosModifiersOneRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `filter` | [Optional\](../../models/components/ModifierGroupFilter.md) | :heavy_minus_sign: | Apply filters | {
"modifier_group_id": "1234"
} | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosModifiersOneResponse.md b/docs/models/operations/PosModifiersOneResponse.md deleted file mode 100644 index 9c7634e..0000000 --- a/docs/models/operations/PosModifiersOneResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifiersOneResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getModifierResponse` | [Optional\](../../models/components/GetModifierResponse.md) | :heavy_minus_sign: | Modifiers | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosModifiersUpdateRequest.md b/docs/models/operations/PosModifiersUpdateRequest.md deleted file mode 100644 index e27c74e..0000000 --- a/docs/models/operations/PosModifiersUpdateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosModifiersUpdateRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `modifier` | [ModifierInput](../../models/components/ModifierInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosModifiersUpdateResponse.md b/docs/models/operations/PosModifiersUpdateResponse.md deleted file mode 100644 index 85348e2..0000000 --- a/docs/models/operations/PosModifiersUpdateResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosModifiersUpdateResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `updateModifierResponse` | [Optional\](../../models/components/UpdateModifierResponse.md) | :heavy_minus_sign: | Modifiers | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosOrderTypesAddRequest.md b/docs/models/operations/PosOrderTypesAddRequest.md deleted file mode 100644 index 6fd3e3b..0000000 --- a/docs/models/operations/PosOrderTypesAddRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrderTypesAddRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `orderType` | [OrderTypeInput](../../models/components/OrderTypeInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosOrderTypesAddResponse.md b/docs/models/operations/PosOrderTypesAddResponse.md deleted file mode 100644 index c0786d2..0000000 --- a/docs/models/operations/PosOrderTypesAddResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrderTypesAddResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createOrderTypeResponse` | [Optional\](../../models/components/CreateOrderTypeResponse.md) | :heavy_minus_sign: | OrderTypes | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosOrderTypesAllRequest.md b/docs/models/operations/PosOrderTypesAllRequest.md deleted file mode 100644 index 925ec53..0000000 --- a/docs/models/operations/PosOrderTypesAllRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# PosOrderTypesAllRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | -| `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosOrderTypesAllResponse.md b/docs/models/operations/PosOrderTypesAllResponse.md deleted file mode 100644 index 162a922..0000000 --- a/docs/models/operations/PosOrderTypesAllResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrderTypesAllResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getOrderTypesResponse` | [Optional\](../../models/components/GetOrderTypesResponse.md) | :heavy_minus_sign: | OrderTypes | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosOrderTypesDeleteRequest.md b/docs/models/operations/PosOrderTypesDeleteRequest.md deleted file mode 100644 index 27a3a59..0000000 --- a/docs/models/operations/PosOrderTypesDeleteRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrderTypesDeleteRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/PosOrderTypesDeleteResponse.md b/docs/models/operations/PosOrderTypesDeleteResponse.md deleted file mode 100644 index c32760f..0000000 --- a/docs/models/operations/PosOrderTypesDeleteResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrderTypesDeleteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `deleteOrderTypeResponse` | [Optional\](../../models/components/DeleteOrderTypeResponse.md) | :heavy_minus_sign: | OrderTypes | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosOrderTypesOneRequest.md b/docs/models/operations/PosOrderTypesOneRequest.md deleted file mode 100644 index 7360caa..0000000 --- a/docs/models/operations/PosOrderTypesOneRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosOrderTypesOneRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosOrderTypesOneResponse.md b/docs/models/operations/PosOrderTypesOneResponse.md deleted file mode 100644 index 8404101..0000000 --- a/docs/models/operations/PosOrderTypesOneResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrderTypesOneResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getOrderTypeResponse` | [Optional\](../../models/components/GetOrderTypeResponse.md) | :heavy_minus_sign: | OrderTypes | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosOrderTypesUpdateRequest.md b/docs/models/operations/PosOrderTypesUpdateRequest.md deleted file mode 100644 index 926d8e9..0000000 --- a/docs/models/operations/PosOrderTypesUpdateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosOrderTypesUpdateRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `orderType` | [OrderTypeInput](../../models/components/OrderTypeInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosOrderTypesUpdateResponse.md b/docs/models/operations/PosOrderTypesUpdateResponse.md deleted file mode 100644 index 171be7f..0000000 --- a/docs/models/operations/PosOrderTypesUpdateResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrderTypesUpdateResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `updateOrderTypeResponse` | [Optional\](../../models/components/UpdateOrderTypeResponse.md) | :heavy_minus_sign: | OrderTypes | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersAddRequest.md b/docs/models/operations/PosOrdersAddRequest.md deleted file mode 100644 index bf16e0a..0000000 --- a/docs/models/operations/PosOrdersAddRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrdersAddRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `order` | [OrderInput](../../models/components/OrderInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersAddResponse.md b/docs/models/operations/PosOrdersAddResponse.md deleted file mode 100644 index 93a01d8..0000000 --- a/docs/models/operations/PosOrdersAddResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrdersAddResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createOrderResponse` | [Optional\](../../models/components/CreateOrderResponse.md) | :heavy_minus_sign: | Orders | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersAllRequest.md b/docs/models/operations/PosOrdersAllRequest.md deleted file mode 100644 index 4e0ff5b..0000000 --- a/docs/models/operations/PosOrdersAllRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# PosOrdersAllRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | -| `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `locationId` | *Optional\* | :heavy_minus_sign: | ID of the location. | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersAllResponse.md b/docs/models/operations/PosOrdersAllResponse.md deleted file mode 100644 index 7243db3..0000000 --- a/docs/models/operations/PosOrdersAllResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrdersAllResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getOrdersResponse` | [Optional\](../../models/components/GetOrdersResponse.md) | :heavy_minus_sign: | Orders | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersDeleteRequest.md b/docs/models/operations/PosOrdersDeleteRequest.md deleted file mode 100644 index 0945bc5..0000000 --- a/docs/models/operations/PosOrdersDeleteRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrdersDeleteRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersDeleteResponse.md b/docs/models/operations/PosOrdersDeleteResponse.md deleted file mode 100644 index e893ec9..0000000 --- a/docs/models/operations/PosOrdersDeleteResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrdersDeleteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `deleteOrderResponse` | [Optional\](../../models/components/DeleteOrderResponse.md) | :heavy_minus_sign: | Orders | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersOneRequest.md b/docs/models/operations/PosOrdersOneRequest.md deleted file mode 100644 index 1ed5882..0000000 --- a/docs/models/operations/PosOrdersOneRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosOrdersOneRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersOneResponse.md b/docs/models/operations/PosOrdersOneResponse.md deleted file mode 100644 index af2e1c3..0000000 --- a/docs/models/operations/PosOrdersOneResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrdersOneResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getOrderResponse` | [Optional\](../../models/components/GetOrderResponse.md) | :heavy_minus_sign: | Orders | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersPayRequest.md b/docs/models/operations/PosOrdersPayRequest.md deleted file mode 100644 index 76342ab..0000000 --- a/docs/models/operations/PosOrdersPayRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# PosOrdersPayRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | -| `order` | [OrderInput](../../models/components/OrderInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersPayResponse.md b/docs/models/operations/PosOrdersPayResponse.md deleted file mode 100644 index 674456f..0000000 --- a/docs/models/operations/PosOrdersPayResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrdersPayResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createOrderResponse` | [Optional\](../../models/components/CreateOrderResponse.md) | :heavy_minus_sign: | Orders | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersUpdateRequest.md b/docs/models/operations/PosOrdersUpdateRequest.md deleted file mode 100644 index 8041cd1..0000000 --- a/docs/models/operations/PosOrdersUpdateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosOrdersUpdateRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `order` | [OrderInput](../../models/components/OrderInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosOrdersUpdateResponse.md b/docs/models/operations/PosOrdersUpdateResponse.md deleted file mode 100644 index 76f37bc..0000000 --- a/docs/models/operations/PosOrdersUpdateResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosOrdersUpdateResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `updateOrderResponse` | [Optional\](../../models/components/UpdateOrderResponse.md) | :heavy_minus_sign: | Orders | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosPaymentsAddRequest.md b/docs/models/operations/PosPaymentsAddRequest.md deleted file mode 100644 index 3b77cac..0000000 --- a/docs/models/operations/PosPaymentsAddRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosPaymentsAddRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `posPayment` | [PosPaymentInput](../../models/components/PosPaymentInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosPaymentsAddResponse.md b/docs/models/operations/PosPaymentsAddResponse.md deleted file mode 100644 index fe43af7..0000000 --- a/docs/models/operations/PosPaymentsAddResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosPaymentsAddResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createPosPaymentResponse` | [Optional\](../../models/components/CreatePosPaymentResponse.md) | :heavy_minus_sign: | PosPayments | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosPaymentsAllRequest.md b/docs/models/operations/PosPaymentsAllRequest.md deleted file mode 100644 index 1afbf1c..0000000 --- a/docs/models/operations/PosPaymentsAllRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# PosPaymentsAllRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | -| `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosPaymentsAllResponse.md b/docs/models/operations/PosPaymentsAllResponse.md deleted file mode 100644 index fba0220..0000000 --- a/docs/models/operations/PosPaymentsAllResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosPaymentsAllResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getPosPaymentsResponse` | [Optional\](../../models/components/GetPosPaymentsResponse.md) | :heavy_minus_sign: | PosPayments | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosPaymentsDeleteRequest.md b/docs/models/operations/PosPaymentsDeleteRequest.md deleted file mode 100644 index 743e019..0000000 --- a/docs/models/operations/PosPaymentsDeleteRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosPaymentsDeleteRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/PosPaymentsDeleteResponse.md b/docs/models/operations/PosPaymentsDeleteResponse.md deleted file mode 100644 index 827f18c..0000000 --- a/docs/models/operations/PosPaymentsDeleteResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosPaymentsDeleteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `deletePosPaymentResponse` | [Optional\](../../models/components/DeletePosPaymentResponse.md) | :heavy_minus_sign: | PosPayments | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosPaymentsOneRequest.md b/docs/models/operations/PosPaymentsOneRequest.md deleted file mode 100644 index 5dd9f1e..0000000 --- a/docs/models/operations/PosPaymentsOneRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosPaymentsOneRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosPaymentsOneResponse.md b/docs/models/operations/PosPaymentsOneResponse.md deleted file mode 100644 index 721f2f9..0000000 --- a/docs/models/operations/PosPaymentsOneResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosPaymentsOneResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getPosPaymentResponse` | [Optional\](../../models/components/GetPosPaymentResponse.md) | :heavy_minus_sign: | PosPayments | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosPaymentsUpdateRequest.md b/docs/models/operations/PosPaymentsUpdateRequest.md deleted file mode 100644 index d05066a..0000000 --- a/docs/models/operations/PosPaymentsUpdateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosPaymentsUpdateRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `posPayment` | [PosPaymentInput](../../models/components/PosPaymentInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosPaymentsUpdateResponse.md b/docs/models/operations/PosPaymentsUpdateResponse.md deleted file mode 100644 index 09a56a0..0000000 --- a/docs/models/operations/PosPaymentsUpdateResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosPaymentsUpdateResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `updatePosPaymentResponse` | [Optional\](../../models/components/UpdatePosPaymentResponse.md) | :heavy_minus_sign: | PosPayments | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosTendersAddRequest.md b/docs/models/operations/PosTendersAddRequest.md deleted file mode 100644 index b04499b..0000000 --- a/docs/models/operations/PosTendersAddRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosTendersAddRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `tender` | [TenderInput](../../models/components/TenderInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosTendersAddResponse.md b/docs/models/operations/PosTendersAddResponse.md deleted file mode 100644 index ec53351..0000000 --- a/docs/models/operations/PosTendersAddResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosTendersAddResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createTenderResponse` | [Optional\](../../models/components/CreateTenderResponse.md) | :heavy_minus_sign: | Tenders | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosTendersAllRequest.md b/docs/models/operations/PosTendersAllRequest.md deleted file mode 100644 index e73cd7f..0000000 --- a/docs/models/operations/PosTendersAllRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# PosTendersAllRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | -| `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosTendersAllResponse.md b/docs/models/operations/PosTendersAllResponse.md deleted file mode 100644 index 5e76f92..0000000 --- a/docs/models/operations/PosTendersAllResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosTendersAllResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getTendersResponse` | [Optional\](../../models/components/GetTendersResponse.md) | :heavy_minus_sign: | Tenders | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosTendersDeleteRequest.md b/docs/models/operations/PosTendersDeleteRequest.md deleted file mode 100644 index 60cdd37..0000000 --- a/docs/models/operations/PosTendersDeleteRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosTendersDeleteRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/PosTendersDeleteResponse.md b/docs/models/operations/PosTendersDeleteResponse.md deleted file mode 100644 index b74e881..0000000 --- a/docs/models/operations/PosTendersDeleteResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosTendersDeleteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `deleteTenderResponse` | [Optional\](../../models/components/DeleteTenderResponse.md) | :heavy_minus_sign: | Tenders | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosTendersOneRequest.md b/docs/models/operations/PosTendersOneRequest.md deleted file mode 100644 index b5aa670..0000000 --- a/docs/models/operations/PosTendersOneRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosTendersOneRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/PosTendersOneResponse.md b/docs/models/operations/PosTendersOneResponse.md deleted file mode 100644 index dff3735..0000000 --- a/docs/models/operations/PosTendersOneResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosTendersOneResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getTenderResponse` | [Optional\](../../models/components/GetTenderResponse.md) | :heavy_minus_sign: | Tenders | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/PosTendersUpdateRequest.md b/docs/models/operations/PosTendersUpdateRequest.md deleted file mode 100644 index ad68d47..0000000 --- a/docs/models/operations/PosTendersUpdateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PosTendersUpdateRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `tender` | [TenderInput](../../models/components/TenderInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PosTendersUpdateResponse.md b/docs/models/operations/PosTendersUpdateResponse.md deleted file mode 100644 index d1e6bb6..0000000 --- a/docs/models/operations/PosTendersUpdateResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# PosTendersUpdateResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `updateTenderResponse` | [Optional\](../../models/components/UpdateTenderResponse.md) | :heavy_minus_sign: | Tenders | -| `unexpectedErrorResponse` | [Optional\](../../models/components/UnexpectedErrorResponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/SmsMessagesAddRequest.md b/docs/models/operations/SmsMessagesAddRequest.md index 555f7d4..dc9fb38 100644 --- a/docs/models/operations/SmsMessagesAddRequest.md +++ b/docs/models/operations/SmsMessagesAddRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `message` | [MessageInput](../../models/components/MessageInput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/SmsMessagesAllRequest.md b/docs/models/operations/SmsMessagesAllRequest.md index f1922d0..3e094b8 100644 --- a/docs/models/operations/SmsMessagesAllRequest.md +++ b/docs/models/operations/SmsMessagesAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | diff --git a/docs/models/operations/SmsMessagesDeleteRequest.md b/docs/models/operations/SmsMessagesDeleteRequest.md index 048ff38..732e813 100644 --- a/docs/models/operations/SmsMessagesDeleteRequest.md +++ b/docs/models/operations/SmsMessagesDeleteRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/SmsMessagesOneRequest.md b/docs/models/operations/SmsMessagesOneRequest.md index b197801..07c279c 100644 --- a/docs/models/operations/SmsMessagesOneRequest.md +++ b/docs/models/operations/SmsMessagesOneRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/SmsMessagesUpdateRequest.md b/docs/models/operations/SmsMessagesUpdateRequest.md index 9d4642e..924f379 100644 --- a/docs/models/operations/SmsMessagesUpdateRequest.md +++ b/docs/models/operations/SmsMessagesUpdateRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | ID of the record you are acting upon. | | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *Optional\* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional\* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | diff --git a/docs/models/operations/VaultConnectionCustomMappingsAllRequest.md b/docs/models/operations/VaultConnectionCustomMappingsAllRequest.md index 004847e..91b84a9 100644 --- a/docs/models/operations/VaultConnectionCustomMappingsAllRequest.md +++ b/docs/models/operations/VaultConnectionCustomMappingsAllRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | diff --git a/docs/models/operations/VaultConnectionSettingsAllRequest.md b/docs/models/operations/VaultConnectionSettingsAllRequest.md index 0b5e15d..e3fc13a 100644 --- a/docs/models/operations/VaultConnectionSettingsAllRequest.md +++ b/docs/models/operations/VaultConnectionSettingsAllRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | diff --git a/docs/models/operations/VaultConnectionSettingsUpdateRequest.md b/docs/models/operations/VaultConnectionSettingsUpdateRequest.md index 0d136a9..3ccbe9b 100644 --- a/docs/models/operations/VaultConnectionSettingsUpdateRequest.md +++ b/docs/models/operations/VaultConnectionSettingsUpdateRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | diff --git a/docs/models/operations/VaultConnectionsAllRequest.md b/docs/models/operations/VaultConnectionsAllRequest.md index 9aadfed..e870804 100644 --- a/docs/models/operations/VaultConnectionsAllRequest.md +++ b/docs/models/operations/VaultConnectionsAllRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `api` | *Optional\* | :heavy_minus_sign: | Scope results to Unified API | crm | | `configured` | *Optional\* | :heavy_minus_sign: | Scopes results to connections that have been configured or not | true | \ No newline at end of file diff --git a/docs/models/operations/VaultConnectionsDeleteRequest.md b/docs/models/operations/VaultConnectionsDeleteRequest.md index 046de43..0d3b256 100644 --- a/docs/models/operations/VaultConnectionsDeleteRequest.md +++ b/docs/models/operations/VaultConnectionsDeleteRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | \ No newline at end of file diff --git a/docs/models/operations/VaultConnectionsImportRequest.md b/docs/models/operations/VaultConnectionsImportRequest.md index 90f95ed..0d97252 100644 --- a/docs/models/operations/VaultConnectionsImportRequest.md +++ b/docs/models/operations/VaultConnectionsImportRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | diff --git a/docs/models/operations/VaultConnectionsOneRequest.md b/docs/models/operations/VaultConnectionsOneRequest.md index 41eb00d..d3509ba 100644 --- a/docs/models/operations/VaultConnectionsOneRequest.md +++ b/docs/models/operations/VaultConnectionsOneRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | \ No newline at end of file diff --git a/docs/models/operations/VaultConnectionsTokenRequest.md b/docs/models/operations/VaultConnectionsTokenRequest.md index b6cf35e..087c4a2 100644 --- a/docs/models/operations/VaultConnectionsTokenRequest.md +++ b/docs/models/operations/VaultConnectionsTokenRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | diff --git a/docs/models/operations/VaultConnectionsUpdateRequest.md b/docs/models/operations/VaultConnectionsUpdateRequest.md index e1611aa..1009573 100644 --- a/docs/models/operations/VaultConnectionsUpdateRequest.md +++ b/docs/models/operations/VaultConnectionsUpdateRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | diff --git a/docs/models/operations/VaultCreateCallbackStateRequest.md b/docs/models/operations/VaultCreateCallbackStateRequest.md index 3fc6100..4c864c9 100644 --- a/docs/models/operations/VaultCreateCallbackStateRequest.md +++ b/docs/models/operations/VaultCreateCallbackStateRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | diff --git a/docs/models/operations/VaultCustomFieldsAllRequest.md b/docs/models/operations/VaultCustomFieldsAllRequest.md index 8f9f6cf..b60ccaa 100644 --- a/docs/models/operations/VaultCustomFieldsAllRequest.md +++ b/docs/models/operations/VaultCustomFieldsAllRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | diff --git a/docs/models/operations/VaultCustomMappingsAllRequest.md b/docs/models/operations/VaultCustomMappingsAllRequest.md index 2a62a95..770e4cb 100644 --- a/docs/models/operations/VaultCustomMappingsAllRequest.md +++ b/docs/models/operations/VaultCustomMappingsAllRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | \ No newline at end of file diff --git a/docs/models/operations/VaultLogsAllRequest.md b/docs/models/operations/VaultLogsAllRequest.md index 13139a6..937f087 100644 --- a/docs/models/operations/VaultLogsAllRequest.md +++ b/docs/models/operations/VaultLogsAllRequest.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `filter` | [Optional\](../../models/components/LogsFilter.md) | :heavy_minus_sign: | Filter results | | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | | `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | \ No newline at end of file diff --git a/docs/models/operations/VaultSessionsCreateRequest.md b/docs/models/operations/VaultSessionsCreateRequest.md index d1b7b09..bd45db9 100644 --- a/docs/models/operations/VaultSessionsCreateRequest.md +++ b/docs/models/operations/VaultSessionsCreateRequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `session` | [Optional\](../../models/components/Session.md) | :heavy_minus_sign: | Additional redirect uri and/or consumer metadata | | \ No newline at end of file diff --git a/docs/models/operations/VaultValidateConnectionStateRequest.md b/docs/models/operations/VaultValidateConnectionStateRequest.md index 36278f7..b04f1bb 100644 --- a/docs/models/operations/VaultValidateConnectionStateRequest.md +++ b/docs/models/operations/VaultValidateConnectionStateRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | diff --git a/docs/sdks/accounting/README.md b/docs/sdks/accounting/README.md index 41b269c..c103b95 100644 --- a/docs/sdks/accounting/README.md +++ b/docs/sdks/accounting/README.md @@ -1,2 +1,6 @@ # Accounting -(*accounting()*) \ No newline at end of file +(*accounting()*) + +## Overview + +### Available Operations diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index 745d3f4..d4b3e55 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -42,18 +42,14 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); CrmActivitiesAllRequest req = CrmActivitiesAllRequest.builder() .serviceId("salesforce") .filter(ActivitiesFilter.builder() - .companyId("1234") - .ownerId("1234") - .contactId("1234") .updatedSince(OffsetDateTime.parse("2020-09-30T07:43:32.000Z")) - .type("Task") .build()) .sort(ActivitiesSort.builder() .by(ActivitiesSortBy.CREATED_AT) @@ -134,7 +130,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -295,7 +291,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -376,7 +372,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -540,7 +536,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/apideck/README.md b/docs/sdks/apideck/README.md index 545d010..c18f311 100644 --- a/docs/sdks/apideck/README.md +++ b/docs/sdks/apideck/README.md @@ -5,4 +5,6 @@ Apideck: The Apideck OpenAPI Spec: SDK Optimized Apideck Developer Docs - \ No newline at end of file + + +### Available Operations diff --git a/docs/sdks/apideckcompanies/README.md b/docs/sdks/apideckcompanies/README.md index 6913dea..a54252d 100644 --- a/docs/sdks/apideckcompanies/README.md +++ b/docs/sdks/apideckcompanies/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -120,7 +120,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -251,7 +251,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -333,7 +333,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -465,7 +465,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/apideckcustomers/README.md b/docs/sdks/apideckcustomers/README.md index 889076c..c753d70 100644 --- a/docs/sdks/apideckcustomers/README.md +++ b/docs/sdks/apideckcustomers/README.md @@ -35,7 +35,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -107,7 +107,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/apideckdepartments/README.md b/docs/sdks/apideckdepartments/README.md index 02fed10..6712bb5 100644 --- a/docs/sdks/apideckdepartments/README.md +++ b/docs/sdks/apideckdepartments/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -110,7 +110,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -189,7 +189,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -261,7 +261,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -341,7 +341,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/apideckleads/README.md b/docs/sdks/apideckleads/README.md deleted file mode 100644 index 7fb2aa6..0000000 --- a/docs/sdks/apideckleads/README.md +++ /dev/null @@ -1,576 +0,0 @@ -# ApideckLeads -(*lead().leads()*) - -## Overview - -### Available Operations - -* [list](#list) - List leads -* [create](#create) - Create lead -* [get](#get) - Get lead -* [update](#update) - Update lead -* [delete](#delete) - Delete lead - -## list - -List leads - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.LeadsFilter; -import com.apideck.unify.models.components.LeadsSort; -import com.apideck.unify.models.components.LeadsSortBy; -import com.apideck.unify.models.components.SortDirection; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.LeadLeadsAllRequest; -import com.apideck.unify.models.operations.LeadLeadsAllResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - LeadLeadsAllRequest req = LeadLeadsAllRequest.builder() - .serviceId("salesforce") - .filter(LeadsFilter.builder() - .name("Elon Musk") - .firstName("Elon") - .lastName("Musk") - .email("elon@tesla.com") - .phoneNumber("1234567890") - .build()) - .sort(LeadsSort.builder() - .by(LeadsSortBy.CREATED_AT) - .direction(SortDirection.DESC) - .build()) - .fields("id,updated_at") - .build(); - - LeadLeadsAllResponse res = sdk.lead().leads().list() - .request(req) - .call(); - - if (res.getLeadsResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [LeadLeadsAllRequest](../../models/operations/LeadLeadsAllRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[LeadLeadsAllResponse](../../models/operations/LeadLeadsAllResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## create - -Create lead - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Address; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.CustomField; -import com.apideck.unify.models.components.Email; -import com.apideck.unify.models.components.EmailType; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.LeadInput; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.PhoneNumber; -import com.apideck.unify.models.components.PhoneNumberType; -import com.apideck.unify.models.components.SocialLink; -import com.apideck.unify.models.components.Type; -import com.apideck.unify.models.components.Value; -import com.apideck.unify.models.components.Website; -import com.apideck.unify.models.components.WebsiteType; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.LeadLeadsAddRequest; -import com.apideck.unify.models.operations.LeadLeadsAddResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - LeadLeadsAddRequest req = LeadLeadsAddRequest.builder() - .lead(LeadInput.builder() - .name("Elon Musk") - .companyName("Spacex") - .ownerId("54321") - .ownerName("John Doe") - .companyId("2") - .leadId("2") - .leadSource("Cold Call") - .firstName("Elon") - .lastName("Musk") - .description("A thinker") - .prefix("Sir") - .title("CEO") - .language("EN") - .status("New") - .monetaryAmount(75000d) - .currency(Currency.USD) - .fax("+12129876543") - .websites(List.of( - Website.builder() - .url("http://example.com") - .id("12345") - .type(WebsiteType.PRIMARY) - .build())) - .addresses(List.of( - Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build())) - .socialLinks(List.of( - SocialLink.builder() - .url("https://www.twitter.com/apideck") - .id("12345") - .type("twitter") - .build())) - .phoneNumbers(List.of( - PhoneNumber.builder() - .number("111-111-1111") - .id("12345") - .countryCode("1") - .areaCode("323") - .extension("105") - .type(PhoneNumberType.PRIMARY) - .build())) - .emails(List.of( - Email.builder() - .email("elon@musk.com") - .id("123") - .type(EmailType.PRIMARY) - .build())) - .customFields(List.of( - CustomField.builder() - .id("2389328923893298") - .name("employee_level") - .description("Employee Level") - .value(Value.of(true)) - .build())) - .tags(List.of( - "New")) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - LeadLeadsAddResponse res = sdk.lead().leads().create() - .request(req) - .call(); - - if (res.createLeadResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [LeadLeadsAddRequest](../../models/operations/LeadLeadsAddRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[LeadLeadsAddResponse](../../models/operations/LeadLeadsAddResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## get - -Get lead - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.LeadLeadsOneRequest; -import com.apideck.unify.models.operations.LeadLeadsOneResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - LeadLeadsOneRequest req = LeadLeadsOneRequest.builder() - .id("") - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - LeadLeadsOneResponse res = sdk.lead().leads().get() - .request(req) - .call(); - - if (res.getLeadResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [LeadLeadsOneRequest](../../models/operations/LeadLeadsOneRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[LeadLeadsOneResponse](../../models/operations/LeadLeadsOneResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Update lead - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Address; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.CustomField; -import com.apideck.unify.models.components.Email; -import com.apideck.unify.models.components.EmailType; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.LeadInput; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.PhoneNumber; -import com.apideck.unify.models.components.PhoneNumberType; -import com.apideck.unify.models.components.Six; -import com.apideck.unify.models.components.SocialLink; -import com.apideck.unify.models.components.Type; -import com.apideck.unify.models.components.Value; -import com.apideck.unify.models.components.Website; -import com.apideck.unify.models.components.WebsiteType; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.LeadLeadsUpdateRequest; -import com.apideck.unify.models.operations.LeadLeadsUpdateResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - LeadLeadsUpdateRequest req = LeadLeadsUpdateRequest.builder() - .id("") - .lead(LeadInput.builder() - .name("Elon Musk") - .companyName("Spacex") - .ownerId("54321") - .ownerName("John Doe") - .companyId("2") - .leadId("2") - .leadSource("Cold Call") - .firstName("Elon") - .lastName("Musk") - .description("A thinker") - .prefix("Sir") - .title("CEO") - .language("EN") - .status("New") - .monetaryAmount(75000d) - .currency(Currency.USD) - .fax("+12129876543") - .websites(List.of( - Website.builder() - .url("http://example.com") - .id("12345") - .type(WebsiteType.PRIMARY) - .build())) - .addresses(List.of( - Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build())) - .socialLinks(List.of( - SocialLink.builder() - .url("https://www.twitter.com/apideck") - .id("12345") - .type("twitter") - .build())) - .phoneNumbers(List.of( - PhoneNumber.builder() - .number("111-111-1111") - .id("12345") - .countryCode("1") - .areaCode("323") - .extension("105") - .type(PhoneNumberType.PRIMARY) - .build())) - .emails(List.of( - Email.builder() - .email("elon@musk.com") - .id("123") - .type(EmailType.PRIMARY) - .build())) - .customFields(List.of( - CustomField.builder() - .id("2389328923893298") - .name("employee_level") - .description("Employee Level") - .value(Value.of6(List.of( - Six.builder() - .build()))) - .build())) - .tags(List.of( - "New")) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - LeadLeadsUpdateResponse res = sdk.lead().leads().update() - .request(req) - .call(); - - if (res.updateLeadResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [LeadLeadsUpdateRequest](../../models/operations/LeadLeadsUpdateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[LeadLeadsUpdateResponse](../../models/operations/LeadLeadsUpdateResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete lead - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.LeadLeadsDeleteRequest; -import com.apideck.unify.models.operations.LeadLeadsDeleteResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - LeadLeadsDeleteRequest req = LeadLeadsDeleteRequest.builder() - .id("") - .serviceId("salesforce") - .build(); - - LeadLeadsDeleteResponse res = sdk.lead().leads().delete() - .request(req) - .call(); - - if (res.deleteLeadResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [LeadLeadsDeleteRequest](../../models/operations/LeadLeadsDeleteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[LeadLeadsDeleteResponse](../../models/operations/LeadLeadsDeleteResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/apidecklocations/README.md b/docs/sdks/apidecklocations/README.md deleted file mode 100644 index c576913..0000000 --- a/docs/sdks/apidecklocations/README.md +++ /dev/null @@ -1,444 +0,0 @@ -# ApideckLocations -(*pos().locations()*) - -## Overview - -### Available Operations - -* [list](#list) - List Locations -* [create](#create) - Create Location -* [get](#get) - Get Location -* [update](#update) - Update Location -* [delete](#delete) - Delete Location - -## list - -List Locations - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosLocationsAllRequest; -import com.apideck.unify.models.operations.PosLocationsAllResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosLocationsAllRequest req = PosLocationsAllRequest.builder() - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosLocationsAllResponse res = sdk.pos().locations().list() - .request(req) - .call(); - - if (res.getLocationsResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [PosLocationsAllRequest](../../models/operations/PosLocationsAllRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosLocationsAllResponse](../../models/operations/PosLocationsAllResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## create - -Create Location - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Address; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.LocationInput; -import com.apideck.unify.models.components.LocationStatusStatus; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.Type; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosLocationsAddRequest; -import com.apideck.unify.models.operations.PosLocationsAddResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosLocationsAddRequest req = PosLocationsAddRequest.builder() - .location(LocationInput.builder() - .name("Dunkin Donuts") - .businessName("Dunkin Donuts LLC") - .address(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .status(LocationStatusStatus.ACTIVE) - .merchantId("12345") - .currency(Currency.USD) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosLocationsAddResponse res = sdk.pos().locations().create() - .request(req) - .call(); - - if (res.createLocationResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [PosLocationsAddRequest](../../models/operations/PosLocationsAddRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosLocationsAddResponse](../../models/operations/PosLocationsAddResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## get - -Get Location - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosLocationsOneRequest; -import com.apideck.unify.models.operations.PosLocationsOneResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosLocationsOneRequest req = PosLocationsOneRequest.builder() - .id("") - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosLocationsOneResponse res = sdk.pos().locations().get() - .request(req) - .call(); - - if (res.getLocationResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [PosLocationsOneRequest](../../models/operations/PosLocationsOneRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosLocationsOneResponse](../../models/operations/PosLocationsOneResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Update Location - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Address; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.LocationInput; -import com.apideck.unify.models.components.LocationStatusStatus; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.Type; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosLocationsUpdateRequest; -import com.apideck.unify.models.operations.PosLocationsUpdateResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosLocationsUpdateRequest req = PosLocationsUpdateRequest.builder() - .id("") - .location(LocationInput.builder() - .name("Dunkin Donuts") - .businessName("Dunkin Donuts LLC") - .address(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .status(LocationStatusStatus.ACTIVE) - .merchantId("12345") - .currency(Currency.USD) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosLocationsUpdateResponse res = sdk.pos().locations().update() - .request(req) - .call(); - - if (res.updateLocationResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `request` | [PosLocationsUpdateRequest](../../models/operations/PosLocationsUpdateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosLocationsUpdateResponse](../../models/operations/PosLocationsUpdateResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete Location - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosLocationsDeleteRequest; -import com.apideck.unify.models.operations.PosLocationsDeleteResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosLocationsDeleteRequest req = PosLocationsDeleteRequest.builder() - .id("") - .serviceId("salesforce") - .build(); - - PosLocationsDeleteResponse res = sdk.pos().locations().delete() - .request(req) - .call(); - - if (res.deleteLocationResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `request` | [PosLocationsDeleteRequest](../../models/operations/PosLocationsDeleteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosLocationsDeleteResponse](../../models/operations/PosLocationsDeleteResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/apideckorders/README.md b/docs/sdks/apideckorders/README.md deleted file mode 100644 index d03cf7b..0000000 --- a/docs/sdks/apideckorders/README.md +++ /dev/null @@ -1,1281 +0,0 @@ -# ApideckOrders -(*pos().orders()*) - -## Overview - -### Available Operations - -* [list](#list) - List Orders -* [create](#create) - Create Order -* [get](#get) - Get Order -* [update](#update) - Update Order -* [delete](#delete) - Delete Order -* [pay](#pay) - Pay Order - -## list - -List Orders - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrdersAllRequest; -import com.apideck.unify.models.operations.PosOrdersAllResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosOrdersAllRequest req = PosOrdersAllRequest.builder() - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosOrdersAllResponse res = sdk.pos().orders().list() - .request(req) - .call(); - - if (res.getOrdersResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [PosOrdersAllRequest](../../models/operations/PosOrdersAllRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosOrdersAllResponse](../../models/operations/PosOrdersAllResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## create - -Create Order - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Address; -import com.apideck.unify.models.components.CardEntryMethod; -import com.apideck.unify.models.components.CardStatus; -import com.apideck.unify.models.components.CardType; -import com.apideck.unify.models.components.CurbsidePickupDetails; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.Customers; -import com.apideck.unify.models.components.Email; -import com.apideck.unify.models.components.EmailType; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.OrderAppliedDiscounts; -import com.apideck.unify.models.components.OrderAppliedTaxes; -import com.apideck.unify.models.components.OrderDiscounts; -import com.apideck.unify.models.components.OrderDiscountsScope; -import com.apideck.unify.models.components.OrderDiscountsType; -import com.apideck.unify.models.components.OrderFulfillments; -import com.apideck.unify.models.components.OrderFulfillmentsType; -import com.apideck.unify.models.components.OrderInput; -import com.apideck.unify.models.components.OrderLineItems; -import com.apideck.unify.models.components.OrderModifiers; -import com.apideck.unify.models.components.OrderPayments; -import com.apideck.unify.models.components.OrderPickupDetails; -import com.apideck.unify.models.components.OrderRefunds; -import com.apideck.unify.models.components.OrderStatus; -import com.apideck.unify.models.components.OrderTenders; -import com.apideck.unify.models.components.OrderTendersType; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.PaymentCardInput; -import com.apideck.unify.models.components.PhoneNumber; -import com.apideck.unify.models.components.PhoneNumberType; -import com.apideck.unify.models.components.PosPaymentStatus; -import com.apideck.unify.models.components.PrepaidType; -import com.apideck.unify.models.components.Recipient; -import com.apideck.unify.models.components.ServiceChargeInput; -import com.apideck.unify.models.components.Taxes; -import com.apideck.unify.models.components.Type; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrdersAddRequest; -import com.apideck.unify.models.operations.PosOrdersAddResponse; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosOrdersAddRequest req = PosOrdersAddRequest.builder() - .order(OrderInput.builder() - .merchantId("12345") - .locationId("12345") - .idempotencyKey("random_string") - .orderNumber("1F") - .orderDate(LocalDate.parse("2022-08-12")) - .closedDate(LocalDate.parse("2022-08-13")) - .referenceId("my-order-001") - .status(OrderStatus.OPEN) - .paymentStatus(PosPaymentStatus.OPEN) - .currency(Currency.USD) - .customerId("12345") - .employeeId("12345") - .orderTypeId("12345") - .table("1F") - .seat("23F") - .totalAmount(275L) - .totalTip(700L) - .totalTax(275L) - .totalDiscount(300L) - .totalRefund(0L) - .totalServiceCharge(0L) - .refunded(false) - .customers(List.of( - Customers.builder() - .id("12345") - .firstName("Elon") - .middleName("D.") - .lastName("Musk") - .phoneNumbers(List.of( - PhoneNumber.builder() - .number("111-111-1111") - .id("12345") - .countryCode("1") - .areaCode("323") - .extension("105") - .type(PhoneNumberType.PRIMARY) - .build())) - .emails(List.of( - Email.builder() - .email("elon@musk.com") - .id("123") - .type(EmailType.PRIMARY) - .build())) - .build())) - .fulfillments(List.of( - OrderFulfillments.builder() - .id("12345") - .type(OrderFulfillmentsType.SHIPMENT) - .pickupDetails(OrderPickupDetails.builder() - .autoCompleteDuration("P1W3D") - .cancelReason("Not hungry") - .expiresAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .pickupAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .pickupWindowDuration("P1W3D") - .prepTimeDuration("P1W3D") - .note("Pickup in the back.") - .placedAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .rejectedAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .readyAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .expiredAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .pickedUpAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .canceledAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .curbsidePickupDetails(CurbsidePickupDetails.builder() - .buyerArrivedAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .build()) - .recipient(Recipient.builder() - .customerId("12345") - .displayName("Elon Musk") - .address(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .phoneNumber(PhoneNumber.builder() - .number("111-111-1111") - .id("12345") - .countryCode("1") - .areaCode("323") - .extension("105") - .type(PhoneNumberType.PRIMARY) - .build()) - .email(Email.builder() - .email("elon@musk.com") - .id("123") - .type(EmailType.PRIMARY) - .build()) - .build()) - .build()) - .build())) - .lineItems(List.of( - OrderLineItems.builder() - .name("New York Strip Steak") - .totalTax(2000L) - .totalDiscount(3000L) - .totalAmount(27500L) - .quantity(1d) - .unitPrice(27500.5d) - .appliedTaxes(List.of( - OrderAppliedTaxes.builder() - .taxId("sales-tax") - .amount(27500L) - .currency(Currency.USD) - .build())) - .appliedDiscounts(List.of( - OrderAppliedDiscounts.builder() - .discountId("12345") - .amount(27500L) - .currency(Currency.USD) - .build())) - .modifiers(List.of( - OrderModifiers.builder() - .id("12345") - .name("New York Strip Steak - no cheese") - .amount(27500L) - .currency(Currency.USD) - .alternateName("Modifier New") - .modifierGroupId("123") - .build())) - .build())) - .payments(List.of( - OrderPayments.builder() - .amount(27500L) - .currency(Currency.USD) - .build())) - .serviceCharges(List.of( - ServiceChargeInput.builder() - .name("Charge for delivery") - .amount(27500d) - .percentage(12.5d) - .currency(Currency.USD) - .active(true) - .build())) - .refunds(List.of( - OrderRefunds.builder() - .amount(27500L) - .currency(Currency.USD) - .reason("The reason for the refund being issued.") - .build())) - .taxes(List.of( - Taxes.builder() - .id("state-sales-tax") - .name("State Sales Tax") - .amount(27500L) - .currency(Currency.USD) - .percentage(15d) - .autoApplied(true) - .build())) - .discounts(List.of( - OrderDiscounts.builder() - .type(OrderDiscountsType.PERCENTAGE) - .name("10% off") - .amount(27500L) - .currency(Currency.USD) - .scope(OrderDiscountsScope.ORDER) - .build())) - .tenders(List.of( - OrderTenders.builder() - .name("10% off") - .type(OrderTendersType.CASH) - .note("An optional note associated with the tender at the time of payment.") - .amount(27500d) - .percentage(10d) - .currency(Currency.USD) - .totalAmount(275L) - .totalTip(7L) - .totalProcessingFee(0L) - .totalTax(2.75L) - .totalDiscount(3L) - .totalRefund(0L) - .totalServiceCharge(0L) - .buyerTenderedCashAmount(27500L) - .changeBackCashAmount(27500L) - .card(PaymentCardInput.builder() - .bin("41111") - .cardType(CardType.CREDIT) - .prepaidType(PrepaidType.PREPAID) - .cardholderName("John Doe") - .customerId("12345") - .merchantId("12345") - .expMonth(1L) - .expYear(2022L) - .fingerprint(" Intended as a POS-assigned identifier, based on the card number, to identify the card across multiple locations within a single application.") - .last4("The last 4 digits of the card number.") - .enabled(true) - .billingAddress(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .referenceId("card-001") - .version("230320320320") - .build()) - .cardStatus(CardStatus.AUTHORIZED) - .cardEntryMethod(CardEntryMethod.SWIPED) - .build())) - .voided(false) - .version("230320320320") - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosOrdersAddResponse res = sdk.pos().orders().create() - .request(req) - .call(); - - if (res.createOrderResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [PosOrdersAddRequest](../../models/operations/PosOrdersAddRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosOrdersAddResponse](../../models/operations/PosOrdersAddResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## get - -Get Order - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrdersOneRequest; -import com.apideck.unify.models.operations.PosOrdersOneResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosOrdersOneRequest req = PosOrdersOneRequest.builder() - .id("") - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosOrdersOneResponse res = sdk.pos().orders().get() - .request(req) - .call(); - - if (res.getOrderResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [PosOrdersOneRequest](../../models/operations/PosOrdersOneRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosOrdersOneResponse](../../models/operations/PosOrdersOneResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Updates an open order by adding, replacing, or deleting fields. Square-only: Orders with a `completed` or `canceled` status cannot be updated. To pay for an order, use the [payments endpoint](#tag/Payments). - - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Address; -import com.apideck.unify.models.components.CardEntryMethod; -import com.apideck.unify.models.components.CardStatus; -import com.apideck.unify.models.components.CardType; -import com.apideck.unify.models.components.CurbsidePickupDetails; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.Customers; -import com.apideck.unify.models.components.Email; -import com.apideck.unify.models.components.EmailType; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.OrderAppliedDiscounts; -import com.apideck.unify.models.components.OrderAppliedTaxes; -import com.apideck.unify.models.components.OrderDiscounts; -import com.apideck.unify.models.components.OrderDiscountsScope; -import com.apideck.unify.models.components.OrderDiscountsType; -import com.apideck.unify.models.components.OrderFulfillments; -import com.apideck.unify.models.components.OrderFulfillmentsType; -import com.apideck.unify.models.components.OrderInput; -import com.apideck.unify.models.components.OrderLineItems; -import com.apideck.unify.models.components.OrderModifiers; -import com.apideck.unify.models.components.OrderPayments; -import com.apideck.unify.models.components.OrderPickupDetails; -import com.apideck.unify.models.components.OrderRefunds; -import com.apideck.unify.models.components.OrderStatus; -import com.apideck.unify.models.components.OrderTenders; -import com.apideck.unify.models.components.OrderTendersType; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.PaymentCardInput; -import com.apideck.unify.models.components.PhoneNumber; -import com.apideck.unify.models.components.PhoneNumberType; -import com.apideck.unify.models.components.PosPaymentStatus; -import com.apideck.unify.models.components.PrepaidType; -import com.apideck.unify.models.components.Recipient; -import com.apideck.unify.models.components.ServiceChargeInput; -import com.apideck.unify.models.components.Taxes; -import com.apideck.unify.models.components.Type; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrdersUpdateRequest; -import com.apideck.unify.models.operations.PosOrdersUpdateResponse; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosOrdersUpdateRequest req = PosOrdersUpdateRequest.builder() - .id("") - .order(OrderInput.builder() - .merchantId("12345") - .locationId("12345") - .idempotencyKey("random_string") - .orderNumber("1F") - .orderDate(LocalDate.parse("2022-08-12")) - .closedDate(LocalDate.parse("2022-08-13")) - .referenceId("my-order-001") - .status(OrderStatus.OPEN) - .paymentStatus(PosPaymentStatus.OPEN) - .currency(Currency.USD) - .customerId("12345") - .employeeId("12345") - .orderTypeId("12345") - .table("1F") - .seat("23F") - .totalAmount(275L) - .totalTip(700L) - .totalTax(275L) - .totalDiscount(300L) - .totalRefund(0L) - .totalServiceCharge(0L) - .refunded(false) - .customers(List.of( - Customers.builder() - .id("12345") - .firstName("Elon") - .middleName("D.") - .lastName("Musk") - .phoneNumbers(List.of( - PhoneNumber.builder() - .number("111-111-1111") - .id("12345") - .countryCode("1") - .areaCode("323") - .extension("105") - .type(PhoneNumberType.PRIMARY) - .build())) - .emails(List.of( - Email.builder() - .email("elon@musk.com") - .id("123") - .type(EmailType.PRIMARY) - .build())) - .build())) - .fulfillments(List.of( - OrderFulfillments.builder() - .id("12345") - .type(OrderFulfillmentsType.SHIPMENT) - .pickupDetails(OrderPickupDetails.builder() - .autoCompleteDuration("P1W3D") - .cancelReason("Not hungry") - .expiresAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .pickupAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .pickupWindowDuration("P1W3D") - .prepTimeDuration("P1W3D") - .note("Pickup in the back.") - .placedAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .rejectedAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .readyAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .expiredAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .pickedUpAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .canceledAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .curbsidePickupDetails(CurbsidePickupDetails.builder() - .buyerArrivedAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .build()) - .recipient(Recipient.builder() - .customerId("12345") - .displayName("Elon Musk") - .address(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .phoneNumber(PhoneNumber.builder() - .number("111-111-1111") - .id("12345") - .countryCode("1") - .areaCode("323") - .extension("105") - .type(PhoneNumberType.PRIMARY) - .build()) - .email(Email.builder() - .email("elon@musk.com") - .id("123") - .type(EmailType.PRIMARY) - .build()) - .build()) - .build()) - .build())) - .lineItems(List.of( - OrderLineItems.builder() - .name("New York Strip Steak") - .totalTax(2000L) - .totalDiscount(3000L) - .totalAmount(27500L) - .quantity(1d) - .unitPrice(27500.5d) - .appliedTaxes(List.of( - OrderAppliedTaxes.builder() - .taxId("sales-tax") - .amount(27500L) - .currency(Currency.USD) - .build())) - .appliedDiscounts(List.of( - OrderAppliedDiscounts.builder() - .discountId("12345") - .amount(27500L) - .currency(Currency.USD) - .build())) - .modifiers(List.of( - OrderModifiers.builder() - .id("12345") - .name("New York Strip Steak - no cheese") - .amount(27500L) - .currency(Currency.USD) - .alternateName("Modifier New") - .modifierGroupId("123") - .build())) - .build())) - .payments(List.of( - OrderPayments.builder() - .amount(27500L) - .currency(Currency.USD) - .build())) - .serviceCharges(List.of( - ServiceChargeInput.builder() - .name("Charge for delivery") - .amount(27500d) - .percentage(12.5d) - .currency(Currency.USD) - .active(true) - .build())) - .refunds(List.of( - OrderRefunds.builder() - .amount(27500L) - .currency(Currency.USD) - .reason("The reason for the refund being issued.") - .build())) - .taxes(List.of( - Taxes.builder() - .id("state-sales-tax") - .name("State Sales Tax") - .amount(27500L) - .currency(Currency.USD) - .percentage(15d) - .autoApplied(true) - .build())) - .discounts(List.of( - OrderDiscounts.builder() - .type(OrderDiscountsType.PERCENTAGE) - .name("10% off") - .amount(27500L) - .currency(Currency.USD) - .scope(OrderDiscountsScope.ORDER) - .build())) - .tenders(List.of( - OrderTenders.builder() - .name("10% off") - .type(OrderTendersType.CASH) - .note("An optional note associated with the tender at the time of payment.") - .amount(27500d) - .percentage(10d) - .currency(Currency.USD) - .totalAmount(275L) - .totalTip(7L) - .totalProcessingFee(0L) - .totalTax(2.75L) - .totalDiscount(3L) - .totalRefund(0L) - .totalServiceCharge(0L) - .buyerTenderedCashAmount(27500L) - .changeBackCashAmount(27500L) - .card(PaymentCardInput.builder() - .bin("41111") - .cardType(CardType.CREDIT) - .prepaidType(PrepaidType.PREPAID) - .cardholderName("John Doe") - .customerId("12345") - .merchantId("12345") - .expMonth(1L) - .expYear(2022L) - .fingerprint(" Intended as a POS-assigned identifier, based on the card number, to identify the card across multiple locations within a single application.") - .last4("The last 4 digits of the card number.") - .enabled(true) - .billingAddress(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .referenceId("card-001") - .version("230320320320") - .build()) - .cardStatus(CardStatus.AUTHORIZED) - .cardEntryMethod(CardEntryMethod.SWIPED) - .build())) - .voided(false) - .version("230320320320") - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosOrdersUpdateResponse res = sdk.pos().orders().update() - .request(req) - .call(); - - if (res.updateOrderResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [PosOrdersUpdateRequest](../../models/operations/PosOrdersUpdateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosOrdersUpdateResponse](../../models/operations/PosOrdersUpdateResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete Order - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrdersDeleteRequest; -import com.apideck.unify.models.operations.PosOrdersDeleteResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosOrdersDeleteRequest req = PosOrdersDeleteRequest.builder() - .id("") - .serviceId("salesforce") - .build(); - - PosOrdersDeleteResponse res = sdk.pos().orders().delete() - .request(req) - .call(); - - if (res.deleteOrderResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [PosOrdersDeleteRequest](../../models/operations/PosOrdersDeleteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosOrdersDeleteResponse](../../models/operations/PosOrdersDeleteResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## pay - -Pay Order - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Address; -import com.apideck.unify.models.components.CardEntryMethod; -import com.apideck.unify.models.components.CardStatus; -import com.apideck.unify.models.components.CardType; -import com.apideck.unify.models.components.CurbsidePickupDetails; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.Customers; -import com.apideck.unify.models.components.Email; -import com.apideck.unify.models.components.EmailType; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.OrderAppliedDiscounts; -import com.apideck.unify.models.components.OrderAppliedTaxes; -import com.apideck.unify.models.components.OrderDiscounts; -import com.apideck.unify.models.components.OrderDiscountsScope; -import com.apideck.unify.models.components.OrderDiscountsType; -import com.apideck.unify.models.components.OrderFulfillments; -import com.apideck.unify.models.components.OrderFulfillmentsType; -import com.apideck.unify.models.components.OrderInput; -import com.apideck.unify.models.components.OrderLineItems; -import com.apideck.unify.models.components.OrderModifiers; -import com.apideck.unify.models.components.OrderPayments; -import com.apideck.unify.models.components.OrderPickupDetails; -import com.apideck.unify.models.components.OrderRefunds; -import com.apideck.unify.models.components.OrderStatus; -import com.apideck.unify.models.components.OrderTenders; -import com.apideck.unify.models.components.OrderTendersType; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.PaymentCardInput; -import com.apideck.unify.models.components.PhoneNumber; -import com.apideck.unify.models.components.PhoneNumberType; -import com.apideck.unify.models.components.PosPaymentStatus; -import com.apideck.unify.models.components.PrepaidType; -import com.apideck.unify.models.components.Recipient; -import com.apideck.unify.models.components.ServiceChargeInput; -import com.apideck.unify.models.components.Taxes; -import com.apideck.unify.models.components.Type; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrdersPayRequest; -import com.apideck.unify.models.operations.PosOrdersPayResponse; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosOrdersPayRequest req = PosOrdersPayRequest.builder() - .id("") - .order(OrderInput.builder() - .merchantId("12345") - .locationId("12345") - .idempotencyKey("random_string") - .orderNumber("1F") - .orderDate(LocalDate.parse("2022-08-12")) - .closedDate(LocalDate.parse("2022-08-13")) - .referenceId("my-order-001") - .status(OrderStatus.OPEN) - .paymentStatus(PosPaymentStatus.OPEN) - .currency(Currency.USD) - .customerId("12345") - .employeeId("12345") - .orderTypeId("12345") - .table("1F") - .seat("23F") - .totalAmount(275L) - .totalTip(700L) - .totalTax(275L) - .totalDiscount(300L) - .totalRefund(0L) - .totalServiceCharge(0L) - .refunded(false) - .customers(List.of( - Customers.builder() - .id("12345") - .firstName("Elon") - .middleName("D.") - .lastName("Musk") - .phoneNumbers(List.of( - PhoneNumber.builder() - .number("111-111-1111") - .id("12345") - .countryCode("1") - .areaCode("323") - .extension("105") - .type(PhoneNumberType.PRIMARY) - .build())) - .emails(List.of( - Email.builder() - .email("elon@musk.com") - .id("123") - .type(EmailType.PRIMARY) - .build())) - .build())) - .fulfillments(List.of( - OrderFulfillments.builder() - .id("12345") - .type(OrderFulfillmentsType.SHIPMENT) - .pickupDetails(OrderPickupDetails.builder() - .autoCompleteDuration("P1W3D") - .cancelReason("Not hungry") - .expiresAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .pickupAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .pickupWindowDuration("P1W3D") - .prepTimeDuration("P1W3D") - .note("Pickup in the back.") - .placedAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .rejectedAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .readyAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .expiredAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .pickedUpAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .canceledAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .curbsidePickupDetails(CurbsidePickupDetails.builder() - .buyerArrivedAt(OffsetDateTime.parse("2016-09-04T23:59:33.123Z")) - .build()) - .recipient(Recipient.builder() - .customerId("12345") - .displayName("Elon Musk") - .address(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .phoneNumber(PhoneNumber.builder() - .number("111-111-1111") - .id("12345") - .countryCode("1") - .areaCode("323") - .extension("105") - .type(PhoneNumberType.PRIMARY) - .build()) - .email(Email.builder() - .email("elon@musk.com") - .id("123") - .type(EmailType.PRIMARY) - .build()) - .build()) - .build()) - .build())) - .lineItems(List.of( - OrderLineItems.builder() - .name("New York Strip Steak") - .totalTax(2000L) - .totalDiscount(3000L) - .totalAmount(27500L) - .quantity(1d) - .unitPrice(27500.5d) - .appliedTaxes(List.of( - OrderAppliedTaxes.builder() - .taxId("sales-tax") - .amount(27500L) - .currency(Currency.USD) - .build())) - .appliedDiscounts(List.of( - OrderAppliedDiscounts.builder() - .discountId("12345") - .amount(27500L) - .currency(Currency.USD) - .build())) - .modifiers(List.of( - OrderModifiers.builder() - .id("12345") - .name("New York Strip Steak - no cheese") - .amount(27500L) - .currency(Currency.USD) - .alternateName("Modifier New") - .modifierGroupId("123") - .build())) - .build())) - .payments(List.of( - OrderPayments.builder() - .amount(27500L) - .currency(Currency.USD) - .build())) - .serviceCharges(List.of( - ServiceChargeInput.builder() - .name("Charge for delivery") - .amount(27500d) - .percentage(12.5d) - .currency(Currency.USD) - .active(true) - .build())) - .refunds(List.of( - OrderRefunds.builder() - .amount(27500L) - .currency(Currency.USD) - .reason("The reason for the refund being issued.") - .build())) - .taxes(List.of( - Taxes.builder() - .id("state-sales-tax") - .name("State Sales Tax") - .amount(27500L) - .currency(Currency.USD) - .percentage(15d) - .autoApplied(true) - .build())) - .discounts(List.of( - OrderDiscounts.builder() - .type(OrderDiscountsType.PERCENTAGE) - .name("10% off") - .amount(27500L) - .currency(Currency.USD) - .scope(OrderDiscountsScope.ORDER) - .build())) - .tenders(List.of( - OrderTenders.builder() - .name("10% off") - .type(OrderTendersType.CASH) - .note("An optional note associated with the tender at the time of payment.") - .amount(27500d) - .percentage(10d) - .currency(Currency.USD) - .totalAmount(275L) - .totalTip(7L) - .totalProcessingFee(0L) - .totalTax(2.75L) - .totalDiscount(3L) - .totalRefund(0L) - .totalServiceCharge(0L) - .buyerTenderedCashAmount(27500L) - .changeBackCashAmount(27500L) - .card(PaymentCardInput.builder() - .bin("41111") - .cardType(CardType.CREDIT) - .prepaidType(PrepaidType.PREPAID) - .cardholderName("John Doe") - .customerId("12345") - .merchantId("12345") - .expMonth(1L) - .expYear(2022L) - .fingerprint(" Intended as a POS-assigned identifier, based on the card number, to identify the card across multiple locations within a single application.") - .last4("The last 4 digits of the card number.") - .enabled(true) - .billingAddress(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .referenceId("card-001") - .version("230320320320") - .build()) - .cardStatus(CardStatus.AUTHORIZED) - .cardEntryMethod(CardEntryMethod.SWIPED) - .build())) - .voided(false) - .version("230320320320") - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosOrdersPayResponse res = sdk.pos().orders().pay() - .request(req) - .call(); - - if (res.createOrderResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [PosOrdersPayRequest](../../models/operations/PosOrdersPayRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosOrdersPayResponse](../../models/operations/PosOrdersPayResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/apideckpayments/README.md b/docs/sdks/apideckpayments/README.md deleted file mode 100644 index 7d0fd71..0000000 --- a/docs/sdks/apideckpayments/README.md +++ /dev/null @@ -1,578 +0,0 @@ -# ApideckPayments -(*pos().payments()*) - -## Overview - -### Available Operations - -* [list](#list) - List Payments -* [create](#create) - Create Payment -* [get](#get) - Get Payment -* [update](#update) - Update Payment -* [delete](#delete) - Delete Payment - -## list - -List Payments - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosPaymentsAllRequest; -import com.apideck.unify.models.operations.PosPaymentsAllResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosPaymentsAllRequest req = PosPaymentsAllRequest.builder() - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosPaymentsAllResponse res = sdk.pos().payments().list() - .request(req) - .call(); - - if (res.getPosPaymentsResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [PosPaymentsAllRequest](../../models/operations/PosPaymentsAllRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosPaymentsAllResponse](../../models/operations/PosPaymentsAllResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## create - -Create Payment - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Address; -import com.apideck.unify.models.components.CardType; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.ExternalDetails; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.PaymentCardInput; -import com.apideck.unify.models.components.PosBankAccount; -import com.apideck.unify.models.components.PosPaymentCardDetails; -import com.apideck.unify.models.components.PosPaymentInput; -import com.apideck.unify.models.components.PosPaymentProcessingFeesType; -import com.apideck.unify.models.components.PosPaymentSource; -import com.apideck.unify.models.components.PosPaymentStatusStatus; -import com.apideck.unify.models.components.PosPaymentType; -import com.apideck.unify.models.components.PrepaidType; -import com.apideck.unify.models.components.ProcessingFees; -import com.apideck.unify.models.components.ServiceChargeInput; -import com.apideck.unify.models.components.Type; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosPaymentsAddRequest; -import com.apideck.unify.models.operations.PosPaymentsAddResponse; -import java.lang.Exception; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosPaymentsAddRequest req = PosPaymentsAddRequest.builder() - .posPayment(PosPaymentInput.builder() - .sourceId("12345") - .orderId("12345") - .customerId("12345") - .tenderId("12345") - .amount(27.5d) - .currency(Currency.USD) - .merchantId("12345") - .employeeId("12345") - .locationId("12345") - .deviceId("12345") - .externalPaymentId("12345") - .idempotencyKey("random_string") - .tip(7d) - .tax(20d) - .total(37.5d) - .appFee(3d) - .changeBackCashAmount(20d) - .approved(37.5d) - .refunded(37.5d) - .processingFees(List.of( - ProcessingFees.builder() - .amount(1.05d) - .effectiveAt(OffsetDateTime.parse("2020-09-30T07:43:32.000Z")) - .processingType(PosPaymentProcessingFeesType.INITIAL) - .build())) - .source(PosPaymentSource.EXTERNAL) - .status(PosPaymentStatusStatus.APPROVED) - .cardDetails(PosPaymentCardDetails.builder() - .card(PaymentCardInput.builder() - .bin("41111") - .cardType(CardType.CREDIT) - .prepaidType(PrepaidType.PREPAID) - .cardholderName("John Doe") - .customerId("12345") - .merchantId("12345") - .expMonth(1L) - .expYear(2022L) - .fingerprint(" Intended as a POS-assigned identifier, based on the card number, to identify the card across multiple locations within a single application.") - .last4("The last 4 digits of the card number.") - .enabled(true) - .billingAddress(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .referenceId("card-001") - .version("230320320320") - .build()) - .build()) - .bankAccount(PosBankAccount.builder() - .country("US") - .build()) - .externalDetails(ExternalDetails.builder() - .type(PosPaymentType.SOCIAL) - .source("") - .sourceFeeAmount(2.5d) - .build()) - .serviceCharges(List.of( - ServiceChargeInput.builder() - .name("Charge for delivery") - .amount(27500d) - .percentage(12.5d) - .currency(Currency.USD) - .active(true) - .build())) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosPaymentsAddResponse res = sdk.pos().payments().create() - .request(req) - .call(); - - if (res.createPosPaymentResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [PosPaymentsAddRequest](../../models/operations/PosPaymentsAddRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosPaymentsAddResponse](../../models/operations/PosPaymentsAddResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## get - -Get Payment - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosPaymentsOneRequest; -import com.apideck.unify.models.operations.PosPaymentsOneResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosPaymentsOneRequest req = PosPaymentsOneRequest.builder() - .id("") - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosPaymentsOneResponse res = sdk.pos().payments().get() - .request(req) - .call(); - - if (res.getPosPaymentResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [PosPaymentsOneRequest](../../models/operations/PosPaymentsOneRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosPaymentsOneResponse](../../models/operations/PosPaymentsOneResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Update Payment - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Address; -import com.apideck.unify.models.components.CardType; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.ExternalDetails; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.PaymentCardInput; -import com.apideck.unify.models.components.PosBankAccount; -import com.apideck.unify.models.components.PosPaymentCardDetails; -import com.apideck.unify.models.components.PosPaymentInput; -import com.apideck.unify.models.components.PosPaymentProcessingFeesType; -import com.apideck.unify.models.components.PosPaymentSource; -import com.apideck.unify.models.components.PosPaymentStatusStatus; -import com.apideck.unify.models.components.PosPaymentType; -import com.apideck.unify.models.components.PrepaidType; -import com.apideck.unify.models.components.ProcessingFees; -import com.apideck.unify.models.components.ServiceChargeInput; -import com.apideck.unify.models.components.Type; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosPaymentsUpdateRequest; -import com.apideck.unify.models.operations.PosPaymentsUpdateResponse; -import java.lang.Exception; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosPaymentsUpdateRequest req = PosPaymentsUpdateRequest.builder() - .id("") - .posPayment(PosPaymentInput.builder() - .sourceId("12345") - .orderId("12345") - .customerId("12345") - .tenderId("12345") - .amount(27.5d) - .currency(Currency.USD) - .merchantId("12345") - .employeeId("12345") - .locationId("12345") - .deviceId("12345") - .externalPaymentId("12345") - .idempotencyKey("random_string") - .tip(7d) - .tax(20d) - .total(37.5d) - .appFee(3d) - .changeBackCashAmount(20d) - .approved(37.5d) - .refunded(37.5d) - .processingFees(List.of( - ProcessingFees.builder() - .amount(1.05d) - .effectiveAt(OffsetDateTime.parse("2020-09-30T07:43:32.000Z")) - .processingType(PosPaymentProcessingFeesType.INITIAL) - .build())) - .source(PosPaymentSource.EXTERNAL) - .status(PosPaymentStatusStatus.APPROVED) - .cardDetails(PosPaymentCardDetails.builder() - .card(PaymentCardInput.builder() - .bin("41111") - .cardType(CardType.CREDIT) - .prepaidType(PrepaidType.PREPAID) - .cardholderName("John Doe") - .customerId("12345") - .merchantId("12345") - .expMonth(1L) - .expYear(2022L) - .fingerprint(" Intended as a POS-assigned identifier, based on the card number, to identify the card across multiple locations within a single application.") - .last4("The last 4 digits of the card number.") - .enabled(true) - .billingAddress(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .referenceId("card-001") - .version("230320320320") - .build()) - .build()) - .bankAccount(PosBankAccount.builder() - .country("US") - .build()) - .externalDetails(ExternalDetails.builder() - .type(PosPaymentType.FOOD_VOUCHER) - .source("") - .sourceFeeAmount(2.5d) - .build()) - .serviceCharges(List.of( - ServiceChargeInput.builder() - .name("Charge for delivery") - .amount(27500d) - .percentage(12.5d) - .currency(Currency.USD) - .active(true) - .build())) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosPaymentsUpdateResponse res = sdk.pos().payments().update() - .request(req) - .call(); - - if (res.updatePosPaymentResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `request` | [PosPaymentsUpdateRequest](../../models/operations/PosPaymentsUpdateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosPaymentsUpdateResponse](../../models/operations/PosPaymentsUpdateResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete Payment - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosPaymentsDeleteRequest; -import com.apideck.unify.models.operations.PosPaymentsDeleteResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosPaymentsDeleteRequest req = PosPaymentsDeleteRequest.builder() - .id("") - .serviceId("salesforce") - .build(); - - PosPaymentsDeleteResponse res = sdk.pos().payments().delete() - .request(req) - .call(); - - if (res.deletePosPaymentResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `request` | [PosPaymentsDeleteRequest](../../models/operations/PosPaymentsDeleteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosPaymentsDeleteResponse](../../models/operations/PosPaymentsDeleteResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/apiresourcecoverage/README.md b/docs/sdks/apiresourcecoverage/README.md index f8572ea..2b28937 100644 --- a/docs/sdks/apiresourcecoverage/README.md +++ b/docs/sdks/apiresourcecoverage/README.md @@ -29,7 +29,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/apiresources/README.md b/docs/sdks/apiresources/README.md index 373c4f3..09a246b 100644 --- a/docs/sdks/apiresources/README.md +++ b/docs/sdks/apiresources/README.md @@ -29,7 +29,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/apis/README.md b/docs/sdks/apis/README.md index 3fe7c29..b0e4f0d 100644 --- a/docs/sdks/apis/README.md +++ b/docs/sdks/apis/README.md @@ -32,7 +32,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -96,7 +96,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/applicants/README.md b/docs/sdks/applicants/README.md index 1cecfec..4ef932d 100644 --- a/docs/sdks/applicants/README.md +++ b/docs/sdks/applicants/README.md @@ -38,7 +38,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -126,7 +126,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -295,7 +295,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -380,7 +380,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -552,7 +552,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/applications/README.md b/docs/sdks/applications/README.md index 357124c..f1ac352 100644 --- a/docs/sdks/applications/README.md +++ b/docs/sdks/applications/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -111,7 +111,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -194,7 +194,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -267,7 +267,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -351,7 +351,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/ats/README.md b/docs/sdks/ats/README.md index 60877c6..b4b5447 100644 --- a/docs/sdks/ats/README.md +++ b/docs/sdks/ats/README.md @@ -1,2 +1,6 @@ # Ats -(*ats()*) \ No newline at end of file +(*ats()*) + +## Overview + +### Available Operations diff --git a/docs/sdks/attachments/README.md b/docs/sdks/attachments/README.md index ba743ed..cbb9c11 100644 --- a/docs/sdks/attachments/README.md +++ b/docs/sdks/attachments/README.md @@ -36,7 +36,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -105,7 +105,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -175,7 +175,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -244,7 +244,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/balancesheet/README.md b/docs/sdks/balancesheet/README.md index 7a87638..612f6c3 100644 --- a/docs/sdks/balancesheet/README.md +++ b/docs/sdks/balancesheet/README.md @@ -18,6 +18,7 @@ package hello.world; import com.apideck.unify.Apideck; import com.apideck.unify.models.components.BalanceSheetFilter; +import com.apideck.unify.models.components.PeriodType; import com.apideck.unify.models.errors.BadRequestResponse; import com.apideck.unify.models.errors.NotFoundResponse; import com.apideck.unify.models.errors.PaymentRequiredResponse; @@ -34,7 +35,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -45,6 +46,8 @@ public class Application { .filter(BalanceSheetFilter.builder() .startDate("2021-01-01") .endDate("2021-12-31") + .periodCount(3L) + .periodType(PeriodType.MONTH) .build()) .build(); diff --git a/docs/sdks/billpayments/README.md b/docs/sdks/billpayments/README.md index c43b14d..7f3435f 100644 --- a/docs/sdks/billpayments/README.md +++ b/docs/sdks/billpayments/README.md @@ -42,7 +42,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -135,7 +135,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -281,7 +281,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -367,7 +367,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -516,7 +516,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/bills/README.md b/docs/sdks/bills/README.md index d032fe4..cbf2638 100644 --- a/docs/sdks/bills/README.md +++ b/docs/sdks/bills/README.md @@ -42,7 +42,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -136,7 +136,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -328,7 +328,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -414,7 +414,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -607,7 +607,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index 49d36af..88ef120 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -109,7 +109,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/collectiontags/README.md b/docs/sdks/collectiontags/README.md index 22ee47f..c72d6ff 100644 --- a/docs/sdks/collectiontags/README.md +++ b/docs/sdks/collectiontags/README.md @@ -33,7 +33,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/collectionticketcomments/README.md b/docs/sdks/collectionticketcomments/README.md index 86c7593..45c0a38 100644 --- a/docs/sdks/collectionticketcomments/README.md +++ b/docs/sdks/collectionticketcomments/README.md @@ -40,7 +40,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -119,7 +119,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -198,7 +198,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -272,7 +272,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -352,7 +352,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/collectiontickets/README.md b/docs/sdks/collectiontickets/README.md index 1f8d4bb..56d1a39 100644 --- a/docs/sdks/collectiontickets/README.md +++ b/docs/sdks/collectiontickets/README.md @@ -33,7 +33,6 @@ import com.apideck.unify.models.errors.UnprocessableResponse; import com.apideck.unify.models.operations.IssueTrackingCollectionTicketsAllRequest; import com.apideck.unify.models.operations.IssueTrackingCollectionTicketsAllResponse; import java.lang.Exception; -import java.time.OffsetDateTime; import java.util.List; import java.util.Map; @@ -43,7 +42,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -57,8 +56,6 @@ public class Application { .filter(IssuesFilter.builder() .status(List.of( "open")) - .since(OffsetDateTime.parse("2020-09-30T07:43:32.000Z")) - .assigneeId("2332bd9c2eaaa5dcfa14721c") .build()) .passThrough(Map.ofEntries( Map.entry("search", "San Francisco"))) @@ -131,7 +128,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -223,7 +220,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -300,7 +297,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -393,7 +390,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/collectionusers/README.md b/docs/sdks/collectionusers/README.md index d5e792f..c4335dd 100644 --- a/docs/sdks/collectionusers/README.md +++ b/docs/sdks/collectionusers/README.md @@ -34,7 +34,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -103,7 +103,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/companies/README.md b/docs/sdks/companies/README.md index 15168f3..b67a465 100644 --- a/docs/sdks/companies/README.md +++ b/docs/sdks/companies/README.md @@ -41,7 +41,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -137,7 +137,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -316,7 +316,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -405,7 +405,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -587,7 +587,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/companyinfo/README.md b/docs/sdks/companyinfo/README.md index 999154b..2c25edf 100644 --- a/docs/sdks/companyinfo/README.md +++ b/docs/sdks/companyinfo/README.md @@ -32,7 +32,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/connectioncustommappings/README.md b/docs/sdks/connectioncustommappings/README.md index 9c69fbd..b4710d9 100644 --- a/docs/sdks/connectioncustommappings/README.md +++ b/docs/sdks/connectioncustommappings/README.md @@ -32,7 +32,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/connections/README.md b/docs/sdks/connections/README.md index e2a8db4..1f7b53b 100644 --- a/docs/sdks/connections/README.md +++ b/docs/sdks/connections/README.md @@ -9,7 +9,7 @@ * [get](#get) - Get connection * [update](#update) - Update connection * [delete](#delete) - Deletes a connection -* [import_](#import_) - Import connection +* [imports](#imports) - Import connection * [token](#token) - Authorize Access Token ## list @@ -39,12 +39,12 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); VaultConnectionsAllResponse res = sdk.vault().connections().list() - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .api("crm") .configured(true) @@ -61,7 +61,7 @@ public class Application { | Parameter | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `api` | *Optional\* | :heavy_minus_sign: | Scope results to Unified API | crm | | `configured` | *Optional\* | :heavy_minus_sign: | Scopes results to connections that have been configured or not | true | @@ -105,12 +105,12 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); VaultConnectionsOneResponse res = sdk.vault().connections().get() - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .serviceId("pipedrive") .unifiedApi("crm") @@ -127,7 +127,7 @@ public class Application { | Parameter | Type | Required | Description | Example | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | @@ -183,7 +183,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -281,12 +281,12 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); VaultConnectionsDeleteResponse res = sdk.vault().connections().delete() - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .serviceId("pipedrive") .unifiedApi("crm") @@ -301,7 +301,7 @@ public class Application { | Parameter | Type | Required | Description | Example | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | @@ -321,7 +321,7 @@ public class Application { | models/errors/UnprocessableResponse | 422 | application/json | | models/errors/APIException | 4XX, 5XX | \*/\* | -## import_ +## imports Import an authorized connection. @@ -343,7 +343,6 @@ import com.apideck.unify.models.errors.UnprocessableResponse; import com.apideck.unify.models.operations.VaultConnectionsImportRequest; import com.apideck.unify.models.operations.VaultConnectionsImportResponse; import java.lang.Exception; -import java.time.OffsetDateTime; import java.util.Map; public class Application { @@ -352,7 +351,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -363,8 +362,6 @@ public class Application { .credentials(Credentials.builder() .refreshToken("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.cThIIoDvwdueQB468K5xDc5633seEFoqwxjF_xSJyQQ") .accessToken("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c") - .issuedAt(OffsetDateTime.parse("2020-01-01T00:00:00Z")) - .expiresIn(3600L) .build()) .settings(ConnectionImportDataSettings.builder() .build()) @@ -375,7 +372,7 @@ public class Application { .build()) .build(); - VaultConnectionsImportResponse res = sdk.vault().connections().import_() + VaultConnectionsImportResponse res = sdk.vault().connections().imports() .request(req) .call(); @@ -438,7 +435,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/connectionsettings/README.md b/docs/sdks/connectionsettings/README.md index 4ff71f1..f757107 100644 --- a/docs/sdks/connectionsettings/README.md +++ b/docs/sdks/connectionsettings/README.md @@ -34,7 +34,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -112,7 +112,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/connector/README.md b/docs/sdks/connector/README.md index 8723093..05ca4eb 100644 --- a/docs/sdks/connector/README.md +++ b/docs/sdks/connector/README.md @@ -1,2 +1,6 @@ # Connector -(*connector()*) \ No newline at end of file +(*connector()*) + +## Overview + +### Available Operations diff --git a/docs/sdks/connectordocs/README.md b/docs/sdks/connectordocs/README.md index d2154f9..91c2d78 100644 --- a/docs/sdks/connectordocs/README.md +++ b/docs/sdks/connectordocs/README.md @@ -29,7 +29,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/connectorresources/README.md b/docs/sdks/connectorresources/README.md index f558880..3d7af21 100644 --- a/docs/sdks/connectorresources/README.md +++ b/docs/sdks/connectorresources/README.md @@ -30,7 +30,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/connectors/README.md b/docs/sdks/connectors/README.md index 559ccc0..860dc95 100644 --- a/docs/sdks/connectors/README.md +++ b/docs/sdks/connectors/README.md @@ -32,7 +32,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -96,7 +96,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/consumerrequestcounts/README.md b/docs/sdks/consumerrequestcounts/README.md index 769b92b..9c0da39 100644 --- a/docs/sdks/consumerrequestcounts/README.md +++ b/docs/sdks/consumerrequestcounts/README.md @@ -32,7 +32,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/consumers/README.md b/docs/sdks/consumers/README.md index 5292450..e3cf609 100644 --- a/docs/sdks/consumers/README.md +++ b/docs/sdks/consumers/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -108,7 +108,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -173,7 +173,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -237,7 +237,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -308,7 +308,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/contacts/README.md b/docs/sdks/contacts/README.md index da00039..5d0427b 100644 --- a/docs/sdks/contacts/README.md +++ b/docs/sdks/contacts/README.md @@ -41,18 +41,16 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); CrmContactsAllRequest req = CrmContactsAllRequest.builder() .serviceId("salesforce") .filter(ContactsFilter.builder() - .name("Elon Musk") .firstName("Elon") .lastName("Musk") .email("elon@tesla.com") - .phoneNumber("111-111-1111") .companyId("12345") .ownerId("12345") .build()) @@ -140,7 +138,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -306,7 +304,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -315,11 +313,9 @@ public class Application { .serviceId("salesforce") .fields("id,updated_at") .filter(ContactsFilter.builder() - .name("Elon Musk") .firstName("Elon") .lastName("Musk") .email("elon@tesla.com") - .phoneNumber("111-111-1111") .companyId("12345") .ownerId("12345") .build()) @@ -401,7 +397,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -569,7 +565,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/createcallback/README.md b/docs/sdks/createcallback/README.md index 76d6f65..ba60799 100644 --- a/docs/sdks/createcallback/README.md +++ b/docs/sdks/createcallback/README.md @@ -34,7 +34,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/creditnotes/README.md b/docs/sdks/creditnotes/README.md index c90f98b..17e64be 100644 --- a/docs/sdks/creditnotes/README.md +++ b/docs/sdks/creditnotes/README.md @@ -42,7 +42,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -139,7 +139,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -360,7 +360,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -450,7 +450,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -674,7 +674,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/crm/README.md b/docs/sdks/crm/README.md index 98c5187..5002569 100644 --- a/docs/sdks/crm/README.md +++ b/docs/sdks/crm/README.md @@ -1,2 +1,6 @@ # Crm -(*crm()*) \ No newline at end of file +(*crm()*) + +## Overview + +### Available Operations diff --git a/docs/sdks/customers/README.md b/docs/sdks/customers/README.md index 9ba74b0..fe24eaf 100644 --- a/docs/sdks/customers/README.md +++ b/docs/sdks/customers/README.md @@ -43,7 +43,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -144,7 +144,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -313,7 +313,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -400,7 +400,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -570,7 +570,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/customfields/README.md b/docs/sdks/customfields/README.md index b6eba7f..75ae3bb 100644 --- a/docs/sdks/customfields/README.md +++ b/docs/sdks/customfields/README.md @@ -33,7 +33,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/custommappings/README.md b/docs/sdks/custommappings/README.md index dbc0e36..c737466 100644 --- a/docs/sdks/custommappings/README.md +++ b/docs/sdks/custommappings/README.md @@ -31,12 +31,12 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); VaultCustomMappingsAllResponse res = sdk.vault().customMappings().list() - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .unifiedApi("crm") .serviceId("pipedrive") @@ -53,7 +53,7 @@ public class Application { | Parameter | Type | Required | Description | Example | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | | `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | diff --git a/docs/sdks/departments/README.md b/docs/sdks/departments/README.md index d2389dd..ce1790f 100644 --- a/docs/sdks/departments/README.md +++ b/docs/sdks/departments/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -113,7 +113,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -197,7 +197,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -271,7 +271,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -356,7 +356,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/drivegroups/README.md b/docs/sdks/drivegroups/README.md index 60328ae..34ae44f 100644 --- a/docs/sdks/drivegroups/README.md +++ b/docs/sdks/drivegroups/README.md @@ -38,7 +38,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -114,7 +114,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -193,7 +193,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -265,7 +265,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -345,7 +345,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/drives/README.md b/docs/sdks/drives/README.md index 9f2f28a..2651e61 100644 --- a/docs/sdks/drives/README.md +++ b/docs/sdks/drives/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -111,7 +111,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -189,7 +189,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -261,7 +261,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -340,7 +340,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/ecommerce/README.md b/docs/sdks/ecommerce/README.md index 4487ee0..38b5935 100644 --- a/docs/sdks/ecommerce/README.md +++ b/docs/sdks/ecommerce/README.md @@ -1,2 +1,6 @@ # Ecommerce -(*ecommerce()*) \ No newline at end of file +(*ecommerce()*) + +## Overview + +### Available Operations diff --git a/docs/sdks/employeepayrolls/README.md b/docs/sdks/employeepayrolls/README.md index 100d457..784f74c 100644 --- a/docs/sdks/employeepayrolls/README.md +++ b/docs/sdks/employeepayrolls/README.md @@ -35,7 +35,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -108,7 +108,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/employees/README.md b/docs/sdks/employees/README.md index 7ebcbcd..377e1dd 100644 --- a/docs/sdks/employees/README.md +++ b/docs/sdks/employees/README.md @@ -42,7 +42,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -128,7 +128,6 @@ import com.apideck.unify.models.components.Gender; import com.apideck.unify.models.components.LeavingReason; import com.apideck.unify.models.components.Manager; import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.PaymentFrequency; import com.apideck.unify.models.components.PaymentUnit; import com.apideck.unify.models.components.PersonInput; import com.apideck.unify.models.components.PhoneNumber; @@ -156,7 +155,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -269,10 +268,8 @@ public class Application { EmployeeCompensationInput.builder() .rate(50d) .paymentUnit(PaymentUnit.HOUR) - .currency(Currency.USD) .flsaStatus(FlsaStatus.NONEXEMPT) .effectiveDate("2021-06-11") - .paymentFrequency(PaymentFrequency.MONTHLY) .build())) .worksRemote(true) .addresses(List.of( @@ -429,7 +426,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -504,7 +501,6 @@ import com.apideck.unify.models.components.Gender; import com.apideck.unify.models.components.LeavingReason; import com.apideck.unify.models.components.Manager; import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.PaymentFrequency; import com.apideck.unify.models.components.PaymentUnit; import com.apideck.unify.models.components.PersonInput; import com.apideck.unify.models.components.PhoneNumber; @@ -533,7 +529,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -647,10 +643,8 @@ public class Application { EmployeeCompensationInput.builder() .rate(50d) .paymentUnit(PaymentUnit.HOUR) - .currency(Currency.USD) .flsaStatus(FlsaStatus.NONEXEMPT) .effectiveDate("2021-06-11") - .paymentFrequency(PaymentFrequency.MONTHLY) .build())) .worksRemote(true) .addresses(List.of( @@ -807,7 +801,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/employeeschedules/README.md b/docs/sdks/employeeschedules/README.md index 3c659a1..b05d21d 100644 --- a/docs/sdks/employeeschedules/README.md +++ b/docs/sdks/employeeschedules/README.md @@ -33,7 +33,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/expenses/README.md b/docs/sdks/expenses/README.md index 511438a..d311223 100644 --- a/docs/sdks/expenses/README.md +++ b/docs/sdks/expenses/README.md @@ -36,7 +36,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -114,7 +114,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -233,7 +233,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -313,7 +313,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -435,7 +435,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/files/README.md b/docs/sdks/files/README.md index 6330bfb..cbf3b9a 100644 --- a/docs/sdks/files/README.md +++ b/docs/sdks/files/README.md @@ -43,7 +43,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -105,10 +105,8 @@ Search Files package hello.world; import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.ExtendPaths; import com.apideck.unify.models.components.FilesFilter; import com.apideck.unify.models.components.FilesSearch; -import com.apideck.unify.models.components.PassThroughBody; import com.apideck.unify.models.errors.BadRequestResponse; import com.apideck.unify.models.errors.NotFoundResponse; import com.apideck.unify.models.errors.PaymentRequiredResponse; @@ -117,7 +115,6 @@ import com.apideck.unify.models.errors.UnprocessableResponse; import com.apideck.unify.models.operations.FileStorageFilesSearchRequest; import com.apideck.unify.models.operations.FileStorageFilesSearchResponse; import java.lang.Exception; -import java.util.List; import java.util.Map; public class Application { @@ -126,23 +123,13 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); FileStorageFilesSearchRequest req = FileStorageFilesSearchRequest.builder() .filesSearch(FilesSearch.builder() .query("logo jpg") - .driveId("1234") - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) .build()) .serviceId("salesforce") .passThrough(Map.ofEntries( @@ -212,7 +199,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -284,7 +271,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -364,7 +351,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -430,7 +417,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -497,7 +484,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/filestorage/README.md b/docs/sdks/filestorage/README.md index 00c9c9d..824c6da 100644 --- a/docs/sdks/filestorage/README.md +++ b/docs/sdks/filestorage/README.md @@ -1,2 +1,6 @@ # FileStorage -(*fileStorage()*) \ No newline at end of file +(*fileStorage()*) + +## Overview + +### Available Operations diff --git a/docs/sdks/folders/README.md b/docs/sdks/folders/README.md index 408623a..29a9e05 100644 --- a/docs/sdks/folders/README.md +++ b/docs/sdks/folders/README.md @@ -41,7 +41,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -122,7 +122,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -194,7 +194,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -274,7 +274,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -345,7 +345,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/hris/README.md b/docs/sdks/hris/README.md index 1afa741..7244463 100644 --- a/docs/sdks/hris/README.md +++ b/docs/sdks/hris/README.md @@ -1,2 +1,6 @@ # Hris -(*hris()*) \ No newline at end of file +(*hris()*) + +## Overview + +### Available Operations diff --git a/docs/sdks/invoiceitems/README.md b/docs/sdks/invoiceitems/README.md index 293e2c6..3162997 100644 --- a/docs/sdks/invoiceitems/README.md +++ b/docs/sdks/invoiceitems/README.md @@ -38,7 +38,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -121,7 +121,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -248,7 +248,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -327,7 +327,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -455,7 +455,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/invoices/README.md b/docs/sdks/invoices/README.md index 05841e1..f74ec72 100644 --- a/docs/sdks/invoices/README.md +++ b/docs/sdks/invoices/README.md @@ -42,7 +42,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -142,7 +142,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -380,7 +380,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -471,7 +471,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -712,7 +712,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/issuetracking/README.md b/docs/sdks/issuetracking/README.md index 72fd001..f203c49 100644 --- a/docs/sdks/issuetracking/README.md +++ b/docs/sdks/issuetracking/README.md @@ -1,2 +1,6 @@ # IssueTracking -(*issueTracking()*) \ No newline at end of file +(*issueTracking()*) + +## Overview + +### Available Operations diff --git a/docs/sdks/items/README.md b/docs/sdks/items/README.md deleted file mode 100644 index 0df88c6..0000000 --- a/docs/sdks/items/README.md +++ /dev/null @@ -1,496 +0,0 @@ -# Items -(*pos().items()*) - -## Overview - -### Available Operations - -* [list](#list) - List Items -* [create](#create) - Create Item -* [get](#get) - Get Item -* [update](#update) - Update Item -* [delete](#delete) - Delete Item - -## list - -List Items - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosItemsAllRequest; -import com.apideck.unify.models.operations.PosItemsAllResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosItemsAllRequest req = PosItemsAllRequest.builder() - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosItemsAllResponse res = sdk.pos().items().list() - .request(req) - .call(); - - if (res.getItemsResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `request` | [PosItemsAllRequest](../../models/operations/PosItemsAllRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosItemsAllResponse](../../models/operations/PosItemsAllResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## create - -Create Item - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.ItemCategoriesInput; -import com.apideck.unify.models.components.ItemInput; -import com.apideck.unify.models.components.ItemModifierGroups; -import com.apideck.unify.models.components.ItemOptions; -import com.apideck.unify.models.components.ItemPricingType; -import com.apideck.unify.models.components.ItemVariations; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.PricingType; -import com.apideck.unify.models.components.ProductType; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosItemsAddRequest; -import com.apideck.unify.models.operations.PosItemsAddResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosItemsAddRequest req = PosItemsAddRequest.builder() - .item(ItemInput.builder() - .name("Cocoa") - .id("#cocoa") - .idempotencyKey("random_string") - .description("Hot Chocolate") - .abbreviation("Ch") - .productType(ProductType.REGULAR) - .priceAmount(10d) - .pricingType(PricingType.FIXED) - .priceCurrency(Currency.USD) - .cost(2d) - .taxIds(List.of( - "12345", - "67890")) - .isRevenue(false) - .useDefaultTaxRates(false) - .absentAtLocationIds(List.of( - "12345", - "67890")) - .presentAtAllLocations(false) - .availableForPickup(false) - .availableOnline(false) - .sku("11910345") - .code("11910345") - .categories(List.of( - ItemCategoriesInput.builder() - .name("Food") - .imageIds(List.of( - "12345", - "67890")) - .build())) - .options(List.of( - ItemOptions.builder() - .id("12345") - .name("Option 1") - .attributeId("12345") - .build())) - .variations(List.of( - ItemVariations.builder() - .name("Food") - .sku("11910345") - .sequence(0d) - .pricingType(ItemPricingType.FIXED) - .priceAmount(10d) - .priceCurrency(Currency.USD) - .stockable(false) - .presentAtAllLocations(false) - .build())) - .modifierGroups(List.of( - ItemModifierGroups.builder() - .build())) - .available(true) - .hidden(true) - .deleted(true) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosItemsAddResponse res = sdk.pos().items().create() - .request(req) - .call(); - - if (res.createItemResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `request` | [PosItemsAddRequest](../../models/operations/PosItemsAddRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosItemsAddResponse](../../models/operations/PosItemsAddResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## get - -Get Item - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosItemsOneRequest; -import com.apideck.unify.models.operations.PosItemsOneResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosItemsOneRequest req = PosItemsOneRequest.builder() - .id("") - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosItemsOneResponse res = sdk.pos().items().get() - .request(req) - .call(); - - if (res.getItemResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `request` | [PosItemsOneRequest](../../models/operations/PosItemsOneRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosItemsOneResponse](../../models/operations/PosItemsOneResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Update Item - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.ItemCategoriesInput; -import com.apideck.unify.models.components.ItemInput; -import com.apideck.unify.models.components.ItemModifierGroups; -import com.apideck.unify.models.components.ItemOptions; -import com.apideck.unify.models.components.ItemPricingType; -import com.apideck.unify.models.components.ItemVariations; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.PricingType; -import com.apideck.unify.models.components.ProductType; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosItemsUpdateRequest; -import com.apideck.unify.models.operations.PosItemsUpdateResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosItemsUpdateRequest req = PosItemsUpdateRequest.builder() - .id("") - .item(ItemInput.builder() - .name("Cocoa") - .id("#cocoa") - .idempotencyKey("random_string") - .description("Hot Chocolate") - .abbreviation("Ch") - .productType(ProductType.REGULAR) - .priceAmount(10d) - .pricingType(PricingType.FIXED) - .priceCurrency(Currency.USD) - .cost(2d) - .taxIds(List.of( - "12345", - "67890")) - .isRevenue(false) - .useDefaultTaxRates(false) - .absentAtLocationIds(List.of( - "12345", - "67890")) - .presentAtAllLocations(false) - .availableForPickup(false) - .availableOnline(false) - .sku("11910345") - .code("11910345") - .categories(List.of( - ItemCategoriesInput.builder() - .name("Food") - .imageIds(List.of( - "12345", - "67890")) - .build())) - .options(List.of( - ItemOptions.builder() - .id("12345") - .name("Option 1") - .attributeId("12345") - .build())) - .variations(List.of( - ItemVariations.builder() - .name("Food") - .sku("11910345") - .sequence(0d) - .pricingType(ItemPricingType.FIXED) - .priceAmount(10d) - .priceCurrency(Currency.USD) - .stockable(false) - .presentAtAllLocations(false) - .build())) - .modifierGroups(List.of( - ItemModifierGroups.builder() - .build())) - .available(true) - .hidden(true) - .deleted(true) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosItemsUpdateResponse res = sdk.pos().items().update() - .request(req) - .call(); - - if (res.updateItemResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [PosItemsUpdateRequest](../../models/operations/PosItemsUpdateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosItemsUpdateResponse](../../models/operations/PosItemsUpdateResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete Item - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosItemsDeleteRequest; -import com.apideck.unify.models.operations.PosItemsDeleteResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosItemsDeleteRequest req = PosItemsDeleteRequest.builder() - .id("") - .serviceId("salesforce") - .build(); - - PosItemsDeleteResponse res = sdk.pos().items().delete() - .request(req) - .call(); - - if (res.deleteItemResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [PosItemsDeleteRequest](../../models/operations/PosItemsDeleteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosItemsDeleteResponse](../../models/operations/PosItemsDeleteResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index f81ded9..a63404a 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -34,7 +34,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -102,7 +102,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/journalentries/README.md b/docs/sdks/journalentries/README.md index c9bde89..122464e 100644 --- a/docs/sdks/journalentries/README.md +++ b/docs/sdks/journalentries/README.md @@ -42,7 +42,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -133,7 +133,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -284,7 +284,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -367,7 +367,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -519,7 +519,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/lead/README.md b/docs/sdks/lead/README.md deleted file mode 100644 index 14e1b6c..0000000 --- a/docs/sdks/lead/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# Lead -(*lead()*) \ No newline at end of file diff --git a/docs/sdks/leads/README.md b/docs/sdks/leads/README.md index 0e13b0c..a3d8a53 100644 --- a/docs/sdks/leads/README.md +++ b/docs/sdks/leads/README.md @@ -41,14 +41,13 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); CrmLeadsAllRequest req = CrmLeadsAllRequest.builder() .serviceId("salesforce") .filter(LeadsFilter.builder() - .name("Elon Musk") .firstName("Elon") .lastName("Musk") .email("elon@tesla.com") @@ -137,7 +136,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -293,7 +292,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -378,7 +377,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -537,7 +536,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/ledgeraccounts/README.md b/docs/sdks/ledgeraccounts/README.md index a80f0a6..04c5e1e 100644 --- a/docs/sdks/ledgeraccounts/README.md +++ b/docs/sdks/ledgeraccounts/README.md @@ -42,7 +42,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -131,7 +131,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -248,7 +248,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -329,7 +329,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -447,7 +447,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/locations/README.md b/docs/sdks/locations/README.md index e301cf7..c3de1df 100644 --- a/docs/sdks/locations/README.md +++ b/docs/sdks/locations/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -115,7 +115,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -227,7 +227,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -303,7 +303,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -416,7 +416,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/logs/README.md b/docs/sdks/logs/README.md index 0728088..9c9933e 100644 --- a/docs/sdks/logs/README.md +++ b/docs/sdks/logs/README.md @@ -34,7 +34,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/merchants/README.md b/docs/sdks/merchants/README.md deleted file mode 100644 index 8b9e295..0000000 --- a/docs/sdks/merchants/README.md +++ /dev/null @@ -1,464 +0,0 @@ -# Merchants -(*pos().merchants()*) - -## Overview - -### Available Operations - -* [list](#list) - List Merchants -* [create](#create) - Create Merchant -* [get](#get) - Get Merchant -* [update](#update) - Update Merchant -* [delete](#delete) - Delete Merchant - -## list - -List Merchants - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosMerchantsAllRequest; -import com.apideck.unify.models.operations.PosMerchantsAllResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosMerchantsAllRequest req = PosMerchantsAllRequest.builder() - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosMerchantsAllResponse res = sdk.pos().merchants().list() - .request(req) - .call(); - - if (res.getMerchantsResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [PosMerchantsAllRequest](../../models/operations/PosMerchantsAllRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosMerchantsAllResponse](../../models/operations/PosMerchantsAllResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## create - -Create Merchant - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Address; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.MerchantInput; -import com.apideck.unify.models.components.MerchantStatus; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.ServiceChargeInput; -import com.apideck.unify.models.components.Type; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosMerchantsAddRequest; -import com.apideck.unify.models.operations.PosMerchantsAddResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosMerchantsAddRequest req = PosMerchantsAddRequest.builder() - .merchant(MerchantInput.builder() - .name("Dunkin Donuts") - .address(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .ownerId("12345") - .mainLocationId("12345") - .status(MerchantStatus.ACTIVE) - .serviceCharges(List.of( - ServiceChargeInput.builder() - .name("Charge for delivery") - .amount(27500d) - .percentage(12.5d) - .currency(Currency.USD) - .active(true) - .build())) - .language("EN") - .currency(Currency.USD) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosMerchantsAddResponse res = sdk.pos().merchants().create() - .request(req) - .call(); - - if (res.createMerchantResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [PosMerchantsAddRequest](../../models/operations/PosMerchantsAddRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosMerchantsAddResponse](../../models/operations/PosMerchantsAddResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## get - -Get Merchant - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosMerchantsOneRequest; -import com.apideck.unify.models.operations.PosMerchantsOneResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosMerchantsOneRequest req = PosMerchantsOneRequest.builder() - .id("") - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosMerchantsOneResponse res = sdk.pos().merchants().get() - .request(req) - .call(); - - if (res.getMerchantResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [PosMerchantsOneRequest](../../models/operations/PosMerchantsOneRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosMerchantsOneResponse](../../models/operations/PosMerchantsOneResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Update Merchant - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Address; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.MerchantInput; -import com.apideck.unify.models.components.MerchantStatus; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.ServiceChargeInput; -import com.apideck.unify.models.components.Type; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosMerchantsUpdateRequest; -import com.apideck.unify.models.operations.PosMerchantsUpdateResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosMerchantsUpdateRequest req = PosMerchantsUpdateRequest.builder() - .id("") - .merchant(MerchantInput.builder() - .name("Dunkin Donuts") - .address(Address.builder() - .id("123") - .type(Type.PRIMARY) - .string("25 Spring Street, Blackburn, VIC 3130") - .name("HQ US") - .line1("Main street") - .line2("apt #") - .line3("Suite #") - .line4("delivery instructions") - .streetNumber("25") - .city("San Francisco") - .state("CA") - .postalCode("94104") - .country("US") - .latitude("40.759211") - .longitude("-73.984638") - .county("Santa Clara") - .contactName("Elon Musk") - .salutation("Mr") - .phoneNumber("111-111-1111") - .fax("122-111-1111") - .email("elon@musk.com") - .website("https://elonmusk.com") - .notes("Address notes or delivery instructions.") - .rowVersion("1-12345") - .build()) - .ownerId("12345") - .mainLocationId("12345") - .status(MerchantStatus.ACTIVE) - .serviceCharges(List.of( - ServiceChargeInput.builder() - .name("Charge for delivery") - .amount(27500d) - .percentage(12.5d) - .currency(Currency.USD) - .active(true) - .build())) - .language("EN") - .currency(Currency.USD) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosMerchantsUpdateResponse res = sdk.pos().merchants().update() - .request(req) - .call(); - - if (res.updateMerchantResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `request` | [PosMerchantsUpdateRequest](../../models/operations/PosMerchantsUpdateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosMerchantsUpdateResponse](../../models/operations/PosMerchantsUpdateResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete Merchant - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosMerchantsDeleteRequest; -import com.apideck.unify.models.operations.PosMerchantsDeleteResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosMerchantsDeleteRequest req = PosMerchantsDeleteRequest.builder() - .id("") - .serviceId("salesforce") - .build(); - - PosMerchantsDeleteResponse res = sdk.pos().merchants().delete() - .request(req) - .call(); - - if (res.deleteMerchantResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `request` | [PosMerchantsDeleteRequest](../../models/operations/PosMerchantsDeleteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosMerchantsDeleteResponse](../../models/operations/PosMerchantsDeleteResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/messages/README.md b/docs/sdks/messages/README.md index e6136b2..fb2bda6 100644 --- a/docs/sdks/messages/README.md +++ b/docs/sdks/messages/README.md @@ -36,7 +36,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -109,7 +109,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -194,7 +194,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -268,7 +268,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -354,7 +354,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/modifiergroups/README.md b/docs/sdks/modifiergroups/README.md deleted file mode 100644 index 38fb46f..0000000 --- a/docs/sdks/modifiergroups/README.md +++ /dev/null @@ -1,414 +0,0 @@ -# ModifierGroups -(*pos().modifierGroups()*) - -## Overview - -### Available Operations - -* [list](#list) - List Modifier Groups -* [create](#create) - Create Modifier Group -* [get](#get) - Get Modifier Group -* [update](#update) - Update Modifier Group -* [delete](#delete) - Delete Modifier Group - -## list - -List Modifier Groups - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifierGroupsAllRequest; -import com.apideck.unify.models.operations.PosModifierGroupsAllResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosModifierGroupsAllRequest req = PosModifierGroupsAllRequest.builder() - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosModifierGroupsAllResponse res = sdk.pos().modifierGroups().list() - .request(req) - .call(); - - if (res.getModifierGroupsResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `request` | [PosModifierGroupsAllRequest](../../models/operations/PosModifierGroupsAllRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosModifierGroupsAllResponse](../../models/operations/PosModifierGroupsAllResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## create - -Create Modifier Group - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers; -import com.apideck.unify.models.components.ModifierGroupInput; -import com.apideck.unify.models.components.Modifiers; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifierGroupsAddRequest; -import com.apideck.unify.models.operations.PosModifierGroupsAddResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosModifierGroupsAddRequest req = PosModifierGroupsAddRequest.builder() - .modifierGroup(ModifierGroupInput.builder() - .name("Modifier") - .alternateName("Modifier New") - .minimumRequired(1L) - .maximumAllowed(5L) - .selectionType(IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.SINGLE) - .presentAtAllLocations(false) - .modifiers(List.of( - Modifiers.builder() - .id("12345") - .name("Modifier") - .alternateName("Modifier New") - .priceAmount(10d) - .currency(Currency.USD) - .available(true) - .build())) - .deleted(true) - .rowVersion("1-12345") - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosModifierGroupsAddResponse res = sdk.pos().modifierGroups().create() - .request(req) - .call(); - - if (res.createModifierGroupResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `request` | [PosModifierGroupsAddRequest](../../models/operations/PosModifierGroupsAddRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosModifierGroupsAddResponse](../../models/operations/PosModifierGroupsAddResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## get - -Get Modifier Group - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifierGroupsOneRequest; -import com.apideck.unify.models.operations.PosModifierGroupsOneResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosModifierGroupsOneRequest req = PosModifierGroupsOneRequest.builder() - .id("") - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosModifierGroupsOneResponse res = sdk.pos().modifierGroups().get() - .request(req) - .call(); - - if (res.getModifierGroupResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `request` | [PosModifierGroupsOneRequest](../../models/operations/PosModifierGroupsOneRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosModifierGroupsOneResponse](../../models/operations/PosModifierGroupsOneResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Update Modifier Group - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers; -import com.apideck.unify.models.components.ModifierGroupInput; -import com.apideck.unify.models.components.Modifiers; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifierGroupsUpdateRequest; -import com.apideck.unify.models.operations.PosModifierGroupsUpdateResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosModifierGroupsUpdateRequest req = PosModifierGroupsUpdateRequest.builder() - .id("") - .modifierGroup(ModifierGroupInput.builder() - .name("Modifier") - .alternateName("Modifier New") - .minimumRequired(1L) - .maximumAllowed(5L) - .selectionType(IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.SINGLE) - .presentAtAllLocations(false) - .modifiers(List.of( - Modifiers.builder() - .id("12345") - .name("Modifier") - .alternateName("Modifier New") - .priceAmount(10d) - .currency(Currency.USD) - .available(true) - .build())) - .deleted(true) - .rowVersion("1-12345") - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosModifierGroupsUpdateResponse res = sdk.pos().modifierGroups().update() - .request(req) - .call(); - - if (res.updateModifierGroupResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `request` | [PosModifierGroupsUpdateRequest](../../models/operations/PosModifierGroupsUpdateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosModifierGroupsUpdateResponse](../../models/operations/PosModifierGroupsUpdateResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete Modifier Group - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifierGroupsDeleteRequest; -import com.apideck.unify.models.operations.PosModifierGroupsDeleteResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosModifierGroupsDeleteRequest req = PosModifierGroupsDeleteRequest.builder() - .id("") - .serviceId("salesforce") - .build(); - - PosModifierGroupsDeleteResponse res = sdk.pos().modifierGroups().delete() - .request(req) - .call(); - - if (res.deleteModifierGroupResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `request` | [PosModifierGroupsDeleteRequest](../../models/operations/PosModifierGroupsDeleteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosModifierGroupsDeleteResponse](../../models/operations/PosModifierGroupsDeleteResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/modifiers/README.md b/docs/sdks/modifiers/README.md deleted file mode 100644 index e0bb601..0000000 --- a/docs/sdks/modifiers/README.md +++ /dev/null @@ -1,398 +0,0 @@ -# Modifiers -(*pos().modifiers()*) - -## Overview - -### Available Operations - -* [list](#list) - List Modifiers -* [create](#create) - Create Modifier -* [get](#get) - Get Modifier -* [update](#update) - Update Modifier -* [delete](#delete) - Delete Modifier - -## list - -List Modifiers - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifiersAllRequest; -import com.apideck.unify.models.operations.PosModifiersAllResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosModifiersAllRequest req = PosModifiersAllRequest.builder() - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosModifiersAllResponse res = sdk.pos().modifiers().list() - .request(req) - .call(); - - if (res.getModifiersResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [PosModifiersAllRequest](../../models/operations/PosModifiersAllRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosModifiersAllResponse](../../models/operations/PosModifiersAllResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## create - -Create Modifier - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.ModifierInput; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifiersAddRequest; -import com.apideck.unify.models.operations.PosModifiersAddResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosModifiersAddRequest req = PosModifiersAddRequest.builder() - .modifier(ModifierInput.builder() - .name("Modifier") - .modifierGroupId("123") - .idempotencyKey("random_string") - .alternateName("Modifier New") - .priceAmount(10d) - .currency(Currency.USD) - .available(true) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosModifiersAddResponse res = sdk.pos().modifiers().create() - .request(req) - .call(); - - if (res.createModifierResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [PosModifiersAddRequest](../../models/operations/PosModifiersAddRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosModifiersAddResponse](../../models/operations/PosModifiersAddResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## get - -Get Modifier - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.ModifierGroupFilter; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifiersOneRequest; -import com.apideck.unify.models.operations.PosModifiersOneResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosModifiersOneRequest req = PosModifiersOneRequest.builder() - .id("") - .serviceId("salesforce") - .filter(ModifierGroupFilter.builder() - .modifierGroupId("1234") - .build()) - .fields("id,updated_at") - .build(); - - PosModifiersOneResponse res = sdk.pos().modifiers().get() - .request(req) - .call(); - - if (res.getModifierResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [PosModifiersOneRequest](../../models/operations/PosModifiersOneRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosModifiersOneResponse](../../models/operations/PosModifiersOneResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Update Modifier - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.Currency; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.ModifierInput; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifiersUpdateRequest; -import com.apideck.unify.models.operations.PosModifiersUpdateResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosModifiersUpdateRequest req = PosModifiersUpdateRequest.builder() - .id("") - .modifier(ModifierInput.builder() - .name("Modifier") - .modifierGroupId("123") - .idempotencyKey("random_string") - .alternateName("Modifier New") - .priceAmount(10d) - .currency(Currency.USD) - .available(true) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosModifiersUpdateResponse res = sdk.pos().modifiers().update() - .request(req) - .call(); - - if (res.updateModifierResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `request` | [PosModifiersUpdateRequest](../../models/operations/PosModifiersUpdateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosModifiersUpdateResponse](../../models/operations/PosModifiersUpdateResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete Modifier - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.ModifierGroupFilter; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifiersDeleteRequest; -import com.apideck.unify.models.operations.PosModifiersDeleteResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosModifiersDeleteRequest req = PosModifiersDeleteRequest.builder() - .id("") - .serviceId("salesforce") - .filter(ModifierGroupFilter.builder() - .modifierGroupId("1234") - .build()) - .build(); - - PosModifiersDeleteResponse res = sdk.pos().modifiers().delete() - .request(req) - .call(); - - if (res.deleteModifierResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `request` | [PosModifiersDeleteRequest](../../models/operations/PosModifiersDeleteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosModifiersDeleteResponse](../../models/operations/PosModifiersDeleteResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/notes/README.md b/docs/sdks/notes/README.md index 0170fb1..9996e51 100644 --- a/docs/sdks/notes/README.md +++ b/docs/sdks/notes/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -110,7 +110,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -194,7 +194,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -266,7 +266,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -351,7 +351,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/opportunities/README.md b/docs/sdks/opportunities/README.md index afe0de1..f6b3ba9 100644 --- a/docs/sdks/opportunities/README.md +++ b/docs/sdks/opportunities/README.md @@ -41,20 +41,15 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); CrmOpportunitiesAllRequest req = CrmOpportunitiesAllRequest.builder() .serviceId("salesforce") .filter(OpportunitiesFilter.builder() - .title("Tesla deal") .status("Completed") .monetaryAmount(75000d) - .winProbability(50d) - .companyId("1234") - .ownerId("1234") - .primaryContactId("1234") .build()) .sort(OpportunitiesSort.builder() .by(OpportunitiesSortBy.CREATED_AT) @@ -132,7 +127,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -244,7 +239,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -322,7 +317,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -437,7 +432,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index 5996459..8925b9c 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -38,7 +38,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -116,7 +116,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/ordertypes/README.md b/docs/sdks/ordertypes/README.md deleted file mode 100644 index 11b840c..0000000 --- a/docs/sdks/ordertypes/README.md +++ /dev/null @@ -1,378 +0,0 @@ -# OrderTypes -(*pos().orderTypes()*) - -## Overview - -### Available Operations - -* [list](#list) - List Order Types -* [create](#create) - Create Order Type -* [get](#get) - Get Order Type -* [update](#update) - Update Order Type -* [delete](#delete) - Delete Order Type - -## list - -List Order Types - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrderTypesAllRequest; -import com.apideck.unify.models.operations.PosOrderTypesAllResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosOrderTypesAllRequest req = PosOrderTypesAllRequest.builder() - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosOrderTypesAllResponse res = sdk.pos().orderTypes().list() - .request(req) - .call(); - - if (res.getOrderTypesResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `request` | [PosOrderTypesAllRequest](../../models/operations/PosOrderTypesAllRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosOrderTypesAllResponse](../../models/operations/PosOrderTypesAllResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## create - -Create Order Type - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.OrderTypeInput; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrderTypesAddRequest; -import com.apideck.unify.models.operations.PosOrderTypesAddResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosOrderTypesAddRequest req = PosOrderTypesAddRequest.builder() - .orderType(OrderTypeInput.builder() - .name("Default order type") - .default_(true) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosOrderTypesAddResponse res = sdk.pos().orderTypes().create() - .request(req) - .call(); - - if (res.createOrderTypeResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `request` | [PosOrderTypesAddRequest](../../models/operations/PosOrderTypesAddRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosOrderTypesAddResponse](../../models/operations/PosOrderTypesAddResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## get - -Get Order Type - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrderTypesOneRequest; -import com.apideck.unify.models.operations.PosOrderTypesOneResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosOrderTypesOneRequest req = PosOrderTypesOneRequest.builder() - .id("") - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosOrderTypesOneResponse res = sdk.pos().orderTypes().get() - .request(req) - .call(); - - if (res.getOrderTypeResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `request` | [PosOrderTypesOneRequest](../../models/operations/PosOrderTypesOneRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosOrderTypesOneResponse](../../models/operations/PosOrderTypesOneResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Update Order Type - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.OrderTypeInput; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrderTypesUpdateRequest; -import com.apideck.unify.models.operations.PosOrderTypesUpdateResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosOrderTypesUpdateRequest req = PosOrderTypesUpdateRequest.builder() - .id("") - .orderType(OrderTypeInput.builder() - .name("Default order type") - .default_(true) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosOrderTypesUpdateResponse res = sdk.pos().orderTypes().update() - .request(req) - .call(); - - if (res.updateOrderTypeResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `request` | [PosOrderTypesUpdateRequest](../../models/operations/PosOrderTypesUpdateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosOrderTypesUpdateResponse](../../models/operations/PosOrderTypesUpdateResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete Order Type - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrderTypesDeleteRequest; -import com.apideck.unify.models.operations.PosOrderTypesDeleteResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosOrderTypesDeleteRequest req = PosOrderTypesDeleteRequest.builder() - .id("") - .serviceId("salesforce") - .build(); - - PosOrderTypesDeleteResponse res = sdk.pos().orderTypes().delete() - .request(req) - .call(); - - if (res.deleteOrderTypeResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `request` | [PosOrderTypesDeleteRequest](../../models/operations/PosOrderTypesDeleteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosOrderTypesDeleteResponse](../../models/operations/PosOrderTypesDeleteResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/payments/README.md b/docs/sdks/payments/README.md index 653dc78..35e2099 100644 --- a/docs/sdks/payments/README.md +++ b/docs/sdks/payments/README.md @@ -42,7 +42,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -132,7 +132,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -252,7 +252,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -335,7 +335,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -458,7 +458,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/payrolls/README.md b/docs/sdks/payrolls/README.md index 9203275..0e162d0 100644 --- a/docs/sdks/payrolls/README.md +++ b/docs/sdks/payrolls/README.md @@ -35,7 +35,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -107,7 +107,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/pipelines/README.md b/docs/sdks/pipelines/README.md index 3c77a3a..bc2a867 100644 --- a/docs/sdks/pipelines/README.md +++ b/docs/sdks/pipelines/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -112,7 +112,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -202,7 +202,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -276,7 +276,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -367,7 +367,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/pos/README.md b/docs/sdks/pos/README.md deleted file mode 100644 index 86f0323..0000000 --- a/docs/sdks/pos/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# Pos -(*pos()*) \ No newline at end of file diff --git a/docs/sdks/products/README.md b/docs/sdks/products/README.md index eed6825..0069bb2 100644 --- a/docs/sdks/products/README.md +++ b/docs/sdks/products/README.md @@ -34,7 +34,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -102,7 +102,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/profitandloss/README.md b/docs/sdks/profitandloss/README.md index 6fd04fc..3d40b17 100644 --- a/docs/sdks/profitandloss/README.md +++ b/docs/sdks/profitandloss/README.md @@ -34,7 +34,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/purchaseorders/README.md b/docs/sdks/purchaseorders/README.md index 6f75acc..b924392 100644 --- a/docs/sdks/purchaseorders/README.md +++ b/docs/sdks/purchaseorders/README.md @@ -42,7 +42,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -138,7 +138,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -360,7 +360,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -448,7 +448,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -673,7 +673,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index 6445ab2..4e0629d 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -42,12 +42,12 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); VaultSessionsCreateResponse res = sdk.vault().sessions().create() - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .session(Session.builder() .consumerMetadata(ConsumerMetadata.builder() @@ -92,7 +92,7 @@ public class Application { | Parameter | Type | Required | Description | Example | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `consumerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `session` | [Optional\](../../models/components/Session.md) | :heavy_minus_sign: | Additional redirect uri and/or consumer metadata | | diff --git a/docs/sdks/sharedlinks/README.md b/docs/sdks/sharedlinks/README.md index f56f2ae..46a117c 100644 --- a/docs/sdks/sharedlinks/README.md +++ b/docs/sdks/sharedlinks/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -111,7 +111,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -190,7 +190,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -263,7 +263,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -343,7 +343,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/sms/README.md b/docs/sdks/sms/README.md index 4c7ca58..1abc206 100644 --- a/docs/sdks/sms/README.md +++ b/docs/sdks/sms/README.md @@ -1,2 +1,6 @@ # Sms -(*sms()*) \ No newline at end of file +(*sms()*) + +## Overview + +### Available Operations diff --git a/docs/sdks/stores/README.md b/docs/sdks/stores/README.md index dfe9028..da90e8e 100644 --- a/docs/sdks/stores/README.md +++ b/docs/sdks/stores/README.md @@ -32,7 +32,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/subsidiaries/README.md b/docs/sdks/subsidiaries/README.md index 70ab22e..8a20426 100644 --- a/docs/sdks/subsidiaries/README.md +++ b/docs/sdks/subsidiaries/README.md @@ -36,7 +36,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -108,7 +108,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -188,7 +188,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -261,7 +261,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -342,7 +342,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/suppliers/README.md b/docs/sdks/suppliers/README.md index 10aebaa..53cb6c2 100644 --- a/docs/sdks/suppliers/README.md +++ b/docs/sdks/suppliers/README.md @@ -42,7 +42,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -141,7 +141,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -305,7 +305,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -391,7 +391,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -556,7 +556,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/taxrates/README.md b/docs/sdks/taxrates/README.md index c6ec355..536a1f0 100644 --- a/docs/sdks/taxrates/README.md +++ b/docs/sdks/taxrates/README.md @@ -39,7 +39,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -121,7 +121,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -218,7 +218,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -292,7 +292,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -389,7 +389,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/tenders/README.md b/docs/sdks/tenders/README.md deleted file mode 100644 index 1e2b8cd..0000000 --- a/docs/sdks/tenders/README.md +++ /dev/null @@ -1,384 +0,0 @@ -# Tenders -(*pos().tenders()*) - -## Overview - -### Available Operations - -* [list](#list) - List Tenders -* [create](#create) - Create Tender -* [get](#get) - Get Tender -* [update](#update) - Update Tender -* [delete](#delete) - Delete Tender - -## list - -List Tenders - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosTendersAllRequest; -import com.apideck.unify.models.operations.PosTendersAllResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosTendersAllRequest req = PosTendersAllRequest.builder() - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosTendersAllResponse res = sdk.pos().tenders().list() - .request(req) - .call(); - - if (res.getTendersResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `request` | [PosTendersAllRequest](../../models/operations/PosTendersAllRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosTendersAllResponse](../../models/operations/PosTendersAllResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## create - -Create Tender - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.TenderInput; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosTendersAddRequest; -import com.apideck.unify.models.operations.PosTendersAddResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosTendersAddRequest req = PosTendersAddRequest.builder() - .tender(TenderInput.builder() - .key("com.clover.tender.cash") - .label("Cash") - .active(true) - .hidden(true) - .editable(true) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosTendersAddResponse res = sdk.pos().tenders().create() - .request(req) - .call(); - - if (res.createTenderResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `request` | [PosTendersAddRequest](../../models/operations/PosTendersAddRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosTendersAddResponse](../../models/operations/PosTendersAddResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## get - -Get Tender - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosTendersOneRequest; -import com.apideck.unify.models.operations.PosTendersOneResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosTendersOneRequest req = PosTendersOneRequest.builder() - .id("") - .serviceId("salesforce") - .fields("id,updated_at") - .build(); - - PosTendersOneResponse res = sdk.pos().tenders().get() - .request(req) - .call(); - - if (res.getTenderResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `request` | [PosTendersOneRequest](../../models/operations/PosTendersOneRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosTendersOneResponse](../../models/operations/PosTendersOneResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Update Tender - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.ExtendPaths; -import com.apideck.unify.models.components.PassThroughBody; -import com.apideck.unify.models.components.TenderInput; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosTendersUpdateRequest; -import com.apideck.unify.models.operations.PosTendersUpdateResponse; -import java.lang.Exception; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosTendersUpdateRequest req = PosTendersUpdateRequest.builder() - .id("") - .tender(TenderInput.builder() - .key("com.clover.tender.cash") - .label("Cash") - .active(true) - .hidden(true) - .editable(true) - .passThrough(List.of( - PassThroughBody.builder() - .serviceId("") - .extendPaths(List.of( - ExtendPaths.builder() - .path("$.nested.property") - .value(Map.ofEntries(\n Map.entry("TaxClassificationRef", Map.ofEntries(\n Map.entry("value", "EUC-99990201-V1-00020000"))))) - .build())) - .build())) - .build()) - .serviceId("salesforce") - .build(); - - PosTendersUpdateResponse res = sdk.pos().tenders().update() - .request(req) - .call(); - - if (res.updateTenderResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `request` | [PosTendersUpdateRequest](../../models/operations/PosTendersUpdateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosTendersUpdateResponse](../../models/operations/PosTendersUpdateResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete Tender - -### Example Usage - -```java -package hello.world; - -import com.apideck.unify.Apideck; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosTendersDeleteRequest; -import com.apideck.unify.models.operations.PosTendersDeleteResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception { - - Apideck sdk = Apideck.builder() - .apiKey("") - .customerId("test-consumer") - .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") - .build(); - - PosTendersDeleteRequest req = PosTendersDeleteRequest.builder() - .id("") - .serviceId("salesforce") - .build(); - - PosTendersDeleteResponse res = sdk.pos().tenders().delete() - .request(req) - .call(); - - if (res.deleteTenderResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `request` | [PosTendersDeleteRequest](../../models/operations/PosTendersDeleteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PosTendersDeleteResponse](../../models/operations/PosTendersDeleteResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/BadRequestResponse | 400 | application/json | -| models/errors/UnauthorizedResponse | 401 | application/json | -| models/errors/PaymentRequiredResponse | 402 | application/json | -| models/errors/NotFoundResponse | 404 | application/json | -| models/errors/UnprocessableResponse | 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/timeoffrequests/README.md b/docs/sdks/timeoffrequests/README.md index 958d544..aa6c5d2 100644 --- a/docs/sdks/timeoffrequests/README.md +++ b/docs/sdks/timeoffrequests/README.md @@ -39,7 +39,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -124,7 +124,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -217,7 +217,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -294,7 +294,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -389,7 +389,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/trackingcategories/README.md b/docs/sdks/trackingcategories/README.md index e5376e3..0a51bb8 100644 --- a/docs/sdks/trackingcategories/README.md +++ b/docs/sdks/trackingcategories/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -111,7 +111,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -192,7 +192,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -265,7 +265,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -347,7 +347,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/uploadsessions/README.md b/docs/sdks/uploadsessions/README.md index 9e725a1..a9d7d5e 100644 --- a/docs/sdks/uploadsessions/README.md +++ b/docs/sdks/uploadsessions/README.md @@ -40,7 +40,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -121,7 +121,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -189,7 +189,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -255,7 +255,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index 4e57d55..3cc568d 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -37,7 +37,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -116,7 +116,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -247,7 +247,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -325,7 +325,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -457,7 +457,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/validateconnection/README.md b/docs/sdks/validateconnection/README.md index 48acfb9..88dca35 100644 --- a/docs/sdks/validateconnection/README.md +++ b/docs/sdks/validateconnection/README.md @@ -38,7 +38,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/docs/sdks/vault/README.md b/docs/sdks/vault/README.md index 3804cfb..1293f18 100644 --- a/docs/sdks/vault/README.md +++ b/docs/sdks/vault/README.md @@ -1,2 +1,6 @@ # Vault -(*vault()*) \ No newline at end of file +(*vault()*) + +## Overview + +### Available Operations diff --git a/docs/sdks/webhook/README.md b/docs/sdks/webhook/README.md index 1dc8c99..609a033 100644 --- a/docs/sdks/webhook/README.md +++ b/docs/sdks/webhook/README.md @@ -1,2 +1,6 @@ # Webhook -(*webhook()*) \ No newline at end of file +(*webhook()*) + +## Overview + +### Available Operations diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index 7feef92..2b93b1b 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -35,7 +35,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -104,7 +104,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -174,7 +174,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -240,7 +240,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); @@ -311,7 +311,7 @@ public class Application { Apideck sdk = Apideck.builder() .apiKey("") - .customerId("test-consumer") + .consumerId("test-consumer") .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX") .build(); diff --git a/src/main/java/com/apideck/unify/Apideck.java b/src/main/java/com/apideck/unify/Apideck.java index 43fc969..6a01d8e 100644 --- a/src/main/java/com/apideck/unify/Apideck.java +++ b/src/main/java/com/apideck/unify/Apideck.java @@ -39,10 +39,6 @@ public class Apideck { private final Hris hris; - private final Lead lead; - - private final Pos pos; - private final Sms sms; private final IssueTracking issueTracking; @@ -77,14 +73,6 @@ public Hris hris() { return hris; } - public Lead lead() { - return lead; - } - - public Pos pos() { - return pos; - } - public Sms sms() { return sms; } @@ -196,17 +184,17 @@ public Builder retryConfig(RetryConfig retryConfig) { return this; } /** - * Allows setting the customerId parameter for all supported operations. + * Allows setting the consumerId parameter for all supported operations. * - * @param customerId The value to set. + * @param consumerId The value to set. * @return The builder instance. */ - public Builder customerId(String customerId) { + public Builder consumerId(String consumerId) { if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) { this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>()); } - this.sdkConfiguration.globals.get("parameters").get("header").put("customerId", customerId); + this.sdkConfiguration.globals.get("parameters").get("header").put("consumerId", consumerId); return this; } @@ -270,8 +258,6 @@ private Apideck(SDKConfiguration sdkConfiguration) { this.ecommerce = new Ecommerce(sdkConfiguration); this.fileStorage = new FileStorage(sdkConfiguration); this.hris = new Hris(sdkConfiguration); - this.lead = new Lead(sdkConfiguration); - this.pos = new Pos(sdkConfiguration); this.sms = new Sms(sdkConfiguration); this.issueTracking = new IssueTracking(sdkConfiguration); this.connector = new Connector(sdkConfiguration); diff --git a/src/main/java/com/apideck/unify/ApideckLeads.java b/src/main/java/com/apideck/unify/ApideckLeads.java deleted file mode 100644 index ff14c13..0000000 --- a/src/main/java/com/apideck/unify/ApideckLeads.java +++ /dev/null @@ -1,1315 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.components.CreateLeadResponse; -import com.apideck.unify.models.components.DeleteLeadResponse; -import com.apideck.unify.models.components.GetLeadResponse; -import com.apideck.unify.models.components.GetLeadsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateLeadResponse; -import com.apideck.unify.models.errors.APIException; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.LeadLeadsAddRequest; -import com.apideck.unify.models.operations.LeadLeadsAddRequestBuilder; -import com.apideck.unify.models.operations.LeadLeadsAddResponse; -import com.apideck.unify.models.operations.LeadLeadsAllRequest; -import com.apideck.unify.models.operations.LeadLeadsAllRequestBuilder; -import com.apideck.unify.models.operations.LeadLeadsAllResponse; -import com.apideck.unify.models.operations.LeadLeadsDeleteRequest; -import com.apideck.unify.models.operations.LeadLeadsDeleteRequestBuilder; -import com.apideck.unify.models.operations.LeadLeadsDeleteResponse; -import com.apideck.unify.models.operations.LeadLeadsOneRequest; -import com.apideck.unify.models.operations.LeadLeadsOneRequestBuilder; -import com.apideck.unify.models.operations.LeadLeadsOneResponse; -import com.apideck.unify.models.operations.LeadLeadsUpdateRequest; -import com.apideck.unify.models.operations.LeadLeadsUpdateRequestBuilder; -import com.apideck.unify.models.operations.LeadLeadsUpdateResponse; -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; -import com.apideck.unify.utils.BackoffStrategy; -import com.apideck.unify.utils.HTTPClient; -import com.apideck.unify.utils.HTTPRequest; -import com.apideck.unify.utils.Hook.AfterErrorContextImpl; -import com.apideck.unify.utils.Hook.AfterSuccessContextImpl; -import com.apideck.unify.utils.Hook.BeforeRequestContextImpl; -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.Retries.NonRetryableException; -import com.apideck.unify.utils.Retries; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.SerializedBody; -import com.apideck.unify.utils.Utils.JsonShape; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.TimeUnit; - -public class ApideckLeads implements - MethodCallLeadLeadsAll, - MethodCallLeadLeadsAdd, - MethodCallLeadLeadsOne, - MethodCallLeadLeadsUpdate, - MethodCallLeadLeadsDelete { - - private final SDKConfiguration sdkConfiguration; - - ApideckLeads(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * List leads - * List leads - * @return The call builder - */ - public LeadLeadsAllRequestBuilder list() { - return new LeadLeadsAllRequestBuilder(this); - } - - /** - * List leads - * List leads - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public LeadLeadsAllResponse list( - LeadLeadsAllRequest request) throws Exception { - return list(request, Optional.empty()); - } - - /** - * List leads - * List leads - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public LeadLeadsAllResponse list( - LeadLeadsAllRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/lead/leads"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - LeadLeadsAllRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "lead.leadsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "lead.leadsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "lead.leadsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - LeadLeadsAllResponse.Builder _resBuilder = - LeadLeadsAllResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - LeadLeadsAllResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetLeadsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetLeadsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Create lead - * Create lead - * @return The call builder - */ - public LeadLeadsAddRequestBuilder create() { - return new LeadLeadsAddRequestBuilder(this); - } - - /** - * Create lead - * Create lead - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public LeadLeadsAddResponse create( - LeadLeadsAddRequest request) throws Exception { - return create(request, Optional.empty()); - } - - /** - * Create lead - * Create lead - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public LeadLeadsAddResponse create( - LeadLeadsAddRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/lead/leads"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "lead", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - LeadLeadsAddRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "lead.leadsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "lead.leadsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "lead.leadsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - LeadLeadsAddResponse.Builder _resBuilder = - LeadLeadsAddResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - LeadLeadsAddResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - CreateLeadResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withCreateLeadResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Get lead - * Get lead - * @return The call builder - */ - public LeadLeadsOneRequestBuilder get() { - return new LeadLeadsOneRequestBuilder(this); - } - - /** - * Get lead - * Get lead - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public LeadLeadsOneResponse get( - LeadLeadsOneRequest request) throws Exception { - return get(request, Optional.empty()); - } - - /** - * Get lead - * Get lead - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public LeadLeadsOneResponse get( - LeadLeadsOneRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - LeadLeadsOneRequest.class, - _baseUrl, - "/lead/leads/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - LeadLeadsOneRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "lead.leadsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "lead.leadsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "lead.leadsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - LeadLeadsOneResponse.Builder _resBuilder = - LeadLeadsOneResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - LeadLeadsOneResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetLeadResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetLeadResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Update lead - * Update lead - * @return The call builder - */ - public LeadLeadsUpdateRequestBuilder update() { - return new LeadLeadsUpdateRequestBuilder(this); - } - - /** - * Update lead - * Update lead - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public LeadLeadsUpdateResponse update( - LeadLeadsUpdateRequest request) throws Exception { - return update(request, Optional.empty()); - } - - /** - * Update lead - * Update lead - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public LeadLeadsUpdateResponse update( - LeadLeadsUpdateRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - LeadLeadsUpdateRequest.class, - _baseUrl, - "/lead/leads/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "lead", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - LeadLeadsUpdateRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "lead.leadsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "lead.leadsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "lead.leadsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - LeadLeadsUpdateResponse.Builder _resBuilder = - LeadLeadsUpdateResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - LeadLeadsUpdateResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UpdateLeadResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUpdateLeadResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Delete lead - * Delete lead - * @return The call builder - */ - public LeadLeadsDeleteRequestBuilder delete() { - return new LeadLeadsDeleteRequestBuilder(this); - } - - /** - * Delete lead - * Delete lead - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public LeadLeadsDeleteResponse delete( - LeadLeadsDeleteRequest request) throws Exception { - return delete(request, Optional.empty()); - } - - /** - * Delete lead - * Delete lead - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public LeadLeadsDeleteResponse delete( - LeadLeadsDeleteRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - LeadLeadsDeleteRequest.class, - _baseUrl, - "/lead/leads/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - LeadLeadsDeleteRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "lead.leadsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "lead.leadsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "lead.leadsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - LeadLeadsDeleteResponse.Builder _resBuilder = - LeadLeadsDeleteResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - LeadLeadsDeleteResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeleteLeadResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeleteLeadResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - -} diff --git a/src/main/java/com/apideck/unify/ApideckLocations.java b/src/main/java/com/apideck/unify/ApideckLocations.java deleted file mode 100644 index 8b56121..0000000 --- a/src/main/java/com/apideck/unify/ApideckLocations.java +++ /dev/null @@ -1,1315 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.components.CreateLocationResponse; -import com.apideck.unify.models.components.DeleteLocationResponse; -import com.apideck.unify.models.components.GetLocationResponse; -import com.apideck.unify.models.components.GetLocationsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateLocationResponse; -import com.apideck.unify.models.errors.APIException; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosLocationsAddRequest; -import com.apideck.unify.models.operations.PosLocationsAddRequestBuilder; -import com.apideck.unify.models.operations.PosLocationsAddResponse; -import com.apideck.unify.models.operations.PosLocationsAllRequest; -import com.apideck.unify.models.operations.PosLocationsAllRequestBuilder; -import com.apideck.unify.models.operations.PosLocationsAllResponse; -import com.apideck.unify.models.operations.PosLocationsDeleteRequest; -import com.apideck.unify.models.operations.PosLocationsDeleteRequestBuilder; -import com.apideck.unify.models.operations.PosLocationsDeleteResponse; -import com.apideck.unify.models.operations.PosLocationsOneRequest; -import com.apideck.unify.models.operations.PosLocationsOneRequestBuilder; -import com.apideck.unify.models.operations.PosLocationsOneResponse; -import com.apideck.unify.models.operations.PosLocationsUpdateRequest; -import com.apideck.unify.models.operations.PosLocationsUpdateRequestBuilder; -import com.apideck.unify.models.operations.PosLocationsUpdateResponse; -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; -import com.apideck.unify.utils.BackoffStrategy; -import com.apideck.unify.utils.HTTPClient; -import com.apideck.unify.utils.HTTPRequest; -import com.apideck.unify.utils.Hook.AfterErrorContextImpl; -import com.apideck.unify.utils.Hook.AfterSuccessContextImpl; -import com.apideck.unify.utils.Hook.BeforeRequestContextImpl; -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.Retries.NonRetryableException; -import com.apideck.unify.utils.Retries; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.SerializedBody; -import com.apideck.unify.utils.Utils.JsonShape; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.TimeUnit; - -public class ApideckLocations implements - MethodCallPosLocationsAll, - MethodCallPosLocationsAdd, - MethodCallPosLocationsOne, - MethodCallPosLocationsUpdate, - MethodCallPosLocationsDelete { - - private final SDKConfiguration sdkConfiguration; - - ApideckLocations(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * List Locations - * List Locations - * @return The call builder - */ - public PosLocationsAllRequestBuilder list() { - return new PosLocationsAllRequestBuilder(this); - } - - /** - * List Locations - * List Locations - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosLocationsAllResponse list( - PosLocationsAllRequest request) throws Exception { - return list(request, Optional.empty()); - } - - /** - * List Locations - * List Locations - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosLocationsAllResponse list( - PosLocationsAllRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/locations"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosLocationsAllRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.locationsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.locationsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.locationsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosLocationsAllResponse.Builder _resBuilder = - PosLocationsAllResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosLocationsAllResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetLocationsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetLocationsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Create Location - * Create Location - * @return The call builder - */ - public PosLocationsAddRequestBuilder create() { - return new PosLocationsAddRequestBuilder(this); - } - - /** - * Create Location - * Create Location - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosLocationsAddResponse create( - PosLocationsAddRequest request) throws Exception { - return create(request, Optional.empty()); - } - - /** - * Create Location - * Create Location - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosLocationsAddResponse create( - PosLocationsAddRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/locations"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "location", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosLocationsAddRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.locationsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.locationsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.locationsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosLocationsAddResponse.Builder _resBuilder = - PosLocationsAddResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosLocationsAddResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - CreateLocationResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withCreateLocationResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Get Location - * Get Location - * @return The call builder - */ - public PosLocationsOneRequestBuilder get() { - return new PosLocationsOneRequestBuilder(this); - } - - /** - * Get Location - * Get Location - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosLocationsOneResponse get( - PosLocationsOneRequest request) throws Exception { - return get(request, Optional.empty()); - } - - /** - * Get Location - * Get Location - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosLocationsOneResponse get( - PosLocationsOneRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosLocationsOneRequest.class, - _baseUrl, - "/pos/locations/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosLocationsOneRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.locationsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.locationsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.locationsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosLocationsOneResponse.Builder _resBuilder = - PosLocationsOneResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosLocationsOneResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetLocationResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetLocationResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Update Location - * Update Location - * @return The call builder - */ - public PosLocationsUpdateRequestBuilder update() { - return new PosLocationsUpdateRequestBuilder(this); - } - - /** - * Update Location - * Update Location - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosLocationsUpdateResponse update( - PosLocationsUpdateRequest request) throws Exception { - return update(request, Optional.empty()); - } - - /** - * Update Location - * Update Location - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosLocationsUpdateResponse update( - PosLocationsUpdateRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosLocationsUpdateRequest.class, - _baseUrl, - "/pos/locations/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "location", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosLocationsUpdateRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.locationsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.locationsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.locationsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosLocationsUpdateResponse.Builder _resBuilder = - PosLocationsUpdateResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosLocationsUpdateResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UpdateLocationResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUpdateLocationResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Delete Location - * Delete Location - * @return The call builder - */ - public PosLocationsDeleteRequestBuilder delete() { - return new PosLocationsDeleteRequestBuilder(this); - } - - /** - * Delete Location - * Delete Location - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosLocationsDeleteResponse delete( - PosLocationsDeleteRequest request) throws Exception { - return delete(request, Optional.empty()); - } - - /** - * Delete Location - * Delete Location - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosLocationsDeleteResponse delete( - PosLocationsDeleteRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosLocationsDeleteRequest.class, - _baseUrl, - "/pos/locations/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosLocationsDeleteRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.locationsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.locationsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.locationsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosLocationsDeleteResponse.Builder _resBuilder = - PosLocationsDeleteResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosLocationsDeleteResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeleteLocationResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeleteLocationResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - -} diff --git a/src/main/java/com/apideck/unify/ApideckOrders.java b/src/main/java/com/apideck/unify/ApideckOrders.java deleted file mode 100644 index 2126efd..0000000 --- a/src/main/java/com/apideck/unify/ApideckOrders.java +++ /dev/null @@ -1,1579 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.components.CreateOrderResponse; -import com.apideck.unify.models.components.DeleteOrderResponse; -import com.apideck.unify.models.components.GetOrderResponse; -import com.apideck.unify.models.components.GetOrdersResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateOrderResponse; -import com.apideck.unify.models.errors.APIException; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrdersAddRequest; -import com.apideck.unify.models.operations.PosOrdersAddRequestBuilder; -import com.apideck.unify.models.operations.PosOrdersAddResponse; -import com.apideck.unify.models.operations.PosOrdersAllRequest; -import com.apideck.unify.models.operations.PosOrdersAllRequestBuilder; -import com.apideck.unify.models.operations.PosOrdersAllResponse; -import com.apideck.unify.models.operations.PosOrdersDeleteRequest; -import com.apideck.unify.models.operations.PosOrdersDeleteRequestBuilder; -import com.apideck.unify.models.operations.PosOrdersDeleteResponse; -import com.apideck.unify.models.operations.PosOrdersOneRequest; -import com.apideck.unify.models.operations.PosOrdersOneRequestBuilder; -import com.apideck.unify.models.operations.PosOrdersOneResponse; -import com.apideck.unify.models.operations.PosOrdersPayRequest; -import com.apideck.unify.models.operations.PosOrdersPayRequestBuilder; -import com.apideck.unify.models.operations.PosOrdersPayResponse; -import com.apideck.unify.models.operations.PosOrdersUpdateRequest; -import com.apideck.unify.models.operations.PosOrdersUpdateRequestBuilder; -import com.apideck.unify.models.operations.PosOrdersUpdateResponse; -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; -import com.apideck.unify.utils.BackoffStrategy; -import com.apideck.unify.utils.HTTPClient; -import com.apideck.unify.utils.HTTPRequest; -import com.apideck.unify.utils.Hook.AfterErrorContextImpl; -import com.apideck.unify.utils.Hook.AfterSuccessContextImpl; -import com.apideck.unify.utils.Hook.BeforeRequestContextImpl; -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.Retries.NonRetryableException; -import com.apideck.unify.utils.Retries; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.SerializedBody; -import com.apideck.unify.utils.Utils.JsonShape; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.TimeUnit; - -public class ApideckOrders implements - MethodCallPosOrdersAll, - MethodCallPosOrdersAdd, - MethodCallPosOrdersOne, - MethodCallPosOrdersUpdate, - MethodCallPosOrdersDelete, - MethodCallPosOrdersPay { - - private final SDKConfiguration sdkConfiguration; - - ApideckOrders(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * List Orders - * List Orders - * @return The call builder - */ - public PosOrdersAllRequestBuilder list() { - return new PosOrdersAllRequestBuilder(this); - } - - /** - * List Orders - * List Orders - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersAllResponse list( - PosOrdersAllRequest request) throws Exception { - return list(request, Optional.empty()); - } - - /** - * List Orders - * List Orders - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersAllResponse list( - PosOrdersAllRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/orders"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosOrdersAllRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.ordersAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.ordersAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.ordersAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosOrdersAllResponse.Builder _resBuilder = - PosOrdersAllResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosOrdersAllResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetOrdersResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetOrdersResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Create Order - * Create Order - * @return The call builder - */ - public PosOrdersAddRequestBuilder create() { - return new PosOrdersAddRequestBuilder(this); - } - - /** - * Create Order - * Create Order - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersAddResponse create( - PosOrdersAddRequest request) throws Exception { - return create(request, Optional.empty()); - } - - /** - * Create Order - * Create Order - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersAddResponse create( - PosOrdersAddRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/orders"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "order", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosOrdersAddRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.ordersAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.ordersAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.ordersAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosOrdersAddResponse.Builder _resBuilder = - PosOrdersAddResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosOrdersAddResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - CreateOrderResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withCreateOrderResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Get Order - * Get Order - * @return The call builder - */ - public PosOrdersOneRequestBuilder get() { - return new PosOrdersOneRequestBuilder(this); - } - - /** - * Get Order - * Get Order - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersOneResponse get( - PosOrdersOneRequest request) throws Exception { - return get(request, Optional.empty()); - } - - /** - * Get Order - * Get Order - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersOneResponse get( - PosOrdersOneRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosOrdersOneRequest.class, - _baseUrl, - "/pos/orders/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosOrdersOneRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.ordersOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.ordersOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.ordersOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosOrdersOneResponse.Builder _resBuilder = - PosOrdersOneResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosOrdersOneResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetOrderResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetOrderResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Update Order - * Updates an open order by adding, replacing, or deleting fields. Square-only: Orders with a `completed` or `canceled` status cannot be updated. To pay for an order, use the [payments endpoint](#tag/Payments). - * - * @return The call builder - */ - public PosOrdersUpdateRequestBuilder update() { - return new PosOrdersUpdateRequestBuilder(this); - } - - /** - * Update Order - * Updates an open order by adding, replacing, or deleting fields. Square-only: Orders with a `completed` or `canceled` status cannot be updated. To pay for an order, use the [payments endpoint](#tag/Payments). - * - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersUpdateResponse update( - PosOrdersUpdateRequest request) throws Exception { - return update(request, Optional.empty()); - } - - /** - * Update Order - * Updates an open order by adding, replacing, or deleting fields. Square-only: Orders with a `completed` or `canceled` status cannot be updated. To pay for an order, use the [payments endpoint](#tag/Payments). - * - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersUpdateResponse update( - PosOrdersUpdateRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosOrdersUpdateRequest.class, - _baseUrl, - "/pos/orders/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "order", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosOrdersUpdateRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.ordersUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.ordersUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.ordersUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosOrdersUpdateResponse.Builder _resBuilder = - PosOrdersUpdateResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosOrdersUpdateResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UpdateOrderResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUpdateOrderResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Delete Order - * Delete Order - * @return The call builder - */ - public PosOrdersDeleteRequestBuilder delete() { - return new PosOrdersDeleteRequestBuilder(this); - } - - /** - * Delete Order - * Delete Order - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersDeleteResponse delete( - PosOrdersDeleteRequest request) throws Exception { - return delete(request, Optional.empty()); - } - - /** - * Delete Order - * Delete Order - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersDeleteResponse delete( - PosOrdersDeleteRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosOrdersDeleteRequest.class, - _baseUrl, - "/pos/orders/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosOrdersDeleteRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.ordersDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.ordersDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.ordersDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosOrdersDeleteResponse.Builder _resBuilder = - PosOrdersDeleteResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosOrdersDeleteResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeleteOrderResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeleteOrderResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Pay Order - * Pay Order - * @return The call builder - */ - public PosOrdersPayRequestBuilder pay() { - return new PosOrdersPayRequestBuilder(this); - } - - /** - * Pay Order - * Pay Order - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersPayResponse pay( - PosOrdersPayRequest request) throws Exception { - return pay(request, Optional.empty()); - } - - /** - * Pay Order - * Pay Order - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrdersPayResponse pay( - PosOrdersPayRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosOrdersPayRequest.class, - _baseUrl, - "/pos/orders/{id}/pay", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "order", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosOrdersPayRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.ordersPay", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.ordersPay", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.ordersPay", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosOrdersPayResponse.Builder _resBuilder = - PosOrdersPayResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosOrdersPayResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - CreateOrderResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withCreateOrderResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - -} diff --git a/src/main/java/com/apideck/unify/ApideckPayments.java b/src/main/java/com/apideck/unify/ApideckPayments.java deleted file mode 100644 index fe5877c..0000000 --- a/src/main/java/com/apideck/unify/ApideckPayments.java +++ /dev/null @@ -1,1315 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.components.CreatePosPaymentResponse; -import com.apideck.unify.models.components.DeletePosPaymentResponse; -import com.apideck.unify.models.components.GetPosPaymentResponse; -import com.apideck.unify.models.components.GetPosPaymentsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdatePosPaymentResponse; -import com.apideck.unify.models.errors.APIException; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosPaymentsAddRequest; -import com.apideck.unify.models.operations.PosPaymentsAddRequestBuilder; -import com.apideck.unify.models.operations.PosPaymentsAddResponse; -import com.apideck.unify.models.operations.PosPaymentsAllRequest; -import com.apideck.unify.models.operations.PosPaymentsAllRequestBuilder; -import com.apideck.unify.models.operations.PosPaymentsAllResponse; -import com.apideck.unify.models.operations.PosPaymentsDeleteRequest; -import com.apideck.unify.models.operations.PosPaymentsDeleteRequestBuilder; -import com.apideck.unify.models.operations.PosPaymentsDeleteResponse; -import com.apideck.unify.models.operations.PosPaymentsOneRequest; -import com.apideck.unify.models.operations.PosPaymentsOneRequestBuilder; -import com.apideck.unify.models.operations.PosPaymentsOneResponse; -import com.apideck.unify.models.operations.PosPaymentsUpdateRequest; -import com.apideck.unify.models.operations.PosPaymentsUpdateRequestBuilder; -import com.apideck.unify.models.operations.PosPaymentsUpdateResponse; -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; -import com.apideck.unify.utils.BackoffStrategy; -import com.apideck.unify.utils.HTTPClient; -import com.apideck.unify.utils.HTTPRequest; -import com.apideck.unify.utils.Hook.AfterErrorContextImpl; -import com.apideck.unify.utils.Hook.AfterSuccessContextImpl; -import com.apideck.unify.utils.Hook.BeforeRequestContextImpl; -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.Retries.NonRetryableException; -import com.apideck.unify.utils.Retries; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.SerializedBody; -import com.apideck.unify.utils.Utils.JsonShape; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.TimeUnit; - -public class ApideckPayments implements - MethodCallPosPaymentsAll, - MethodCallPosPaymentsAdd, - MethodCallPosPaymentsOne, - MethodCallPosPaymentsUpdate, - MethodCallPosPaymentsDelete { - - private final SDKConfiguration sdkConfiguration; - - ApideckPayments(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * List Payments - * List Payments - * @return The call builder - */ - public PosPaymentsAllRequestBuilder list() { - return new PosPaymentsAllRequestBuilder(this); - } - - /** - * List Payments - * List Payments - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosPaymentsAllResponse list( - PosPaymentsAllRequest request) throws Exception { - return list(request, Optional.empty()); - } - - /** - * List Payments - * List Payments - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosPaymentsAllResponse list( - PosPaymentsAllRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/payments"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosPaymentsAllRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.paymentsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.paymentsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.paymentsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosPaymentsAllResponse.Builder _resBuilder = - PosPaymentsAllResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosPaymentsAllResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetPosPaymentsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetPosPaymentsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Create Payment - * Create Payment - * @return The call builder - */ - public PosPaymentsAddRequestBuilder create() { - return new PosPaymentsAddRequestBuilder(this); - } - - /** - * Create Payment - * Create Payment - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosPaymentsAddResponse create( - PosPaymentsAddRequest request) throws Exception { - return create(request, Optional.empty()); - } - - /** - * Create Payment - * Create Payment - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosPaymentsAddResponse create( - PosPaymentsAddRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/payments"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "posPayment", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosPaymentsAddRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.paymentsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.paymentsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.paymentsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosPaymentsAddResponse.Builder _resBuilder = - PosPaymentsAddResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosPaymentsAddResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - CreatePosPaymentResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withCreatePosPaymentResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Get Payment - * Get Payment - * @return The call builder - */ - public PosPaymentsOneRequestBuilder get() { - return new PosPaymentsOneRequestBuilder(this); - } - - /** - * Get Payment - * Get Payment - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosPaymentsOneResponse get( - PosPaymentsOneRequest request) throws Exception { - return get(request, Optional.empty()); - } - - /** - * Get Payment - * Get Payment - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosPaymentsOneResponse get( - PosPaymentsOneRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosPaymentsOneRequest.class, - _baseUrl, - "/pos/payments/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosPaymentsOneRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.paymentsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.paymentsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.paymentsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosPaymentsOneResponse.Builder _resBuilder = - PosPaymentsOneResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosPaymentsOneResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetPosPaymentResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetPosPaymentResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Update Payment - * Update Payment - * @return The call builder - */ - public PosPaymentsUpdateRequestBuilder update() { - return new PosPaymentsUpdateRequestBuilder(this); - } - - /** - * Update Payment - * Update Payment - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosPaymentsUpdateResponse update( - PosPaymentsUpdateRequest request) throws Exception { - return update(request, Optional.empty()); - } - - /** - * Update Payment - * Update Payment - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosPaymentsUpdateResponse update( - PosPaymentsUpdateRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosPaymentsUpdateRequest.class, - _baseUrl, - "/pos/payments/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "posPayment", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosPaymentsUpdateRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.paymentsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.paymentsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.paymentsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosPaymentsUpdateResponse.Builder _resBuilder = - PosPaymentsUpdateResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosPaymentsUpdateResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UpdatePosPaymentResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUpdatePosPaymentResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Delete Payment - * Delete Payment - * @return The call builder - */ - public PosPaymentsDeleteRequestBuilder delete() { - return new PosPaymentsDeleteRequestBuilder(this); - } - - /** - * Delete Payment - * Delete Payment - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosPaymentsDeleteResponse delete( - PosPaymentsDeleteRequest request) throws Exception { - return delete(request, Optional.empty()); - } - - /** - * Delete Payment - * Delete Payment - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosPaymentsDeleteResponse delete( - PosPaymentsDeleteRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosPaymentsDeleteRequest.class, - _baseUrl, - "/pos/payments/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosPaymentsDeleteRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.paymentsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.paymentsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.paymentsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosPaymentsDeleteResponse.Builder _resBuilder = - PosPaymentsDeleteResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosPaymentsDeleteResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeletePosPaymentResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeletePosPaymentResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - -} diff --git a/src/main/java/com/apideck/unify/Connections.java b/src/main/java/com/apideck/unify/Connections.java index d450000..18aacb8 100644 --- a/src/main/java/com/apideck/unify/Connections.java +++ b/src/main/java/com/apideck/unify/Connections.java @@ -107,7 +107,7 @@ public VaultConnectionsAllResponse listDirect() throws Exception { * to build an integrations page where your users can install integrations. * OAuth2 supported integrations will contain authorize and revoke links to handle the authentication flows. * - * @param customerId ID of the consumer which you want to get or push data from + * @param consumerId ID of the consumer which you want to get or push data from * @param appId The ID of your Unify application * @param api Scope results to Unified API * @param configured Scopes results to connections that have been configured or not @@ -116,7 +116,7 @@ public VaultConnectionsAllResponse listDirect() throws Exception { * @throws Exception if the API call fails */ public VaultConnectionsAllResponse list( - Optional customerId, + Optional consumerId, Optional appId, Optional api, Optional configured, @@ -128,7 +128,7 @@ public VaultConnectionsAllResponse list( VaultConnectionsAllRequest request = VaultConnectionsAllRequest .builder() - .customerId(customerId) + .consumerId(consumerId) .appId(appId) .api(api) .configured(configured) @@ -366,7 +366,7 @@ public VaultConnectionsOneResponse get( /** * Get connection * Get a connection - * @param customerId ID of the consumer which you want to get or push data from + * @param consumerId ID of the consumer which you want to get or push data from * @param appId The ID of your Unify application * @param serviceId Service ID of the resource to return * @param unifiedApi Unified API @@ -375,7 +375,7 @@ public VaultConnectionsOneResponse get( * @throws Exception if the API call fails */ public VaultConnectionsOneResponse get( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi, @@ -387,7 +387,7 @@ public VaultConnectionsOneResponse get( VaultConnectionsOneRequest request = VaultConnectionsOneRequest .builder() - .customerId(customerId) + .consumerId(consumerId) .appId(appId) .serviceId(serviceId) .unifiedApi(unifiedApi) @@ -874,7 +874,7 @@ public VaultConnectionsDeleteResponse delete( /** * Deletes a connection * Deletes a connection - * @param customerId ID of the consumer which you want to get or push data from + * @param consumerId ID of the consumer which you want to get or push data from * @param appId The ID of your Unify application * @param serviceId Service ID of the resource to return * @param unifiedApi Unified API @@ -883,7 +883,7 @@ public VaultConnectionsDeleteResponse delete( * @throws Exception if the API call fails */ public VaultConnectionsDeleteResponse delete( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi, @@ -895,7 +895,7 @@ public VaultConnectionsDeleteResponse delete( VaultConnectionsDeleteRequest request = VaultConnectionsDeleteRequest .builder() - .customerId(customerId) + .consumerId(consumerId) .appId(appId) .serviceId(serviceId) .unifiedApi(unifiedApi) @@ -1099,7 +1099,7 @@ public VaultConnectionsDeleteResponse delete( * * @return The call builder */ - public VaultConnectionsImportRequestBuilder import_() { + public VaultConnectionsImportRequestBuilder imports() { return new VaultConnectionsImportRequestBuilder(this); } @@ -1111,9 +1111,9 @@ public VaultConnectionsImportRequestBuilder import_() { * @return The response from the API call * @throws Exception if the API call fails */ - public VaultConnectionsImportResponse import_( + public VaultConnectionsImportResponse imports( VaultConnectionsImportRequest request) throws Exception { - return import_(request, Optional.empty()); + return imports(request, Optional.empty()); } /** @@ -1125,7 +1125,7 @@ public VaultConnectionsImportResponse import_( * @return The response from the API call * @throws Exception if the API call fails */ - public VaultConnectionsImportResponse import_( + public VaultConnectionsImportResponse imports( VaultConnectionsImportRequest request, Optional options) throws Exception { diff --git a/src/main/java/com/apideck/unify/CustomMappings.java b/src/main/java/com/apideck/unify/CustomMappings.java index 2ff5575..97ef037 100644 --- a/src/main/java/com/apideck/unify/CustomMappings.java +++ b/src/main/java/com/apideck/unify/CustomMappings.java @@ -75,7 +75,7 @@ public VaultCustomMappingsAllResponse list( /** * List custom mappings * This endpoint returns a list of custom mappings. - * @param customerId ID of the consumer which you want to get or push data from + * @param consumerId ID of the consumer which you want to get or push data from * @param appId The ID of your Unify application * @param unifiedApi Unified API * @param serviceId Service ID of the resource to return @@ -84,7 +84,7 @@ public VaultCustomMappingsAllResponse list( * @throws Exception if the API call fails */ public VaultCustomMappingsAllResponse list( - Optional customerId, + Optional consumerId, Optional appId, String unifiedApi, String serviceId, @@ -96,7 +96,7 @@ public VaultCustomMappingsAllResponse list( VaultCustomMappingsAllRequest request = VaultCustomMappingsAllRequest .builder() - .customerId(customerId) + .consumerId(consumerId) .appId(appId) .unifiedApi(unifiedApi) .serviceId(serviceId) diff --git a/src/main/java/com/apideck/unify/Items.java b/src/main/java/com/apideck/unify/Items.java deleted file mode 100644 index f3bcf11..0000000 --- a/src/main/java/com/apideck/unify/Items.java +++ /dev/null @@ -1,1315 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.components.CreateItemResponse; -import com.apideck.unify.models.components.DeleteItemResponse; -import com.apideck.unify.models.components.GetItemResponse; -import com.apideck.unify.models.components.GetItemsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateItemResponse; -import com.apideck.unify.models.errors.APIException; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosItemsAddRequest; -import com.apideck.unify.models.operations.PosItemsAddRequestBuilder; -import com.apideck.unify.models.operations.PosItemsAddResponse; -import com.apideck.unify.models.operations.PosItemsAllRequest; -import com.apideck.unify.models.operations.PosItemsAllRequestBuilder; -import com.apideck.unify.models.operations.PosItemsAllResponse; -import com.apideck.unify.models.operations.PosItemsDeleteRequest; -import com.apideck.unify.models.operations.PosItemsDeleteRequestBuilder; -import com.apideck.unify.models.operations.PosItemsDeleteResponse; -import com.apideck.unify.models.operations.PosItemsOneRequest; -import com.apideck.unify.models.operations.PosItemsOneRequestBuilder; -import com.apideck.unify.models.operations.PosItemsOneResponse; -import com.apideck.unify.models.operations.PosItemsUpdateRequest; -import com.apideck.unify.models.operations.PosItemsUpdateRequestBuilder; -import com.apideck.unify.models.operations.PosItemsUpdateResponse; -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; -import com.apideck.unify.utils.BackoffStrategy; -import com.apideck.unify.utils.HTTPClient; -import com.apideck.unify.utils.HTTPRequest; -import com.apideck.unify.utils.Hook.AfterErrorContextImpl; -import com.apideck.unify.utils.Hook.AfterSuccessContextImpl; -import com.apideck.unify.utils.Hook.BeforeRequestContextImpl; -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.Retries.NonRetryableException; -import com.apideck.unify.utils.Retries; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.SerializedBody; -import com.apideck.unify.utils.Utils.JsonShape; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.TimeUnit; - -public class Items implements - MethodCallPosItemsAll, - MethodCallPosItemsAdd, - MethodCallPosItemsOne, - MethodCallPosItemsUpdate, - MethodCallPosItemsDelete { - - private final SDKConfiguration sdkConfiguration; - - Items(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * List Items - * List Items - * @return The call builder - */ - public PosItemsAllRequestBuilder list() { - return new PosItemsAllRequestBuilder(this); - } - - /** - * List Items - * List Items - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosItemsAllResponse list( - PosItemsAllRequest request) throws Exception { - return list(request, Optional.empty()); - } - - /** - * List Items - * List Items - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosItemsAllResponse list( - PosItemsAllRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/items"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosItemsAllRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.itemsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.itemsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.itemsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosItemsAllResponse.Builder _resBuilder = - PosItemsAllResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosItemsAllResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetItemsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetItemsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Create Item - * Create Item - * @return The call builder - */ - public PosItemsAddRequestBuilder create() { - return new PosItemsAddRequestBuilder(this); - } - - /** - * Create Item - * Create Item - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosItemsAddResponse create( - PosItemsAddRequest request) throws Exception { - return create(request, Optional.empty()); - } - - /** - * Create Item - * Create Item - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosItemsAddResponse create( - PosItemsAddRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/items"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "item", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosItemsAddRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.itemsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.itemsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.itemsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosItemsAddResponse.Builder _resBuilder = - PosItemsAddResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosItemsAddResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - CreateItemResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withCreateItemResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Get Item - * Get Item - * @return The call builder - */ - public PosItemsOneRequestBuilder get() { - return new PosItemsOneRequestBuilder(this); - } - - /** - * Get Item - * Get Item - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosItemsOneResponse get( - PosItemsOneRequest request) throws Exception { - return get(request, Optional.empty()); - } - - /** - * Get Item - * Get Item - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosItemsOneResponse get( - PosItemsOneRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosItemsOneRequest.class, - _baseUrl, - "/pos/items/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosItemsOneRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.itemsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.itemsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.itemsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosItemsOneResponse.Builder _resBuilder = - PosItemsOneResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosItemsOneResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetItemResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetItemResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Update Item - * Update Item - * @return The call builder - */ - public PosItemsUpdateRequestBuilder update() { - return new PosItemsUpdateRequestBuilder(this); - } - - /** - * Update Item - * Update Item - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosItemsUpdateResponse update( - PosItemsUpdateRequest request) throws Exception { - return update(request, Optional.empty()); - } - - /** - * Update Item - * Update Item - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosItemsUpdateResponse update( - PosItemsUpdateRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosItemsUpdateRequest.class, - _baseUrl, - "/pos/items/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "item", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosItemsUpdateRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.itemsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.itemsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.itemsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosItemsUpdateResponse.Builder _resBuilder = - PosItemsUpdateResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosItemsUpdateResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UpdateItemResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUpdateItemResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Delete Item - * Delete Item - * @return The call builder - */ - public PosItemsDeleteRequestBuilder delete() { - return new PosItemsDeleteRequestBuilder(this); - } - - /** - * Delete Item - * Delete Item - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosItemsDeleteResponse delete( - PosItemsDeleteRequest request) throws Exception { - return delete(request, Optional.empty()); - } - - /** - * Delete Item - * Delete Item - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosItemsDeleteResponse delete( - PosItemsDeleteRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosItemsDeleteRequest.class, - _baseUrl, - "/pos/items/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosItemsDeleteRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.itemsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.itemsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.itemsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosItemsDeleteResponse.Builder _resBuilder = - PosItemsDeleteResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosItemsDeleteResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeleteItemResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeleteItemResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - -} diff --git a/src/main/java/com/apideck/unify/Lead.java b/src/main/java/com/apideck/unify/Lead.java deleted file mode 100644 index 277401b..0000000 --- a/src/main/java/com/apideck/unify/Lead.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; - -public class Lead { - - private final SDKConfiguration sdkConfiguration; - private final ApideckLeads leads; - - Lead(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.leads = new ApideckLeads(this.sdkConfiguration); - } - - public final ApideckLeads leads() { - return leads; - } -} diff --git a/src/main/java/com/apideck/unify/Merchants.java b/src/main/java/com/apideck/unify/Merchants.java deleted file mode 100644 index 074c23c..0000000 --- a/src/main/java/com/apideck/unify/Merchants.java +++ /dev/null @@ -1,1315 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.components.CreateMerchantResponse; -import com.apideck.unify.models.components.DeleteMerchantResponse; -import com.apideck.unify.models.components.GetMerchantResponse; -import com.apideck.unify.models.components.GetMerchantsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateMerchantResponse; -import com.apideck.unify.models.errors.APIException; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosMerchantsAddRequest; -import com.apideck.unify.models.operations.PosMerchantsAddRequestBuilder; -import com.apideck.unify.models.operations.PosMerchantsAddResponse; -import com.apideck.unify.models.operations.PosMerchantsAllRequest; -import com.apideck.unify.models.operations.PosMerchantsAllRequestBuilder; -import com.apideck.unify.models.operations.PosMerchantsAllResponse; -import com.apideck.unify.models.operations.PosMerchantsDeleteRequest; -import com.apideck.unify.models.operations.PosMerchantsDeleteRequestBuilder; -import com.apideck.unify.models.operations.PosMerchantsDeleteResponse; -import com.apideck.unify.models.operations.PosMerchantsOneRequest; -import com.apideck.unify.models.operations.PosMerchantsOneRequestBuilder; -import com.apideck.unify.models.operations.PosMerchantsOneResponse; -import com.apideck.unify.models.operations.PosMerchantsUpdateRequest; -import com.apideck.unify.models.operations.PosMerchantsUpdateRequestBuilder; -import com.apideck.unify.models.operations.PosMerchantsUpdateResponse; -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; -import com.apideck.unify.utils.BackoffStrategy; -import com.apideck.unify.utils.HTTPClient; -import com.apideck.unify.utils.HTTPRequest; -import com.apideck.unify.utils.Hook.AfterErrorContextImpl; -import com.apideck.unify.utils.Hook.AfterSuccessContextImpl; -import com.apideck.unify.utils.Hook.BeforeRequestContextImpl; -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.Retries.NonRetryableException; -import com.apideck.unify.utils.Retries; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.SerializedBody; -import com.apideck.unify.utils.Utils.JsonShape; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.TimeUnit; - -public class Merchants implements - MethodCallPosMerchantsAll, - MethodCallPosMerchantsAdd, - MethodCallPosMerchantsOne, - MethodCallPosMerchantsUpdate, - MethodCallPosMerchantsDelete { - - private final SDKConfiguration sdkConfiguration; - - Merchants(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * List Merchants - * List Merchants - * @return The call builder - */ - public PosMerchantsAllRequestBuilder list() { - return new PosMerchantsAllRequestBuilder(this); - } - - /** - * List Merchants - * List Merchants - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosMerchantsAllResponse list( - PosMerchantsAllRequest request) throws Exception { - return list(request, Optional.empty()); - } - - /** - * List Merchants - * List Merchants - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosMerchantsAllResponse list( - PosMerchantsAllRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/merchants"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosMerchantsAllRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.merchantsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.merchantsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.merchantsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosMerchantsAllResponse.Builder _resBuilder = - PosMerchantsAllResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosMerchantsAllResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetMerchantsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetMerchantsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Create Merchant - * Create Merchant - * @return The call builder - */ - public PosMerchantsAddRequestBuilder create() { - return new PosMerchantsAddRequestBuilder(this); - } - - /** - * Create Merchant - * Create Merchant - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosMerchantsAddResponse create( - PosMerchantsAddRequest request) throws Exception { - return create(request, Optional.empty()); - } - - /** - * Create Merchant - * Create Merchant - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosMerchantsAddResponse create( - PosMerchantsAddRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/merchants"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "merchant", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosMerchantsAddRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.merchantsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.merchantsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.merchantsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosMerchantsAddResponse.Builder _resBuilder = - PosMerchantsAddResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosMerchantsAddResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - CreateMerchantResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withCreateMerchantResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Get Merchant - * Get Merchant - * @return The call builder - */ - public PosMerchantsOneRequestBuilder get() { - return new PosMerchantsOneRequestBuilder(this); - } - - /** - * Get Merchant - * Get Merchant - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosMerchantsOneResponse get( - PosMerchantsOneRequest request) throws Exception { - return get(request, Optional.empty()); - } - - /** - * Get Merchant - * Get Merchant - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosMerchantsOneResponse get( - PosMerchantsOneRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosMerchantsOneRequest.class, - _baseUrl, - "/pos/merchants/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosMerchantsOneRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.merchantsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.merchantsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.merchantsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosMerchantsOneResponse.Builder _resBuilder = - PosMerchantsOneResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosMerchantsOneResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetMerchantResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetMerchantResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Update Merchant - * Update Merchant - * @return The call builder - */ - public PosMerchantsUpdateRequestBuilder update() { - return new PosMerchantsUpdateRequestBuilder(this); - } - - /** - * Update Merchant - * Update Merchant - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosMerchantsUpdateResponse update( - PosMerchantsUpdateRequest request) throws Exception { - return update(request, Optional.empty()); - } - - /** - * Update Merchant - * Update Merchant - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosMerchantsUpdateResponse update( - PosMerchantsUpdateRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosMerchantsUpdateRequest.class, - _baseUrl, - "/pos/merchants/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "merchant", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosMerchantsUpdateRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.merchantsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.merchantsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.merchantsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosMerchantsUpdateResponse.Builder _resBuilder = - PosMerchantsUpdateResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosMerchantsUpdateResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UpdateMerchantResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUpdateMerchantResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Delete Merchant - * Delete Merchant - * @return The call builder - */ - public PosMerchantsDeleteRequestBuilder delete() { - return new PosMerchantsDeleteRequestBuilder(this); - } - - /** - * Delete Merchant - * Delete Merchant - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosMerchantsDeleteResponse delete( - PosMerchantsDeleteRequest request) throws Exception { - return delete(request, Optional.empty()); - } - - /** - * Delete Merchant - * Delete Merchant - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosMerchantsDeleteResponse delete( - PosMerchantsDeleteRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosMerchantsDeleteRequest.class, - _baseUrl, - "/pos/merchants/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosMerchantsDeleteRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.merchantsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.merchantsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.merchantsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosMerchantsDeleteResponse.Builder _resBuilder = - PosMerchantsDeleteResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosMerchantsDeleteResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeleteMerchantResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeleteMerchantResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - -} diff --git a/src/main/java/com/apideck/unify/ModifierGroups.java b/src/main/java/com/apideck/unify/ModifierGroups.java deleted file mode 100644 index 233ed0e..0000000 --- a/src/main/java/com/apideck/unify/ModifierGroups.java +++ /dev/null @@ -1,1315 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.components.CreateModifierGroupResponse; -import com.apideck.unify.models.components.DeleteModifierGroupResponse; -import com.apideck.unify.models.components.GetModifierGroupResponse; -import com.apideck.unify.models.components.GetModifierGroupsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateModifierGroupResponse; -import com.apideck.unify.models.errors.APIException; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifierGroupsAddRequest; -import com.apideck.unify.models.operations.PosModifierGroupsAddRequestBuilder; -import com.apideck.unify.models.operations.PosModifierGroupsAddResponse; -import com.apideck.unify.models.operations.PosModifierGroupsAllRequest; -import com.apideck.unify.models.operations.PosModifierGroupsAllRequestBuilder; -import com.apideck.unify.models.operations.PosModifierGroupsAllResponse; -import com.apideck.unify.models.operations.PosModifierGroupsDeleteRequest; -import com.apideck.unify.models.operations.PosModifierGroupsDeleteRequestBuilder; -import com.apideck.unify.models.operations.PosModifierGroupsDeleteResponse; -import com.apideck.unify.models.operations.PosModifierGroupsOneRequest; -import com.apideck.unify.models.operations.PosModifierGroupsOneRequestBuilder; -import com.apideck.unify.models.operations.PosModifierGroupsOneResponse; -import com.apideck.unify.models.operations.PosModifierGroupsUpdateRequest; -import com.apideck.unify.models.operations.PosModifierGroupsUpdateRequestBuilder; -import com.apideck.unify.models.operations.PosModifierGroupsUpdateResponse; -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; -import com.apideck.unify.utils.BackoffStrategy; -import com.apideck.unify.utils.HTTPClient; -import com.apideck.unify.utils.HTTPRequest; -import com.apideck.unify.utils.Hook.AfterErrorContextImpl; -import com.apideck.unify.utils.Hook.AfterSuccessContextImpl; -import com.apideck.unify.utils.Hook.BeforeRequestContextImpl; -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.Retries.NonRetryableException; -import com.apideck.unify.utils.Retries; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.SerializedBody; -import com.apideck.unify.utils.Utils.JsonShape; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.TimeUnit; - -public class ModifierGroups implements - MethodCallPosModifierGroupsAll, - MethodCallPosModifierGroupsAdd, - MethodCallPosModifierGroupsOne, - MethodCallPosModifierGroupsUpdate, - MethodCallPosModifierGroupsDelete { - - private final SDKConfiguration sdkConfiguration; - - ModifierGroups(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * List Modifier Groups - * List Modifier Groups - * @return The call builder - */ - public PosModifierGroupsAllRequestBuilder list() { - return new PosModifierGroupsAllRequestBuilder(this); - } - - /** - * List Modifier Groups - * List Modifier Groups - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifierGroupsAllResponse list( - PosModifierGroupsAllRequest request) throws Exception { - return list(request, Optional.empty()); - } - - /** - * List Modifier Groups - * List Modifier Groups - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifierGroupsAllResponse list( - PosModifierGroupsAllRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/modifier-groups"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosModifierGroupsAllRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.modifierGroupsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.modifierGroupsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.modifierGroupsAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosModifierGroupsAllResponse.Builder _resBuilder = - PosModifierGroupsAllResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosModifierGroupsAllResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetModifierGroupsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetModifierGroupsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Create Modifier Group - * Create Modifier Group - * @return The call builder - */ - public PosModifierGroupsAddRequestBuilder create() { - return new PosModifierGroupsAddRequestBuilder(this); - } - - /** - * Create Modifier Group - * Create Modifier Group - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifierGroupsAddResponse create( - PosModifierGroupsAddRequest request) throws Exception { - return create(request, Optional.empty()); - } - - /** - * Create Modifier Group - * Create Modifier Group - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifierGroupsAddResponse create( - PosModifierGroupsAddRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/modifier-groups"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "modifierGroup", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosModifierGroupsAddRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.modifierGroupsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.modifierGroupsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.modifierGroupsAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosModifierGroupsAddResponse.Builder _resBuilder = - PosModifierGroupsAddResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosModifierGroupsAddResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - CreateModifierGroupResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withCreateModifierGroupResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Get Modifier Group - * Get Modifier Group - * @return The call builder - */ - public PosModifierGroupsOneRequestBuilder get() { - return new PosModifierGroupsOneRequestBuilder(this); - } - - /** - * Get Modifier Group - * Get Modifier Group - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifierGroupsOneResponse get( - PosModifierGroupsOneRequest request) throws Exception { - return get(request, Optional.empty()); - } - - /** - * Get Modifier Group - * Get Modifier Group - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifierGroupsOneResponse get( - PosModifierGroupsOneRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosModifierGroupsOneRequest.class, - _baseUrl, - "/pos/modifier-groups/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosModifierGroupsOneRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.modifierGroupsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.modifierGroupsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.modifierGroupsOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosModifierGroupsOneResponse.Builder _resBuilder = - PosModifierGroupsOneResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosModifierGroupsOneResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetModifierGroupResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetModifierGroupResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Update Modifier Group - * Update Modifier Group - * @return The call builder - */ - public PosModifierGroupsUpdateRequestBuilder update() { - return new PosModifierGroupsUpdateRequestBuilder(this); - } - - /** - * Update Modifier Group - * Update Modifier Group - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifierGroupsUpdateResponse update( - PosModifierGroupsUpdateRequest request) throws Exception { - return update(request, Optional.empty()); - } - - /** - * Update Modifier Group - * Update Modifier Group - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifierGroupsUpdateResponse update( - PosModifierGroupsUpdateRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosModifierGroupsUpdateRequest.class, - _baseUrl, - "/pos/modifier-groups/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "modifierGroup", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosModifierGroupsUpdateRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.modifierGroupsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.modifierGroupsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.modifierGroupsUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosModifierGroupsUpdateResponse.Builder _resBuilder = - PosModifierGroupsUpdateResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosModifierGroupsUpdateResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UpdateModifierGroupResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUpdateModifierGroupResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Delete Modifier Group - * Delete Modifier Group - * @return The call builder - */ - public PosModifierGroupsDeleteRequestBuilder delete() { - return new PosModifierGroupsDeleteRequestBuilder(this); - } - - /** - * Delete Modifier Group - * Delete Modifier Group - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifierGroupsDeleteResponse delete( - PosModifierGroupsDeleteRequest request) throws Exception { - return delete(request, Optional.empty()); - } - - /** - * Delete Modifier Group - * Delete Modifier Group - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifierGroupsDeleteResponse delete( - PosModifierGroupsDeleteRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosModifierGroupsDeleteRequest.class, - _baseUrl, - "/pos/modifier-groups/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosModifierGroupsDeleteRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.modifierGroupsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.modifierGroupsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.modifierGroupsDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosModifierGroupsDeleteResponse.Builder _resBuilder = - PosModifierGroupsDeleteResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosModifierGroupsDeleteResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeleteModifierGroupResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeleteModifierGroupResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - -} diff --git a/src/main/java/com/apideck/unify/Modifiers.java b/src/main/java/com/apideck/unify/Modifiers.java deleted file mode 100644 index 10173b1..0000000 --- a/src/main/java/com/apideck/unify/Modifiers.java +++ /dev/null @@ -1,1315 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.components.CreateModifierResponse; -import com.apideck.unify.models.components.DeleteModifierResponse; -import com.apideck.unify.models.components.GetModifierResponse; -import com.apideck.unify.models.components.GetModifiersResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateModifierResponse; -import com.apideck.unify.models.errors.APIException; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosModifiersAddRequest; -import com.apideck.unify.models.operations.PosModifiersAddRequestBuilder; -import com.apideck.unify.models.operations.PosModifiersAddResponse; -import com.apideck.unify.models.operations.PosModifiersAllRequest; -import com.apideck.unify.models.operations.PosModifiersAllRequestBuilder; -import com.apideck.unify.models.operations.PosModifiersAllResponse; -import com.apideck.unify.models.operations.PosModifiersDeleteRequest; -import com.apideck.unify.models.operations.PosModifiersDeleteRequestBuilder; -import com.apideck.unify.models.operations.PosModifiersDeleteResponse; -import com.apideck.unify.models.operations.PosModifiersOneRequest; -import com.apideck.unify.models.operations.PosModifiersOneRequestBuilder; -import com.apideck.unify.models.operations.PosModifiersOneResponse; -import com.apideck.unify.models.operations.PosModifiersUpdateRequest; -import com.apideck.unify.models.operations.PosModifiersUpdateRequestBuilder; -import com.apideck.unify.models.operations.PosModifiersUpdateResponse; -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; -import com.apideck.unify.utils.BackoffStrategy; -import com.apideck.unify.utils.HTTPClient; -import com.apideck.unify.utils.HTTPRequest; -import com.apideck.unify.utils.Hook.AfterErrorContextImpl; -import com.apideck.unify.utils.Hook.AfterSuccessContextImpl; -import com.apideck.unify.utils.Hook.BeforeRequestContextImpl; -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.Retries.NonRetryableException; -import com.apideck.unify.utils.Retries; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.SerializedBody; -import com.apideck.unify.utils.Utils.JsonShape; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.TimeUnit; - -public class Modifiers implements - MethodCallPosModifiersAll, - MethodCallPosModifiersAdd, - MethodCallPosModifiersOne, - MethodCallPosModifiersUpdate, - MethodCallPosModifiersDelete { - - private final SDKConfiguration sdkConfiguration; - - Modifiers(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * List Modifiers - * List Modifiers - * @return The call builder - */ - public PosModifiersAllRequestBuilder list() { - return new PosModifiersAllRequestBuilder(this); - } - - /** - * List Modifiers - * List Modifiers - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifiersAllResponse list( - PosModifiersAllRequest request) throws Exception { - return list(request, Optional.empty()); - } - - /** - * List Modifiers - * List Modifiers - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifiersAllResponse list( - PosModifiersAllRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/modifiers"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosModifiersAllRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.modifiersAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.modifiersAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.modifiersAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosModifiersAllResponse.Builder _resBuilder = - PosModifiersAllResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosModifiersAllResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetModifiersResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetModifiersResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Create Modifier - * Create Modifier - * @return The call builder - */ - public PosModifiersAddRequestBuilder create() { - return new PosModifiersAddRequestBuilder(this); - } - - /** - * Create Modifier - * Create Modifier - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifiersAddResponse create( - PosModifiersAddRequest request) throws Exception { - return create(request, Optional.empty()); - } - - /** - * Create Modifier - * Create Modifier - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifiersAddResponse create( - PosModifiersAddRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/modifiers"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "modifier", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosModifiersAddRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.modifiersAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.modifiersAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.modifiersAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosModifiersAddResponse.Builder _resBuilder = - PosModifiersAddResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosModifiersAddResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - CreateModifierResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withCreateModifierResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Get Modifier - * Get Modifier - * @return The call builder - */ - public PosModifiersOneRequestBuilder get() { - return new PosModifiersOneRequestBuilder(this); - } - - /** - * Get Modifier - * Get Modifier - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifiersOneResponse get( - PosModifiersOneRequest request) throws Exception { - return get(request, Optional.empty()); - } - - /** - * Get Modifier - * Get Modifier - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifiersOneResponse get( - PosModifiersOneRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosModifiersOneRequest.class, - _baseUrl, - "/pos/modifiers/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosModifiersOneRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.modifiersOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.modifiersOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.modifiersOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosModifiersOneResponse.Builder _resBuilder = - PosModifiersOneResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosModifiersOneResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetModifierResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetModifierResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Update Modifier - * Update Modifier - * @return The call builder - */ - public PosModifiersUpdateRequestBuilder update() { - return new PosModifiersUpdateRequestBuilder(this); - } - - /** - * Update Modifier - * Update Modifier - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifiersUpdateResponse update( - PosModifiersUpdateRequest request) throws Exception { - return update(request, Optional.empty()); - } - - /** - * Update Modifier - * Update Modifier - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifiersUpdateResponse update( - PosModifiersUpdateRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosModifiersUpdateRequest.class, - _baseUrl, - "/pos/modifiers/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "modifier", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosModifiersUpdateRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.modifiersUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.modifiersUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.modifiersUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosModifiersUpdateResponse.Builder _resBuilder = - PosModifiersUpdateResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosModifiersUpdateResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UpdateModifierResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUpdateModifierResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Delete Modifier - * Delete Modifier - * @return The call builder - */ - public PosModifiersDeleteRequestBuilder delete() { - return new PosModifiersDeleteRequestBuilder(this); - } - - /** - * Delete Modifier - * Delete Modifier - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifiersDeleteResponse delete( - PosModifiersDeleteRequest request) throws Exception { - return delete(request, Optional.empty()); - } - - /** - * Delete Modifier - * Delete Modifier - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosModifiersDeleteResponse delete( - PosModifiersDeleteRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosModifiersDeleteRequest.class, - _baseUrl, - "/pos/modifiers/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosModifiersDeleteRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.modifiersDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.modifiersDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.modifiersDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosModifiersDeleteResponse.Builder _resBuilder = - PosModifiersDeleteResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosModifiersDeleteResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeleteModifierResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeleteModifierResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - -} diff --git a/src/main/java/com/apideck/unify/OrderTypes.java b/src/main/java/com/apideck/unify/OrderTypes.java deleted file mode 100644 index 5fbd0db..0000000 --- a/src/main/java/com/apideck/unify/OrderTypes.java +++ /dev/null @@ -1,1315 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.components.CreateOrderTypeResponse; -import com.apideck.unify.models.components.DeleteOrderTypeResponse; -import com.apideck.unify.models.components.GetOrderTypeResponse; -import com.apideck.unify.models.components.GetOrderTypesResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateOrderTypeResponse; -import com.apideck.unify.models.errors.APIException; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosOrderTypesAddRequest; -import com.apideck.unify.models.operations.PosOrderTypesAddRequestBuilder; -import com.apideck.unify.models.operations.PosOrderTypesAddResponse; -import com.apideck.unify.models.operations.PosOrderTypesAllRequest; -import com.apideck.unify.models.operations.PosOrderTypesAllRequestBuilder; -import com.apideck.unify.models.operations.PosOrderTypesAllResponse; -import com.apideck.unify.models.operations.PosOrderTypesDeleteRequest; -import com.apideck.unify.models.operations.PosOrderTypesDeleteRequestBuilder; -import com.apideck.unify.models.operations.PosOrderTypesDeleteResponse; -import com.apideck.unify.models.operations.PosOrderTypesOneRequest; -import com.apideck.unify.models.operations.PosOrderTypesOneRequestBuilder; -import com.apideck.unify.models.operations.PosOrderTypesOneResponse; -import com.apideck.unify.models.operations.PosOrderTypesUpdateRequest; -import com.apideck.unify.models.operations.PosOrderTypesUpdateRequestBuilder; -import com.apideck.unify.models.operations.PosOrderTypesUpdateResponse; -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; -import com.apideck.unify.utils.BackoffStrategy; -import com.apideck.unify.utils.HTTPClient; -import com.apideck.unify.utils.HTTPRequest; -import com.apideck.unify.utils.Hook.AfterErrorContextImpl; -import com.apideck.unify.utils.Hook.AfterSuccessContextImpl; -import com.apideck.unify.utils.Hook.BeforeRequestContextImpl; -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.Retries.NonRetryableException; -import com.apideck.unify.utils.Retries; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.SerializedBody; -import com.apideck.unify.utils.Utils.JsonShape; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.TimeUnit; - -public class OrderTypes implements - MethodCallPosOrderTypesAll, - MethodCallPosOrderTypesAdd, - MethodCallPosOrderTypesOne, - MethodCallPosOrderTypesUpdate, - MethodCallPosOrderTypesDelete { - - private final SDKConfiguration sdkConfiguration; - - OrderTypes(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * List Order Types - * List Order Types - * @return The call builder - */ - public PosOrderTypesAllRequestBuilder list() { - return new PosOrderTypesAllRequestBuilder(this); - } - - /** - * List Order Types - * List Order Types - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrderTypesAllResponse list( - PosOrderTypesAllRequest request) throws Exception { - return list(request, Optional.empty()); - } - - /** - * List Order Types - * List Order Types - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrderTypesAllResponse list( - PosOrderTypesAllRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/order-types"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosOrderTypesAllRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.orderTypesAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.orderTypesAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.orderTypesAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosOrderTypesAllResponse.Builder _resBuilder = - PosOrderTypesAllResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosOrderTypesAllResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetOrderTypesResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetOrderTypesResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Create Order Type - * Create Order Type - * @return The call builder - */ - public PosOrderTypesAddRequestBuilder create() { - return new PosOrderTypesAddRequestBuilder(this); - } - - /** - * Create Order Type - * Create Order Type - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrderTypesAddResponse create( - PosOrderTypesAddRequest request) throws Exception { - return create(request, Optional.empty()); - } - - /** - * Create Order Type - * Create Order Type - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrderTypesAddResponse create( - PosOrderTypesAddRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/order-types"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "orderType", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosOrderTypesAddRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.orderTypesAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.orderTypesAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.orderTypesAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosOrderTypesAddResponse.Builder _resBuilder = - PosOrderTypesAddResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosOrderTypesAddResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - CreateOrderTypeResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withCreateOrderTypeResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Get Order Type - * Get Order Type - * @return The call builder - */ - public PosOrderTypesOneRequestBuilder get() { - return new PosOrderTypesOneRequestBuilder(this); - } - - /** - * Get Order Type - * Get Order Type - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrderTypesOneResponse get( - PosOrderTypesOneRequest request) throws Exception { - return get(request, Optional.empty()); - } - - /** - * Get Order Type - * Get Order Type - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrderTypesOneResponse get( - PosOrderTypesOneRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosOrderTypesOneRequest.class, - _baseUrl, - "/pos/order-types/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosOrderTypesOneRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.orderTypesOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.orderTypesOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.orderTypesOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosOrderTypesOneResponse.Builder _resBuilder = - PosOrderTypesOneResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosOrderTypesOneResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetOrderTypeResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetOrderTypeResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Update Order Type - * Update Order Type - * @return The call builder - */ - public PosOrderTypesUpdateRequestBuilder update() { - return new PosOrderTypesUpdateRequestBuilder(this); - } - - /** - * Update Order Type - * Update Order Type - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrderTypesUpdateResponse update( - PosOrderTypesUpdateRequest request) throws Exception { - return update(request, Optional.empty()); - } - - /** - * Update Order Type - * Update Order Type - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrderTypesUpdateResponse update( - PosOrderTypesUpdateRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosOrderTypesUpdateRequest.class, - _baseUrl, - "/pos/order-types/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "orderType", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosOrderTypesUpdateRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.orderTypesUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.orderTypesUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.orderTypesUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosOrderTypesUpdateResponse.Builder _resBuilder = - PosOrderTypesUpdateResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosOrderTypesUpdateResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UpdateOrderTypeResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUpdateOrderTypeResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Delete Order Type - * Delete Order Type - * @return The call builder - */ - public PosOrderTypesDeleteRequestBuilder delete() { - return new PosOrderTypesDeleteRequestBuilder(this); - } - - /** - * Delete Order Type - * Delete Order Type - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrderTypesDeleteResponse delete( - PosOrderTypesDeleteRequest request) throws Exception { - return delete(request, Optional.empty()); - } - - /** - * Delete Order Type - * Delete Order Type - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosOrderTypesDeleteResponse delete( - PosOrderTypesDeleteRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosOrderTypesDeleteRequest.class, - _baseUrl, - "/pos/order-types/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosOrderTypesDeleteRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.orderTypesDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.orderTypesDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.orderTypesDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosOrderTypesDeleteResponse.Builder _resBuilder = - PosOrderTypesDeleteResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosOrderTypesDeleteResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeleteOrderTypeResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeleteOrderTypeResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - -} diff --git a/src/main/java/com/apideck/unify/Pos.java b/src/main/java/com/apideck/unify/Pos.java deleted file mode 100644 index a437ff7..0000000 --- a/src/main/java/com/apideck/unify/Pos.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; - -public class Pos { - - private final SDKConfiguration sdkConfiguration; - private final ApideckOrders orders; - private final ApideckPayments payments; - private final Merchants merchants; - private final ApideckLocations locations; - private final Items items; - private final Modifiers modifiers; - private final ModifierGroups modifierGroups; - private final OrderTypes orderTypes; - private final Tenders tenders; - - Pos(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.orders = new ApideckOrders(this.sdkConfiguration); - this.payments = new ApideckPayments(this.sdkConfiguration); - this.merchants = new Merchants(this.sdkConfiguration); - this.locations = new ApideckLocations(this.sdkConfiguration); - this.items = new Items(this.sdkConfiguration); - this.modifiers = new Modifiers(this.sdkConfiguration); - this.modifierGroups = new ModifierGroups(this.sdkConfiguration); - this.orderTypes = new OrderTypes(this.sdkConfiguration); - this.tenders = new Tenders(this.sdkConfiguration); - } - - public final ApideckOrders orders() { - return orders; - } - - public final ApideckPayments payments() { - return payments; - } - - public final Merchants merchants() { - return merchants; - } - - public final ApideckLocations locations() { - return locations; - } - - public final Items items() { - return items; - } - - public final Modifiers modifiers() { - return modifiers; - } - - public final ModifierGroups modifierGroups() { - return modifierGroups; - } - - public final OrderTypes orderTypes() { - return orderTypes; - } - - public final Tenders tenders() { - return tenders; - } -} diff --git a/src/main/java/com/apideck/unify/SDKConfiguration.java b/src/main/java/com/apideck/unify/SDKConfiguration.java index bd5087e..a254d7c 100644 --- a/src/main/java/com/apideck/unify/SDKConfiguration.java +++ b/src/main/java/com/apideck/unify/SDKConfiguration.java @@ -27,8 +27,8 @@ public Optional securitySource() { public int serverIdx = 0; private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "10.8.1"; - public static final String SDK_VERSION = "0.1.12"; - public static final String GEN_VERSION = "2.461.4"; + public static final String SDK_VERSION = "0.2.0"; + public static final String GEN_VERSION = "2.467.4"; private static final String BASE_PACKAGE = "com.apideck.unify"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/apideck/unify/Sessions.java b/src/main/java/com/apideck/unify/Sessions.java index 80a78e9..62c9056 100644 --- a/src/main/java/com/apideck/unify/Sessions.java +++ b/src/main/java/com/apideck/unify/Sessions.java @@ -87,7 +87,7 @@ public VaultSessionsCreateResponse createDirect() throws Exception { * * Note: This is a short lived token that will expire after 1 hour (TTL: 3600). * - * @param customerId ID of the consumer which you want to get or push data from + * @param consumerId ID of the consumer which you want to get or push data from * @param appId The ID of your Unify application * @param session * @param options additional options @@ -95,7 +95,7 @@ public VaultSessionsCreateResponse createDirect() throws Exception { * @throws Exception if the API call fails */ public VaultSessionsCreateResponse create( - Optional customerId, + Optional consumerId, Optional appId, Optional session, Optional options) throws Exception { @@ -106,7 +106,7 @@ public VaultSessionsCreateResponse create( VaultSessionsCreateRequest request = VaultSessionsCreateRequest .builder() - .customerId(customerId) + .consumerId(consumerId) .appId(appId) .session(session) .build(); diff --git a/src/main/java/com/apideck/unify/Tenders.java b/src/main/java/com/apideck/unify/Tenders.java deleted file mode 100644 index 0e137bd..0000000 --- a/src/main/java/com/apideck/unify/Tenders.java +++ /dev/null @@ -1,1315 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify; - -import com.apideck.unify.models.components.CreateTenderResponse; -import com.apideck.unify.models.components.DeleteTenderResponse; -import com.apideck.unify.models.components.GetTenderResponse; -import com.apideck.unify.models.components.GetTendersResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateTenderResponse; -import com.apideck.unify.models.errors.APIException; -import com.apideck.unify.models.errors.BadRequestResponse; -import com.apideck.unify.models.errors.NotFoundResponse; -import com.apideck.unify.models.errors.PaymentRequiredResponse; -import com.apideck.unify.models.errors.UnauthorizedResponse; -import com.apideck.unify.models.errors.UnprocessableResponse; -import com.apideck.unify.models.operations.PosTendersAddRequest; -import com.apideck.unify.models.operations.PosTendersAddRequestBuilder; -import com.apideck.unify.models.operations.PosTendersAddResponse; -import com.apideck.unify.models.operations.PosTendersAllRequest; -import com.apideck.unify.models.operations.PosTendersAllRequestBuilder; -import com.apideck.unify.models.operations.PosTendersAllResponse; -import com.apideck.unify.models.operations.PosTendersDeleteRequest; -import com.apideck.unify.models.operations.PosTendersDeleteRequestBuilder; -import com.apideck.unify.models.operations.PosTendersDeleteResponse; -import com.apideck.unify.models.operations.PosTendersOneRequest; -import com.apideck.unify.models.operations.PosTendersOneRequestBuilder; -import com.apideck.unify.models.operations.PosTendersOneResponse; -import com.apideck.unify.models.operations.PosTendersUpdateRequest; -import com.apideck.unify.models.operations.PosTendersUpdateRequestBuilder; -import com.apideck.unify.models.operations.PosTendersUpdateResponse; -import com.apideck.unify.models.operations.SDKMethodInterfaces.*; -import com.apideck.unify.utils.BackoffStrategy; -import com.apideck.unify.utils.HTTPClient; -import com.apideck.unify.utils.HTTPRequest; -import com.apideck.unify.utils.Hook.AfterErrorContextImpl; -import com.apideck.unify.utils.Hook.AfterSuccessContextImpl; -import com.apideck.unify.utils.Hook.BeforeRequestContextImpl; -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.Retries.NonRetryableException; -import com.apideck.unify.utils.Retries; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.SerializedBody; -import com.apideck.unify.utils.Utils.JsonShape; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.TimeUnit; - -public class Tenders implements - MethodCallPosTendersAll, - MethodCallPosTendersAdd, - MethodCallPosTendersOne, - MethodCallPosTendersUpdate, - MethodCallPosTendersDelete { - - private final SDKConfiguration sdkConfiguration; - - Tenders(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * List Tenders - * List Tenders - * @return The call builder - */ - public PosTendersAllRequestBuilder list() { - return new PosTendersAllRequestBuilder(this); - } - - /** - * List Tenders - * List Tenders - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosTendersAllResponse list( - PosTendersAllRequest request) throws Exception { - return list(request, Optional.empty()); - } - - /** - * List Tenders - * List Tenders - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosTendersAllResponse list( - PosTendersAllRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/tenders"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosTendersAllRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.tendersAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.tendersAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.tendersAll", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosTendersAllResponse.Builder _resBuilder = - PosTendersAllResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosTendersAllResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetTendersResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetTendersResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Create Tender - * Create Tender - * @return The call builder - */ - public PosTendersAddRequestBuilder create() { - return new PosTendersAddRequestBuilder(this); - } - - /** - * Create Tender - * Create Tender - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosTendersAddResponse create( - PosTendersAddRequest request) throws Exception { - return create(request, Optional.empty()); - } - - /** - * Create Tender - * Create Tender - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosTendersAddResponse create( - PosTendersAddRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/pos/tenders"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "tender", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosTendersAddRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.tendersAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.tendersAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.tendersAdd", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosTendersAddResponse.Builder _resBuilder = - PosTendersAddResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosTendersAddResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - CreateTenderResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withCreateTenderResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Get Tender - * Get Tender - * @return The call builder - */ - public PosTendersOneRequestBuilder get() { - return new PosTendersOneRequestBuilder(this); - } - - /** - * Get Tender - * Get Tender - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosTendersOneResponse get( - PosTendersOneRequest request) throws Exception { - return get(request, Optional.empty()); - } - - /** - * Get Tender - * Get Tender - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosTendersOneResponse get( - PosTendersOneRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosTendersOneRequest.class, - _baseUrl, - "/pos/tenders/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosTendersOneRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.tendersOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.tendersOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.tendersOne", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosTendersOneResponse.Builder _resBuilder = - PosTendersOneResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosTendersOneResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - GetTenderResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withGetTenderResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Update Tender - * Update Tender - * @return The call builder - */ - public PosTendersUpdateRequestBuilder update() { - return new PosTendersUpdateRequestBuilder(this); - } - - /** - * Update Tender - * Update Tender - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosTendersUpdateResponse update( - PosTendersUpdateRequest request) throws Exception { - return update(request, Optional.empty()); - } - - /** - * Update Tender - * Update Tender - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosTendersUpdateResponse update( - PosTendersUpdateRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosTendersUpdateRequest.class, - _baseUrl, - "/pos/tenders/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "tender", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosTendersUpdateRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.tendersUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.tendersUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.tendersUpdate", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosTendersUpdateResponse.Builder _resBuilder = - PosTendersUpdateResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosTendersUpdateResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UpdateTenderResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUpdateTenderResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - - - - /** - * Delete Tender - * Delete Tender - * @return The call builder - */ - public PosTendersDeleteRequestBuilder delete() { - return new PosTendersDeleteRequestBuilder(this); - } - - /** - * Delete Tender - * Delete Tender - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosTendersDeleteResponse delete( - PosTendersDeleteRequest request) throws Exception { - return delete(request, Optional.empty()); - } - - /** - * Delete Tender - * Delete Tender - * @param request The request object containing all of the parameters for the API call. - * @param options additional options - * @return The response from the API call - * @throws Exception if the API call fails - */ - public PosTendersDeleteResponse delete( - PosTendersDeleteRequest request, - Optional options) throws Exception { - - if (options.isPresent()) { - options.get().validate(Arrays.asList(Options.Option.RETRY_CONFIG)); - } - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PosTendersDeleteRequest.class, - _baseUrl, - "/pos/tenders/{id}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - PosTendersDeleteRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HTTPRequest _finalReq = _req; - RetryConfig _retryConfig; - if (options.isPresent() && options.get().retryConfig().isPresent()) { - _retryConfig = options.get().retryConfig().get(); - } else if (this.sdkConfiguration.retryConfig.isPresent()) { - _retryConfig = this.sdkConfiguration.retryConfig.get(); - } else { - _retryConfig = RetryConfig.builder() - .backoff(BackoffStrategy.builder() - .initialInterval(500, TimeUnit.MILLISECONDS) - .maxInterval(60000, TimeUnit.MILLISECONDS) - .baseFactor((double)(1.5)) - .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) - .retryConnectError(true) - .build()) - .build(); - } - List _statusCodes = new ArrayList<>(); - _statusCodes.add("5XX"); - Retries _retries = Retries.builder() - .action(() -> { - HttpRequest _r = null; - try { - _r = sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - "pos.tendersDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _finalReq.build()); - } catch (Exception _e) { - throw new NonRetryableException(_e); - } - try { - return _client.send(_r); - } catch (Exception _e) { - return sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - "pos.tendersDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - }) - .retryConfig(_retryConfig) - .statusCodes(_statusCodes) - .build(); - HttpResponse _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - "pos.tendersDelete", - Optional.of(List.of()), - sdkConfiguration.securitySource()), - _retries.run()); - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PosTendersDeleteResponse.Builder _resBuilder = - PosTendersDeleteResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PosTendersDeleteResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeleteTenderResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeleteTenderResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - BadRequestResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnauthorizedResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "402")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PaymentRequiredResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - NotFoundResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "422")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnprocessableResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - throw _out; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UnexpectedErrorResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUnexpectedErrorResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - throw new APIException( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); - } - -} diff --git a/src/main/java/com/apideck/unify/models/components/AchDetails.java b/src/main/java/com/apideck/unify/models/components/AchDetails.java deleted file mode 100644 index 43e4cfa..0000000 --- a/src/main/java/com/apideck/unify/models/components/AchDetails.java +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -/** - * AchDetails - ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`. - */ - -public class AchDetails { - - /** - * The routing number for the bank account. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("routing_number") - private Optional routingNumber; - - /** - * The last few digits of the bank account number. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("account_number_suffix") - private Optional accountNumberSuffix; - - /** - * The type of the bank account performing the transfer. The account type can be `CHECKING`, - * `SAVINGS`, or `UNKNOWN`. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("account_type") - private Optional accountType; - - @JsonCreator - public AchDetails( - @JsonProperty("routing_number") Optional routingNumber, - @JsonProperty("account_number_suffix") Optional accountNumberSuffix, - @JsonProperty("account_type") Optional accountType) { - Utils.checkNotNull(routingNumber, "routingNumber"); - Utils.checkNotNull(accountNumberSuffix, "accountNumberSuffix"); - Utils.checkNotNull(accountType, "accountType"); - this.routingNumber = routingNumber; - this.accountNumberSuffix = accountNumberSuffix; - this.accountType = accountType; - } - - public AchDetails() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * The routing number for the bank account. - */ - @JsonIgnore - public Optional routingNumber() { - return routingNumber; - } - - /** - * The last few digits of the bank account number. - */ - @JsonIgnore - public Optional accountNumberSuffix() { - return accountNumberSuffix; - } - - /** - * The type of the bank account performing the transfer. The account type can be `CHECKING`, - * `SAVINGS`, or `UNKNOWN`. - */ - @JsonIgnore - public Optional accountType() { - return accountType; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The routing number for the bank account. - */ - public AchDetails withRoutingNumber(String routingNumber) { - Utils.checkNotNull(routingNumber, "routingNumber"); - this.routingNumber = Optional.ofNullable(routingNumber); - return this; - } - - /** - * The routing number for the bank account. - */ - public AchDetails withRoutingNumber(Optional routingNumber) { - Utils.checkNotNull(routingNumber, "routingNumber"); - this.routingNumber = routingNumber; - return this; - } - - /** - * The last few digits of the bank account number. - */ - public AchDetails withAccountNumberSuffix(String accountNumberSuffix) { - Utils.checkNotNull(accountNumberSuffix, "accountNumberSuffix"); - this.accountNumberSuffix = Optional.ofNullable(accountNumberSuffix); - return this; - } - - /** - * The last few digits of the bank account number. - */ - public AchDetails withAccountNumberSuffix(Optional accountNumberSuffix) { - Utils.checkNotNull(accountNumberSuffix, "accountNumberSuffix"); - this.accountNumberSuffix = accountNumberSuffix; - return this; - } - - /** - * The type of the bank account performing the transfer. The account type can be `CHECKING`, - * `SAVINGS`, or `UNKNOWN`. - */ - public AchDetails withAccountType(String accountType) { - Utils.checkNotNull(accountType, "accountType"); - this.accountType = Optional.ofNullable(accountType); - return this; - } - - /** - * The type of the bank account performing the transfer. The account type can be `CHECKING`, - * `SAVINGS`, or `UNKNOWN`. - */ - public AchDetails withAccountType(Optional accountType) { - Utils.checkNotNull(accountType, "accountType"); - this.accountType = accountType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AchDetails other = (AchDetails) o; - return - Objects.deepEquals(this.routingNumber, other.routingNumber) && - Objects.deepEquals(this.accountNumberSuffix, other.accountNumberSuffix) && - Objects.deepEquals(this.accountType, other.accountType); - } - - @Override - public int hashCode() { - return Objects.hash( - routingNumber, - accountNumberSuffix, - accountType); - } - - @Override - public String toString() { - return Utils.toString(AchDetails.class, - "routingNumber", routingNumber, - "accountNumberSuffix", accountNumberSuffix, - "accountType", accountType); - } - - public final static class Builder { - - private Optional routingNumber = Optional.empty(); - - private Optional accountNumberSuffix = Optional.empty(); - - private Optional accountType = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The routing number for the bank account. - */ - public Builder routingNumber(String routingNumber) { - Utils.checkNotNull(routingNumber, "routingNumber"); - this.routingNumber = Optional.ofNullable(routingNumber); - return this; - } - - /** - * The routing number for the bank account. - */ - public Builder routingNumber(Optional routingNumber) { - Utils.checkNotNull(routingNumber, "routingNumber"); - this.routingNumber = routingNumber; - return this; - } - - /** - * The last few digits of the bank account number. - */ - public Builder accountNumberSuffix(String accountNumberSuffix) { - Utils.checkNotNull(accountNumberSuffix, "accountNumberSuffix"); - this.accountNumberSuffix = Optional.ofNullable(accountNumberSuffix); - return this; - } - - /** - * The last few digits of the bank account number. - */ - public Builder accountNumberSuffix(Optional accountNumberSuffix) { - Utils.checkNotNull(accountNumberSuffix, "accountNumberSuffix"); - this.accountNumberSuffix = accountNumberSuffix; - return this; - } - - /** - * The type of the bank account performing the transfer. The account type can be `CHECKING`, - * `SAVINGS`, or `UNKNOWN`. - */ - public Builder accountType(String accountType) { - Utils.checkNotNull(accountType, "accountType"); - this.accountType = Optional.ofNullable(accountType); - return this; - } - - /** - * The type of the bank account performing the transfer. The account type can be `CHECKING`, - * `SAVINGS`, or `UNKNOWN`. - */ - public Builder accountType(Optional accountType) { - Utils.checkNotNull(accountType, "accountType"); - this.accountType = accountType; - return this; - } - - public AchDetails build() { - return new AchDetails( - routingNumber, - accountNumberSuffix, - accountType); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/AppliedDiscounts.java b/src/main/java/com/apideck/unify/models/components/AppliedDiscounts.java deleted file mode 100644 index 3f9996c..0000000 --- a/src/main/java/com/apideck/unify/models/components/AppliedDiscounts.java +++ /dev/null @@ -1,275 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class AppliedDiscounts { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("discount_id") - private Optional discountId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonCreator - public AppliedDiscounts( - @JsonProperty("id") Optional id, - @JsonProperty("discount_id") Optional discountId, - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(discountId, "discountId"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - this.id = id; - this.discountId = discountId; - this.amount = amount; - this.currency = currency; - } - - public AppliedDiscounts() { - this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional discountId() { - return discountId; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public AppliedDiscounts withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public AppliedDiscounts withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public AppliedDiscounts withDiscountId(String discountId) { - Utils.checkNotNull(discountId, "discountId"); - this.discountId = Optional.ofNullable(discountId); - return this; - } - - public AppliedDiscounts withDiscountId(Optional discountId) { - Utils.checkNotNull(discountId, "discountId"); - this.discountId = discountId; - return this; - } - - public AppliedDiscounts withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public AppliedDiscounts withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public AppliedDiscounts withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public AppliedDiscounts withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppliedDiscounts other = (AppliedDiscounts) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.discountId, other.discountId) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - discountId, - amount, - currency); - } - - @Override - public String toString() { - return Utils.toString(AppliedDiscounts.class, - "id", id, - "discountId", discountId, - "amount", amount, - "currency", currency); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional discountId = Optional.empty(); - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder discountId(String discountId) { - Utils.checkNotNull(discountId, "discountId"); - this.discountId = Optional.ofNullable(discountId); - return this; - } - - public Builder discountId(Optional discountId) { - Utils.checkNotNull(discountId, "discountId"); - this.discountId = discountId; - return this; - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public AppliedDiscounts build() { - return new AppliedDiscounts( - id, - discountId, - amount, - currency); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/AppliedTaxes.java b/src/main/java/com/apideck/unify/models/components/AppliedTaxes.java deleted file mode 100644 index ba8505a..0000000 --- a/src/main/java/com/apideck/unify/models/components/AppliedTaxes.java +++ /dev/null @@ -1,275 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class AppliedTaxes { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tax_id") - private Optional taxId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonCreator - public AppliedTaxes( - @JsonProperty("id") Optional id, - @JsonProperty("tax_id") Optional taxId, - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(taxId, "taxId"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - this.id = id; - this.taxId = taxId; - this.amount = amount; - this.currency = currency; - } - - public AppliedTaxes() { - this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional taxId() { - return taxId; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public AppliedTaxes withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public AppliedTaxes withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public AppliedTaxes withTaxId(String taxId) { - Utils.checkNotNull(taxId, "taxId"); - this.taxId = Optional.ofNullable(taxId); - return this; - } - - public AppliedTaxes withTaxId(Optional taxId) { - Utils.checkNotNull(taxId, "taxId"); - this.taxId = taxId; - return this; - } - - public AppliedTaxes withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public AppliedTaxes withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public AppliedTaxes withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public AppliedTaxes withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppliedTaxes other = (AppliedTaxes) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.taxId, other.taxId) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - taxId, - amount, - currency); - } - - @Override - public String toString() { - return Utils.toString(AppliedTaxes.class, - "id", id, - "taxId", taxId, - "amount", amount, - "currency", currency); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional taxId = Optional.empty(); - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder taxId(String taxId) { - Utils.checkNotNull(taxId, "taxId"); - this.taxId = Optional.ofNullable(taxId); - return this; - } - - public Builder taxId(Optional taxId) { - Utils.checkNotNull(taxId, "taxId"); - this.taxId = taxId; - return this; - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public AppliedTaxes build() { - return new AppliedTaxes( - id, - taxId, - amount, - currency); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/BalanceSheetFilter.java b/src/main/java/com/apideck/unify/models/components/BalanceSheetFilter.java index 67c351a..3e5d337 100644 --- a/src/main/java/com/apideck/unify/models/components/BalanceSheetFilter.java +++ b/src/main/java/com/apideck/unify/models/components/BalanceSheetFilter.java @@ -9,8 +9,10 @@ import com.apideck.unify.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Long; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; @@ -18,33 +20,51 @@ public class BalanceSheetFilter { /** - * Filter by start date. If start date is given, end date is required. + * The start date of the period to include in the resource. */ @SpeakeasyMetadata("queryParam:name=start_date") private Optional startDate; /** - * Filter by end date. If end date is given, start date is required. + * The end date of the period to include in the resource. */ @SpeakeasyMetadata("queryParam:name=end_date") private Optional endDate; + /** + * The number of periods to include in the resource. + */ + @SpeakeasyMetadata("queryParam:name=period_count") + private Optional periodCount; + + /** + * The type of period to include in the resource: month, quarter, year. + */ + @SpeakeasyMetadata("queryParam:name=period_type") + private Optional periodType; + @JsonCreator public BalanceSheetFilter( Optional startDate, - Optional endDate) { + Optional endDate, + Optional periodCount, + Optional periodType) { Utils.checkNotNull(startDate, "startDate"); Utils.checkNotNull(endDate, "endDate"); + Utils.checkNotNull(periodCount, "periodCount"); + Utils.checkNotNull(periodType, "periodType"); this.startDate = startDate; this.endDate = endDate; + this.periodCount = periodCount; + this.periodType = periodType; } public BalanceSheetFilter() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** - * Filter by start date. If start date is given, end date is required. + * The start date of the period to include in the resource. */ @JsonIgnore public Optional startDate() { @@ -52,19 +72,36 @@ public Optional startDate() { } /** - * Filter by end date. If end date is given, start date is required. + * The end date of the period to include in the resource. */ @JsonIgnore public Optional endDate() { return endDate; } + /** + * The number of periods to include in the resource. + */ + @JsonIgnore + public Optional periodCount() { + return periodCount; + } + + /** + * The type of period to include in the resource: month, quarter, year. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional periodType() { + return (Optional) periodType; + } + public final static Builder builder() { return new Builder(); } /** - * Filter by start date. If start date is given, end date is required. + * The start date of the period to include in the resource. */ public BalanceSheetFilter withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -73,7 +110,7 @@ public BalanceSheetFilter withStartDate(String startDate) { } /** - * Filter by start date. If start date is given, end date is required. + * The start date of the period to include in the resource. */ public BalanceSheetFilter withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -82,7 +119,7 @@ public BalanceSheetFilter withStartDate(Optional startDate) { } /** - * Filter by end date. If end date is given, start date is required. + * The end date of the period to include in the resource. */ public BalanceSheetFilter withEndDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -91,13 +128,49 @@ public BalanceSheetFilter withEndDate(String endDate) { } /** - * Filter by end date. If end date is given, start date is required. + * The end date of the period to include in the resource. */ public BalanceSheetFilter withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; } + + /** + * The number of periods to include in the resource. + */ + public BalanceSheetFilter withPeriodCount(long periodCount) { + Utils.checkNotNull(periodCount, "periodCount"); + this.periodCount = Optional.ofNullable(periodCount); + return this; + } + + /** + * The number of periods to include in the resource. + */ + public BalanceSheetFilter withPeriodCount(Optional periodCount) { + Utils.checkNotNull(periodCount, "periodCount"); + this.periodCount = periodCount; + return this; + } + + /** + * The type of period to include in the resource: month, quarter, year. + */ + public BalanceSheetFilter withPeriodType(PeriodType periodType) { + Utils.checkNotNull(periodType, "periodType"); + this.periodType = Optional.ofNullable(periodType); + return this; + } + + /** + * The type of period to include in the resource: month, quarter, year. + */ + public BalanceSheetFilter withPeriodType(Optional periodType) { + Utils.checkNotNull(periodType, "periodType"); + this.periodType = periodType; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -110,35 +183,45 @@ public boolean equals(java.lang.Object o) { BalanceSheetFilter other = (BalanceSheetFilter) o; return Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.endDate, other.endDate); + Objects.deepEquals(this.endDate, other.endDate) && + Objects.deepEquals(this.periodCount, other.periodCount) && + Objects.deepEquals(this.periodType, other.periodType); } @Override public int hashCode() { return Objects.hash( startDate, - endDate); + endDate, + periodCount, + periodType); } @Override public String toString() { return Utils.toString(BalanceSheetFilter.class, "startDate", startDate, - "endDate", endDate); + "endDate", endDate, + "periodCount", periodCount, + "periodType", periodType); } public final static class Builder { private Optional startDate = Optional.empty(); - private Optional endDate = Optional.empty(); + private Optional endDate = Optional.empty(); + + private Optional periodCount = Optional.empty(); + + private Optional periodType = Optional.empty(); private Builder() { // force use of static builder() method } /** - * Filter by start date. If start date is given, end date is required. + * The start date of the period to include in the resource. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -147,7 +230,7 @@ public Builder startDate(String startDate) { } /** - * Filter by start date. If start date is given, end date is required. + * The start date of the period to include in the resource. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -156,7 +239,7 @@ public Builder startDate(Optional startDate) { } /** - * Filter by end date. If end date is given, start date is required. + * The end date of the period to include in the resource. */ public Builder endDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -165,18 +248,56 @@ public Builder endDate(String endDate) { } /** - * Filter by end date. If end date is given, start date is required. + * The end date of the period to include in the resource. */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; } + + /** + * The number of periods to include in the resource. + */ + public Builder periodCount(long periodCount) { + Utils.checkNotNull(periodCount, "periodCount"); + this.periodCount = Optional.ofNullable(periodCount); + return this; + } + + /** + * The number of periods to include in the resource. + */ + public Builder periodCount(Optional periodCount) { + Utils.checkNotNull(periodCount, "periodCount"); + this.periodCount = periodCount; + return this; + } + + /** + * The type of period to include in the resource: month, quarter, year. + */ + public Builder periodType(PeriodType periodType) { + Utils.checkNotNull(periodType, "periodType"); + this.periodType = Optional.ofNullable(periodType); + return this; + } + + /** + * The type of period to include in the resource: month, quarter, year. + */ + public Builder periodType(Optional periodType) { + Utils.checkNotNull(periodType, "periodType"); + this.periodType = periodType; + return this; + } public BalanceSheetFilter build() { return new BalanceSheetFilter( startDate, - endDate); + endDate, + periodCount, + periodType); } } } diff --git a/src/main/java/com/apideck/unify/models/components/CardBrand.java b/src/main/java/com/apideck/unify/models/components/CardBrand.java deleted file mode 100644 index 04c6a88..0000000 --- a/src/main/java/com/apideck/unify/models/components/CardBrand.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * CardBrand - The first six digits of the card number, known as the Bank Identification Number (BIN). - */ -public enum CardBrand { - VISA("visa"), - MASTERCARD("mastercard"), - AMEX("amex"), - DISCOVER("discover"), - DISCOVER_DINERS("discover-diners"), - JCB("jcb"), - CHINA_UNIONPAY("china-unionpay"), - SQUARE_GIFT_CARD("square-gift-card"), - SQUARE_CAPITAL_CARD("square-capital-card"), - INTERAC("interac"), - EFTPOS("eftpos"), - FELICA("felica"), - EBT("ebt"), - OTHER("other"); - - @JsonValue - private final String value; - - private CardBrand(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/CardDetails.java b/src/main/java/com/apideck/unify/models/components/CardDetails.java deleted file mode 100644 index 4e8f86d..0000000 --- a/src/main/java/com/apideck/unify/models/components/CardDetails.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class CardDetails { - - /** - * A card's non-confidential details. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card") - private JsonNullable card; - - @JsonCreator - public CardDetails( - @JsonProperty("card") JsonNullable card) { - Utils.checkNotNull(card, "card"); - this.card = card; - } - - public CardDetails() { - this(JsonNullable.undefined()); - } - - /** - * A card's non-confidential details. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable card() { - return (JsonNullable) card; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A card's non-confidential details. - */ - public CardDetails withCard(PaymentCard card) { - Utils.checkNotNull(card, "card"); - this.card = JsonNullable.of(card); - return this; - } - - /** - * A card's non-confidential details. - */ - public CardDetails withCard(JsonNullable card) { - Utils.checkNotNull(card, "card"); - this.card = card; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CardDetails other = (CardDetails) o; - return - Objects.deepEquals(this.card, other.card); - } - - @Override - public int hashCode() { - return Objects.hash( - card); - } - - @Override - public String toString() { - return Utils.toString(CardDetails.class, - "card", card); - } - - public final static class Builder { - - private JsonNullable card = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * A card's non-confidential details. - */ - public Builder card(PaymentCard card) { - Utils.checkNotNull(card, "card"); - this.card = JsonNullable.of(card); - return this; - } - - /** - * A card's non-confidential details. - */ - public Builder card(JsonNullable card) { - Utils.checkNotNull(card, "card"); - this.card = card; - return this; - } - - public CardDetails build() { - return new CardDetails( - card); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/CardEntryMethod.java b/src/main/java/com/apideck/unify/models/components/CardEntryMethod.java deleted file mode 100644 index 20f8aa0..0000000 --- a/src/main/java/com/apideck/unify/models/components/CardEntryMethod.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * CardEntryMethod - The entry method of the card. Only applicable when the tender type is card. - */ -public enum CardEntryMethod { - EVM("evm"), - SWIPED("swiped"), - KEYED("keyed"), - ON_FILE("on-file"), - CONTACTLESS("contactless"); - - @JsonValue - private final String value; - - private CardEntryMethod(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/CardStatus.java b/src/main/java/com/apideck/unify/models/components/CardStatus.java deleted file mode 100644 index ebec020..0000000 --- a/src/main/java/com/apideck/unify/models/components/CardStatus.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * CardStatus - The status of the card. Only applicable when the tender type is card. - */ -public enum CardStatus { - AUTHORIZED("authorized"), - CAPTURED("captured"), - FAILED("failed"), - VOIDED("voided"); - - @JsonValue - private final String value; - - private CardStatus(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/CardType.java b/src/main/java/com/apideck/unify/models/components/CardType.java deleted file mode 100644 index 27c604b..0000000 --- a/src/main/java/com/apideck/unify/models/components/CardType.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum CardType { - CREDIT("credit"), - DEBIT("debit"), - PREPAID("prepaid"), - OTHER("other"); - - @JsonValue - private final String value; - - private CardType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/CashDetails.java b/src/main/java/com/apideck/unify/models/components/CashDetails.java deleted file mode 100644 index c39b2f2..0000000 --- a/src/main/java/com/apideck/unify/models/components/CashDetails.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; - -/** - * CashDetails - Cash details for this payment - */ - -public class CashDetails { - - /** - * The amount of cash given by the customer. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * The amount of change due back to the buyer. For Square: this read-only field is calculated from the amount_money and buyer_supplied_money fields. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("charge_back_amount") - private Optional chargeBackAmount; - - @JsonCreator - public CashDetails( - @JsonProperty("amount") Optional amount, - @JsonProperty("charge_back_amount") Optional chargeBackAmount) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(chargeBackAmount, "chargeBackAmount"); - this.amount = amount; - this.chargeBackAmount = chargeBackAmount; - } - - public CashDetails() { - this(Optional.empty(), Optional.empty()); - } - - /** - * The amount of cash given by the customer. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional amount() { - return (Optional) amount; - } - - /** - * The amount of change due back to the buyer. For Square: this read-only field is calculated from the amount_money and buyer_supplied_money fields. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional chargeBackAmount() { - return (Optional) chargeBackAmount; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The amount of cash given by the customer. - */ - public CashDetails withAmount(Object amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - /** - * The amount of cash given by the customer. - */ - public CashDetails withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * The amount of change due back to the buyer. For Square: this read-only field is calculated from the amount_money and buyer_supplied_money fields. - */ - public CashDetails withChargeBackAmount(Object chargeBackAmount) { - Utils.checkNotNull(chargeBackAmount, "chargeBackAmount"); - this.chargeBackAmount = Optional.ofNullable(chargeBackAmount); - return this; - } - - /** - * The amount of change due back to the buyer. For Square: this read-only field is calculated from the amount_money and buyer_supplied_money fields. - */ - public CashDetails withChargeBackAmount(Optional chargeBackAmount) { - Utils.checkNotNull(chargeBackAmount, "chargeBackAmount"); - this.chargeBackAmount = chargeBackAmount; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CashDetails other = (CashDetails) o; - return - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.chargeBackAmount, other.chargeBackAmount); - } - - @Override - public int hashCode() { - return Objects.hash( - amount, - chargeBackAmount); - } - - @Override - public String toString() { - return Utils.toString(CashDetails.class, - "amount", amount, - "chargeBackAmount", chargeBackAmount); - } - - public final static class Builder { - - private Optional amount = Optional.empty(); - - private Optional chargeBackAmount = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The amount of cash given by the customer. - */ - public Builder amount(Object amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - /** - * The amount of cash given by the customer. - */ - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * The amount of change due back to the buyer. For Square: this read-only field is calculated from the amount_money and buyer_supplied_money fields. - */ - public Builder chargeBackAmount(Object chargeBackAmount) { - Utils.checkNotNull(chargeBackAmount, "chargeBackAmount"); - this.chargeBackAmount = Optional.ofNullable(chargeBackAmount); - return this; - } - - /** - * The amount of change due back to the buyer. For Square: this read-only field is calculated from the amount_money and buyer_supplied_money fields. - */ - public Builder chargeBackAmount(Optional chargeBackAmount) { - Utils.checkNotNull(chargeBackAmount, "chargeBackAmount"); - this.chargeBackAmount = chargeBackAmount; - return this; - } - - public CashDetails build() { - return new CashDetails( - amount, - chargeBackAmount); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/CreateItemResponse.java b/src/main/java/com/apideck/unify/models/components/CreateItemResponse.java deleted file mode 100644 index aeeeba3..0000000 --- a/src/main/java/com/apideck/unify/models/components/CreateItemResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * CreateItemResponse - Items - */ - -public class CreateItemResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public CreateItemResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public CreateItemResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public CreateItemResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public CreateItemResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public CreateItemResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public CreateItemResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public CreateItemResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateItemResponse other = (CreateItemResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(CreateItemResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateItemResponse build() { - return new CreateItemResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/CreateLocationResponse.java b/src/main/java/com/apideck/unify/models/components/CreateLocationResponse.java deleted file mode 100644 index 35f36a0..0000000 --- a/src/main/java/com/apideck/unify/models/components/CreateLocationResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * CreateLocationResponse - Locations - */ - -public class CreateLocationResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public CreateLocationResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public CreateLocationResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public CreateLocationResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public CreateLocationResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public CreateLocationResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public CreateLocationResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public CreateLocationResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateLocationResponse other = (CreateLocationResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(CreateLocationResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateLocationResponse build() { - return new CreateLocationResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/CreateMerchantResponse.java b/src/main/java/com/apideck/unify/models/components/CreateMerchantResponse.java deleted file mode 100644 index b3bd054..0000000 --- a/src/main/java/com/apideck/unify/models/components/CreateMerchantResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * CreateMerchantResponse - Merchants - */ - -public class CreateMerchantResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public CreateMerchantResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public CreateMerchantResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public CreateMerchantResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public CreateMerchantResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public CreateMerchantResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public CreateMerchantResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public CreateMerchantResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateMerchantResponse other = (CreateMerchantResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(CreateMerchantResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateMerchantResponse build() { - return new CreateMerchantResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/CreateModifierGroupResponse.java b/src/main/java/com/apideck/unify/models/components/CreateModifierGroupResponse.java deleted file mode 100644 index d0d2c33..0000000 --- a/src/main/java/com/apideck/unify/models/components/CreateModifierGroupResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * CreateModifierGroupResponse - ModifierGroups - */ - -public class CreateModifierGroupResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public CreateModifierGroupResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public CreateModifierGroupResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public CreateModifierGroupResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public CreateModifierGroupResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public CreateModifierGroupResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public CreateModifierGroupResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public CreateModifierGroupResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateModifierGroupResponse other = (CreateModifierGroupResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(CreateModifierGroupResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateModifierGroupResponse build() { - return new CreateModifierGroupResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/CreateModifierResponse.java b/src/main/java/com/apideck/unify/models/components/CreateModifierResponse.java deleted file mode 100644 index b46bf0e..0000000 --- a/src/main/java/com/apideck/unify/models/components/CreateModifierResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * CreateModifierResponse - Modifiers - */ - -public class CreateModifierResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public CreateModifierResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public CreateModifierResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public CreateModifierResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public CreateModifierResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public CreateModifierResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public CreateModifierResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public CreateModifierResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateModifierResponse other = (CreateModifierResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(CreateModifierResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateModifierResponse build() { - return new CreateModifierResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/CreateOrderResponse.java b/src/main/java/com/apideck/unify/models/components/CreateOrderResponse.java deleted file mode 100644 index 4874f90..0000000 --- a/src/main/java/com/apideck/unify/models/components/CreateOrderResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * CreateOrderResponse - Orders - */ - -public class CreateOrderResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public CreateOrderResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public CreateOrderResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public CreateOrderResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public CreateOrderResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public CreateOrderResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public CreateOrderResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public CreateOrderResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateOrderResponse other = (CreateOrderResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(CreateOrderResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateOrderResponse build() { - return new CreateOrderResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/CreateOrderTypeResponse.java b/src/main/java/com/apideck/unify/models/components/CreateOrderTypeResponse.java deleted file mode 100644 index b820614..0000000 --- a/src/main/java/com/apideck/unify/models/components/CreateOrderTypeResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * CreateOrderTypeResponse - OrderTypes - */ - -public class CreateOrderTypeResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public CreateOrderTypeResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public CreateOrderTypeResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public CreateOrderTypeResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public CreateOrderTypeResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public CreateOrderTypeResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public CreateOrderTypeResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public CreateOrderTypeResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateOrderTypeResponse other = (CreateOrderTypeResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(CreateOrderTypeResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateOrderTypeResponse build() { - return new CreateOrderTypeResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/CreatePosPaymentResponse.java b/src/main/java/com/apideck/unify/models/components/CreatePosPaymentResponse.java deleted file mode 100644 index daffd46..0000000 --- a/src/main/java/com/apideck/unify/models/components/CreatePosPaymentResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * CreatePosPaymentResponse - PosPayments - */ - -public class CreatePosPaymentResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public CreatePosPaymentResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public CreatePosPaymentResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public CreatePosPaymentResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public CreatePosPaymentResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public CreatePosPaymentResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public CreatePosPaymentResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public CreatePosPaymentResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreatePosPaymentResponse other = (CreatePosPaymentResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(CreatePosPaymentResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreatePosPaymentResponse build() { - return new CreatePosPaymentResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/CreateTenderResponse.java b/src/main/java/com/apideck/unify/models/components/CreateTenderResponse.java deleted file mode 100644 index fd87175..0000000 --- a/src/main/java/com/apideck/unify/models/components/CreateTenderResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * CreateTenderResponse - Tenders - */ - -public class CreateTenderResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public CreateTenderResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public CreateTenderResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public CreateTenderResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public CreateTenderResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public CreateTenderResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public CreateTenderResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public CreateTenderResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateTenderResponse other = (CreateTenderResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(CreateTenderResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateTenderResponse build() { - return new CreateTenderResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/CurbsidePickupDetails.java b/src/main/java/com/apideck/unify/models/components/CurbsidePickupDetails.java deleted file mode 100644 index 33faade..0000000 --- a/src/main/java/com/apideck/unify/models/components/CurbsidePickupDetails.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.time.OffsetDateTime; -import java.util.Objects; -import java.util.Optional; - -/** - * CurbsidePickupDetails - Specific details for curbside pickup. - */ - -public class CurbsidePickupDetails { - - /** - * Specific details for curbside pickup, such as parking number and vehicle model. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("curbside_details") - private Optional curbsideDetails; - - /** - * Indicating when the buyer arrived and is waiting for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("buyer_arrived_at") - private Optional buyerArrivedAt; - - @JsonCreator - public CurbsidePickupDetails( - @JsonProperty("curbside_details") Optional curbsideDetails, - @JsonProperty("buyer_arrived_at") Optional buyerArrivedAt) { - Utils.checkNotNull(curbsideDetails, "curbsideDetails"); - Utils.checkNotNull(buyerArrivedAt, "buyerArrivedAt"); - this.curbsideDetails = curbsideDetails; - this.buyerArrivedAt = buyerArrivedAt; - } - - public CurbsidePickupDetails() { - this(Optional.empty(), Optional.empty()); - } - - /** - * Specific details for curbside pickup, such as parking number and vehicle model. - */ - @JsonIgnore - public Optional curbsideDetails() { - return curbsideDetails; - } - - /** - * Indicating when the buyer arrived and is waiting for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional buyerArrivedAt() { - return buyerArrivedAt; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Specific details for curbside pickup, such as parking number and vehicle model. - */ - public CurbsidePickupDetails withCurbsideDetails(String curbsideDetails) { - Utils.checkNotNull(curbsideDetails, "curbsideDetails"); - this.curbsideDetails = Optional.ofNullable(curbsideDetails); - return this; - } - - /** - * Specific details for curbside pickup, such as parking number and vehicle model. - */ - public CurbsidePickupDetails withCurbsideDetails(Optional curbsideDetails) { - Utils.checkNotNull(curbsideDetails, "curbsideDetails"); - this.curbsideDetails = curbsideDetails; - return this; - } - - /** - * Indicating when the buyer arrived and is waiting for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public CurbsidePickupDetails withBuyerArrivedAt(OffsetDateTime buyerArrivedAt) { - Utils.checkNotNull(buyerArrivedAt, "buyerArrivedAt"); - this.buyerArrivedAt = Optional.ofNullable(buyerArrivedAt); - return this; - } - - /** - * Indicating when the buyer arrived and is waiting for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public CurbsidePickupDetails withBuyerArrivedAt(Optional buyerArrivedAt) { - Utils.checkNotNull(buyerArrivedAt, "buyerArrivedAt"); - this.buyerArrivedAt = buyerArrivedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CurbsidePickupDetails other = (CurbsidePickupDetails) o; - return - Objects.deepEquals(this.curbsideDetails, other.curbsideDetails) && - Objects.deepEquals(this.buyerArrivedAt, other.buyerArrivedAt); - } - - @Override - public int hashCode() { - return Objects.hash( - curbsideDetails, - buyerArrivedAt); - } - - @Override - public String toString() { - return Utils.toString(CurbsidePickupDetails.class, - "curbsideDetails", curbsideDetails, - "buyerArrivedAt", buyerArrivedAt); - } - - public final static class Builder { - - private Optional curbsideDetails = Optional.empty(); - - private Optional buyerArrivedAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * Specific details for curbside pickup, such as parking number and vehicle model. - */ - public Builder curbsideDetails(String curbsideDetails) { - Utils.checkNotNull(curbsideDetails, "curbsideDetails"); - this.curbsideDetails = Optional.ofNullable(curbsideDetails); - return this; - } - - /** - * Specific details for curbside pickup, such as parking number and vehicle model. - */ - public Builder curbsideDetails(Optional curbsideDetails) { - Utils.checkNotNull(curbsideDetails, "curbsideDetails"); - this.curbsideDetails = curbsideDetails; - return this; - } - - /** - * Indicating when the buyer arrived and is waiting for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder buyerArrivedAt(OffsetDateTime buyerArrivedAt) { - Utils.checkNotNull(buyerArrivedAt, "buyerArrivedAt"); - this.buyerArrivedAt = Optional.ofNullable(buyerArrivedAt); - return this; - } - - /** - * Indicating when the buyer arrived and is waiting for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder buyerArrivedAt(Optional buyerArrivedAt) { - Utils.checkNotNull(buyerArrivedAt, "buyerArrivedAt"); - this.buyerArrivedAt = buyerArrivedAt; - return this; - } - - public CurbsidePickupDetails build() { - return new CurbsidePickupDetails( - curbsideDetails, - buyerArrivedAt); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Customers.java b/src/main/java/com/apideck/unify/models/components/Customers.java deleted file mode 100644 index ca55c09..0000000 --- a/src/main/java/com/apideck/unify/models/components/Customers.java +++ /dev/null @@ -1,324 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Customers { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("first_name") - private JsonNullable firstName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("middle_name") - private JsonNullable middleName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("last_name") - private JsonNullable lastName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("phone_numbers") - private Optional> phoneNumbers; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("emails") - private Optional> emails; - - @JsonCreator - public Customers( - @JsonProperty("id") Optional id, - @JsonProperty("first_name") JsonNullable firstName, - @JsonProperty("middle_name") JsonNullable middleName, - @JsonProperty("last_name") JsonNullable lastName, - @JsonProperty("phone_numbers") Optional> phoneNumbers, - @JsonProperty("emails") Optional> emails) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(firstName, "firstName"); - Utils.checkNotNull(middleName, "middleName"); - Utils.checkNotNull(lastName, "lastName"); - Utils.checkNotNull(phoneNumbers, "phoneNumbers"); - Utils.checkNotNull(emails, "emails"); - this.id = id; - this.firstName = firstName; - this.middleName = middleName; - this.lastName = lastName; - this.phoneNumbers = phoneNumbers; - this.emails = emails; - } - - public Customers() { - this(Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public JsonNullable firstName() { - return firstName; - } - - @JsonIgnore - public JsonNullable middleName() { - return middleName; - } - - @JsonIgnore - public JsonNullable lastName() { - return lastName; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> phoneNumbers() { - return (Optional>) phoneNumbers; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> emails() { - return (Optional>) emails; - } - - public final static Builder builder() { - return new Builder(); - } - - public Customers withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Customers withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Customers withFirstName(String firstName) { - Utils.checkNotNull(firstName, "firstName"); - this.firstName = JsonNullable.of(firstName); - return this; - } - - public Customers withFirstName(JsonNullable firstName) { - Utils.checkNotNull(firstName, "firstName"); - this.firstName = firstName; - return this; - } - - public Customers withMiddleName(String middleName) { - Utils.checkNotNull(middleName, "middleName"); - this.middleName = JsonNullable.of(middleName); - return this; - } - - public Customers withMiddleName(JsonNullable middleName) { - Utils.checkNotNull(middleName, "middleName"); - this.middleName = middleName; - return this; - } - - public Customers withLastName(String lastName) { - Utils.checkNotNull(lastName, "lastName"); - this.lastName = JsonNullable.of(lastName); - return this; - } - - public Customers withLastName(JsonNullable lastName) { - Utils.checkNotNull(lastName, "lastName"); - this.lastName = lastName; - return this; - } - - public Customers withPhoneNumbers(List phoneNumbers) { - Utils.checkNotNull(phoneNumbers, "phoneNumbers"); - this.phoneNumbers = Optional.ofNullable(phoneNumbers); - return this; - } - - public Customers withPhoneNumbers(Optional> phoneNumbers) { - Utils.checkNotNull(phoneNumbers, "phoneNumbers"); - this.phoneNumbers = phoneNumbers; - return this; - } - - public Customers withEmails(List emails) { - Utils.checkNotNull(emails, "emails"); - this.emails = Optional.ofNullable(emails); - return this; - } - - public Customers withEmails(Optional> emails) { - Utils.checkNotNull(emails, "emails"); - this.emails = emails; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Customers other = (Customers) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.firstName, other.firstName) && - Objects.deepEquals(this.middleName, other.middleName) && - Objects.deepEquals(this.lastName, other.lastName) && - Objects.deepEquals(this.phoneNumbers, other.phoneNumbers) && - Objects.deepEquals(this.emails, other.emails); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - firstName, - middleName, - lastName, - phoneNumbers, - emails); - } - - @Override - public String toString() { - return Utils.toString(Customers.class, - "id", id, - "firstName", firstName, - "middleName", middleName, - "lastName", lastName, - "phoneNumbers", phoneNumbers, - "emails", emails); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private JsonNullable firstName = JsonNullable.undefined(); - - private JsonNullable middleName = JsonNullable.undefined(); - - private JsonNullable lastName = JsonNullable.undefined(); - - private Optional> phoneNumbers = Optional.empty(); - - private Optional> emails = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder firstName(String firstName) { - Utils.checkNotNull(firstName, "firstName"); - this.firstName = JsonNullable.of(firstName); - return this; - } - - public Builder firstName(JsonNullable firstName) { - Utils.checkNotNull(firstName, "firstName"); - this.firstName = firstName; - return this; - } - - public Builder middleName(String middleName) { - Utils.checkNotNull(middleName, "middleName"); - this.middleName = JsonNullable.of(middleName); - return this; - } - - public Builder middleName(JsonNullable middleName) { - Utils.checkNotNull(middleName, "middleName"); - this.middleName = middleName; - return this; - } - - public Builder lastName(String lastName) { - Utils.checkNotNull(lastName, "lastName"); - this.lastName = JsonNullable.of(lastName); - return this; - } - - public Builder lastName(JsonNullable lastName) { - Utils.checkNotNull(lastName, "lastName"); - this.lastName = lastName; - return this; - } - - public Builder phoneNumbers(List phoneNumbers) { - Utils.checkNotNull(phoneNumbers, "phoneNumbers"); - this.phoneNumbers = Optional.ofNullable(phoneNumbers); - return this; - } - - public Builder phoneNumbers(Optional> phoneNumbers) { - Utils.checkNotNull(phoneNumbers, "phoneNumbers"); - this.phoneNumbers = phoneNumbers; - return this; - } - - public Builder emails(List emails) { - Utils.checkNotNull(emails, "emails"); - this.emails = Optional.ofNullable(emails); - return this; - } - - public Builder emails(Optional> emails) { - Utils.checkNotNull(emails, "emails"); - this.emails = emails; - return this; - } - - public Customers build() { - return new Customers( - id, - firstName, - middleName, - lastName, - phoneNumbers, - emails); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/DeleteItemResponse.java b/src/main/java/com/apideck/unify/models/components/DeleteItemResponse.java deleted file mode 100644 index 9b821b7..0000000 --- a/src/main/java/com/apideck/unify/models/components/DeleteItemResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * DeleteItemResponse - Items - */ - -public class DeleteItemResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public DeleteItemResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public DeleteItemResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public DeleteItemResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public DeleteItemResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public DeleteItemResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public DeleteItemResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public DeleteItemResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteItemResponse other = (DeleteItemResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(DeleteItemResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public DeleteItemResponse build() { - return new DeleteItemResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/DeleteLocationResponse.java b/src/main/java/com/apideck/unify/models/components/DeleteLocationResponse.java deleted file mode 100644 index 904d3a6..0000000 --- a/src/main/java/com/apideck/unify/models/components/DeleteLocationResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * DeleteLocationResponse - Locations - */ - -public class DeleteLocationResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public DeleteLocationResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public DeleteLocationResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public DeleteLocationResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public DeleteLocationResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public DeleteLocationResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public DeleteLocationResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public DeleteLocationResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteLocationResponse other = (DeleteLocationResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(DeleteLocationResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public DeleteLocationResponse build() { - return new DeleteLocationResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/DeleteMerchantResponse.java b/src/main/java/com/apideck/unify/models/components/DeleteMerchantResponse.java deleted file mode 100644 index b4d8302..0000000 --- a/src/main/java/com/apideck/unify/models/components/DeleteMerchantResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * DeleteMerchantResponse - Merchants - */ - -public class DeleteMerchantResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public DeleteMerchantResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public DeleteMerchantResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public DeleteMerchantResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public DeleteMerchantResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public DeleteMerchantResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public DeleteMerchantResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public DeleteMerchantResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteMerchantResponse other = (DeleteMerchantResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(DeleteMerchantResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public DeleteMerchantResponse build() { - return new DeleteMerchantResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/DeleteModifierGroupResponse.java b/src/main/java/com/apideck/unify/models/components/DeleteModifierGroupResponse.java deleted file mode 100644 index 66c4633..0000000 --- a/src/main/java/com/apideck/unify/models/components/DeleteModifierGroupResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * DeleteModifierGroupResponse - ModifierGroups - */ - -public class DeleteModifierGroupResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public DeleteModifierGroupResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public DeleteModifierGroupResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public DeleteModifierGroupResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public DeleteModifierGroupResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public DeleteModifierGroupResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public DeleteModifierGroupResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public DeleteModifierGroupResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteModifierGroupResponse other = (DeleteModifierGroupResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(DeleteModifierGroupResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public DeleteModifierGroupResponse build() { - return new DeleteModifierGroupResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/DeleteModifierResponse.java b/src/main/java/com/apideck/unify/models/components/DeleteModifierResponse.java deleted file mode 100644 index 34a126d..0000000 --- a/src/main/java/com/apideck/unify/models/components/DeleteModifierResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * DeleteModifierResponse - Modifiers - */ - -public class DeleteModifierResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public DeleteModifierResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public DeleteModifierResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public DeleteModifierResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public DeleteModifierResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public DeleteModifierResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public DeleteModifierResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public DeleteModifierResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteModifierResponse other = (DeleteModifierResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(DeleteModifierResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public DeleteModifierResponse build() { - return new DeleteModifierResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/DeleteOrderResponse.java b/src/main/java/com/apideck/unify/models/components/DeleteOrderResponse.java deleted file mode 100644 index 8200905..0000000 --- a/src/main/java/com/apideck/unify/models/components/DeleteOrderResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * DeleteOrderResponse - Orders - */ - -public class DeleteOrderResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public DeleteOrderResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public DeleteOrderResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public DeleteOrderResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public DeleteOrderResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public DeleteOrderResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public DeleteOrderResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public DeleteOrderResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteOrderResponse other = (DeleteOrderResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(DeleteOrderResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public DeleteOrderResponse build() { - return new DeleteOrderResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/DeleteOrderTypeResponse.java b/src/main/java/com/apideck/unify/models/components/DeleteOrderTypeResponse.java deleted file mode 100644 index b5d6a7d..0000000 --- a/src/main/java/com/apideck/unify/models/components/DeleteOrderTypeResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * DeleteOrderTypeResponse - OrderTypes - */ - -public class DeleteOrderTypeResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public DeleteOrderTypeResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public DeleteOrderTypeResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public DeleteOrderTypeResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public DeleteOrderTypeResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public DeleteOrderTypeResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public DeleteOrderTypeResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public DeleteOrderTypeResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteOrderTypeResponse other = (DeleteOrderTypeResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(DeleteOrderTypeResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public DeleteOrderTypeResponse build() { - return new DeleteOrderTypeResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/DeletePosPaymentResponse.java b/src/main/java/com/apideck/unify/models/components/DeletePosPaymentResponse.java deleted file mode 100644 index 6aec2a3..0000000 --- a/src/main/java/com/apideck/unify/models/components/DeletePosPaymentResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * DeletePosPaymentResponse - PosPayments - */ - -public class DeletePosPaymentResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public DeletePosPaymentResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public DeletePosPaymentResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public DeletePosPaymentResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public DeletePosPaymentResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public DeletePosPaymentResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public DeletePosPaymentResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public DeletePosPaymentResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeletePosPaymentResponse other = (DeletePosPaymentResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(DeletePosPaymentResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public DeletePosPaymentResponse build() { - return new DeletePosPaymentResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/DeleteTenderResponse.java b/src/main/java/com/apideck/unify/models/components/DeleteTenderResponse.java deleted file mode 100644 index 52141bc..0000000 --- a/src/main/java/com/apideck/unify/models/components/DeleteTenderResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * DeleteTenderResponse - Tenders - */ - -public class DeleteTenderResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public DeleteTenderResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public DeleteTenderResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public DeleteTenderResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public DeleteTenderResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public DeleteTenderResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public DeleteTenderResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public DeleteTenderResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteTenderResponse other = (DeleteTenderResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(DeleteTenderResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public DeleteTenderResponse build() { - return new DeleteTenderResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Detail.java b/src/main/java/com/apideck/unify/models/components/Detail.java index fac609f..e0bae5b 100644 --- a/src/main/java/com/apideck/unify/models/components/Detail.java +++ b/src/main/java/com/apideck/unify/models/components/Detail.java @@ -13,9 +13,11 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Objects; /** @@ -37,16 +39,16 @@ public static Detail of(String value) { return new Detail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static Detail of(Two value) { + public static Detail of(Map value) { Utils.checkNotNull(value, "value"); - return new Detail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new Detail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference>(){})); } /** * Returns an instance of one of these types: *
    *
  • {@code java.lang.String}
  • - *
  • {@code com.apideck.unify.models.components.Two}
  • + *
  • {@code java.util.Map}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -86,8 +88,8 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Detail.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/apideck/unify/models/components/Discounts.java b/src/main/java/com/apideck/unify/models/components/Discounts.java deleted file mode 100644 index 4574145..0000000 --- a/src/main/java/com/apideck/unify/models/components/Discounts.java +++ /dev/null @@ -1,408 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Discounts { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("product_id") - private Optional productId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonProperty("type") - private OrderDiscountsType type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("scope") - private Optional scope; - - @JsonCreator - public Discounts( - @JsonProperty("id") Optional id, - @JsonProperty("product_id") Optional productId, - @JsonProperty("name") Optional name, - @JsonProperty("type") OrderDiscountsType type, - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("scope") Optional scope) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(productId, "productId"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(scope, "scope"); - this.id = id; - this.productId = productId; - this.name = name; - this.type = type; - this.amount = amount; - this.currency = currency; - this.scope = scope; - } - - public Discounts( - OrderDiscountsType type) { - this(Optional.empty(), Optional.empty(), Optional.empty(), type, Optional.empty(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional productId() { - return productId; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public OrderDiscountsType type() { - return type; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional scope() { - return (Optional) scope; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public Discounts withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Discounts withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A unique identifier for an object. - */ - public Discounts withProductId(String productId) { - Utils.checkNotNull(productId, "productId"); - this.productId = Optional.ofNullable(productId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Discounts withProductId(Optional productId) { - Utils.checkNotNull(productId, "productId"); - this.productId = productId; - return this; - } - - public Discounts withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Discounts withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Discounts withType(OrderDiscountsType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Discounts withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Discounts withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Discounts withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Discounts withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Discounts withScope(OrderDiscountsScope scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = Optional.ofNullable(scope); - return this; - } - - public Discounts withScope(Optional scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = scope; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Discounts other = (Discounts) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.productId, other.productId) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.type, other.type) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.scope, other.scope); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - productId, - name, - type, - amount, - currency, - scope); - } - - @Override - public String toString() { - return Utils.toString(Discounts.class, - "id", id, - "productId", productId, - "name", name, - "type", type, - "amount", amount, - "currency", currency, - "scope", scope); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional productId = Optional.empty(); - - private Optional name = Optional.empty(); - - private OrderDiscountsType type; - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Optional scope = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder productId(String productId) { - Utils.checkNotNull(productId, "productId"); - this.productId = Optional.ofNullable(productId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder productId(Optional productId) { - Utils.checkNotNull(productId, "productId"); - this.productId = productId; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder type(OrderDiscountsType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder scope(OrderDiscountsScope scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = Optional.ofNullable(scope); - return this; - } - - public Builder scope(Optional scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = scope; - return this; - } - - public Discounts build() { - return new Discounts( - id, - productId, - name, - type, - amount, - currency, - scope); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ExternalDetails.java b/src/main/java/com/apideck/unify/models/components/ExternalDetails.java deleted file mode 100644 index 09c27aa..0000000 --- a/src/main/java/com/apideck/unify/models/components/ExternalDetails.java +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -/** - * ExternalDetails - Details about an external payment. - */ - -public class ExternalDetails { - - /** - * The type of external payment the seller received. It can be one of the following: - * - CHECK - Paid using a physical check. - * - BANK_TRANSFER - Paid using external bank transfer. - * - OTHER\_GIFT\_CARD - Paid using a non-Square gift card. - * - CRYPTO - Paid using a crypto currency. - * - SQUARE_CASH - Paid using Square Cash App. - * - SOCIAL - Paid using peer-to-peer payment applications. - * - EXTERNAL - A third-party application gathered this payment outside of Square. - * - EMONEY - Paid using an E-money provider. - * - CARD - A credit or debit card that Square does not support. - * - STORED_BALANCE - Use for house accounts, store credit, and so forth. - * - FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals - * - OTHER - A type not listed here. - */ - @JsonProperty("type") - private PosPaymentType type; - - /** - * A description of the external payment source. For example, - * "Food Delivery Service". - */ - @JsonProperty("source") - private String source; - - /** - * An ID to associate the payment to its originating source. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("source_id") - private Optional sourceId; - - /** - * The fees paid to the source. The amount minus this field is the net amount seller receives. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("source_fee_amount") - private Optional sourceFeeAmount; - - @JsonCreator - public ExternalDetails( - @JsonProperty("type") PosPaymentType type, - @JsonProperty("source") String source, - @JsonProperty("source_id") Optional sourceId, - @JsonProperty("source_fee_amount") Optional sourceFeeAmount) { - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(source, "source"); - Utils.checkNotNull(sourceId, "sourceId"); - Utils.checkNotNull(sourceFeeAmount, "sourceFeeAmount"); - this.type = type; - this.source = source; - this.sourceId = sourceId; - this.sourceFeeAmount = sourceFeeAmount; - } - - public ExternalDetails( - PosPaymentType type, - String source) { - this(type, source, Optional.empty(), Optional.empty()); - } - - /** - * The type of external payment the seller received. It can be one of the following: - * - CHECK - Paid using a physical check. - * - BANK_TRANSFER - Paid using external bank transfer. - * - OTHER\_GIFT\_CARD - Paid using a non-Square gift card. - * - CRYPTO - Paid using a crypto currency. - * - SQUARE_CASH - Paid using Square Cash App. - * - SOCIAL - Paid using peer-to-peer payment applications. - * - EXTERNAL - A third-party application gathered this payment outside of Square. - * - EMONEY - Paid using an E-money provider. - * - CARD - A credit or debit card that Square does not support. - * - STORED_BALANCE - Use for house accounts, store credit, and so forth. - * - FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals - * - OTHER - A type not listed here. - */ - @JsonIgnore - public PosPaymentType type() { - return type; - } - - /** - * A description of the external payment source. For example, - * "Food Delivery Service". - */ - @JsonIgnore - public String source() { - return source; - } - - /** - * An ID to associate the payment to its originating source. - */ - @JsonIgnore - public Optional sourceId() { - return sourceId; - } - - /** - * The fees paid to the source. The amount minus this field is the net amount seller receives. - */ - @JsonIgnore - public Optional sourceFeeAmount() { - return sourceFeeAmount; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The type of external payment the seller received. It can be one of the following: - * - CHECK - Paid using a physical check. - * - BANK_TRANSFER - Paid using external bank transfer. - * - OTHER\_GIFT\_CARD - Paid using a non-Square gift card. - * - CRYPTO - Paid using a crypto currency. - * - SQUARE_CASH - Paid using Square Cash App. - * - SOCIAL - Paid using peer-to-peer payment applications. - * - EXTERNAL - A third-party application gathered this payment outside of Square. - * - EMONEY - Paid using an E-money provider. - * - CARD - A credit or debit card that Square does not support. - * - STORED_BALANCE - Use for house accounts, store credit, and so forth. - * - FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals - * - OTHER - A type not listed here. - */ - public ExternalDetails withType(PosPaymentType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - /** - * A description of the external payment source. For example, - * "Food Delivery Service". - */ - public ExternalDetails withSource(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - /** - * An ID to associate the payment to its originating source. - */ - public ExternalDetails withSourceId(String sourceId) { - Utils.checkNotNull(sourceId, "sourceId"); - this.sourceId = Optional.ofNullable(sourceId); - return this; - } - - /** - * An ID to associate the payment to its originating source. - */ - public ExternalDetails withSourceId(Optional sourceId) { - Utils.checkNotNull(sourceId, "sourceId"); - this.sourceId = sourceId; - return this; - } - - /** - * The fees paid to the source. The amount minus this field is the net amount seller receives. - */ - public ExternalDetails withSourceFeeAmount(double sourceFeeAmount) { - Utils.checkNotNull(sourceFeeAmount, "sourceFeeAmount"); - this.sourceFeeAmount = Optional.ofNullable(sourceFeeAmount); - return this; - } - - /** - * The fees paid to the source. The amount minus this field is the net amount seller receives. - */ - public ExternalDetails withSourceFeeAmount(Optional sourceFeeAmount) { - Utils.checkNotNull(sourceFeeAmount, "sourceFeeAmount"); - this.sourceFeeAmount = sourceFeeAmount; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExternalDetails other = (ExternalDetails) o; - return - Objects.deepEquals(this.type, other.type) && - Objects.deepEquals(this.source, other.source) && - Objects.deepEquals(this.sourceId, other.sourceId) && - Objects.deepEquals(this.sourceFeeAmount, other.sourceFeeAmount); - } - - @Override - public int hashCode() { - return Objects.hash( - type, - source, - sourceId, - sourceFeeAmount); - } - - @Override - public String toString() { - return Utils.toString(ExternalDetails.class, - "type", type, - "source", source, - "sourceId", sourceId, - "sourceFeeAmount", sourceFeeAmount); - } - - public final static class Builder { - - private PosPaymentType type; - - private String source; - - private Optional sourceId = Optional.empty(); - - private Optional sourceFeeAmount = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The type of external payment the seller received. It can be one of the following: - * - CHECK - Paid using a physical check. - * - BANK_TRANSFER - Paid using external bank transfer. - * - OTHER\_GIFT\_CARD - Paid using a non-Square gift card. - * - CRYPTO - Paid using a crypto currency. - * - SQUARE_CASH - Paid using Square Cash App. - * - SOCIAL - Paid using peer-to-peer payment applications. - * - EXTERNAL - A third-party application gathered this payment outside of Square. - * - EMONEY - Paid using an E-money provider. - * - CARD - A credit or debit card that Square does not support. - * - STORED_BALANCE - Use for house accounts, store credit, and so forth. - * - FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals - * - OTHER - A type not listed here. - */ - public Builder type(PosPaymentType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - /** - * A description of the external payment source. For example, - * "Food Delivery Service". - */ - public Builder source(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - /** - * An ID to associate the payment to its originating source. - */ - public Builder sourceId(String sourceId) { - Utils.checkNotNull(sourceId, "sourceId"); - this.sourceId = Optional.ofNullable(sourceId); - return this; - } - - /** - * An ID to associate the payment to its originating source. - */ - public Builder sourceId(Optional sourceId) { - Utils.checkNotNull(sourceId, "sourceId"); - this.sourceId = sourceId; - return this; - } - - /** - * The fees paid to the source. The amount minus this field is the net amount seller receives. - */ - public Builder sourceFeeAmount(double sourceFeeAmount) { - Utils.checkNotNull(sourceFeeAmount, "sourceFeeAmount"); - this.sourceFeeAmount = Optional.ofNullable(sourceFeeAmount); - return this; - } - - /** - * The fees paid to the source. The amount minus this field is the net amount seller receives. - */ - public Builder sourceFeeAmount(Optional sourceFeeAmount) { - Utils.checkNotNull(sourceFeeAmount, "sourceFeeAmount"); - this.sourceFeeAmount = sourceFeeAmount; - return this; - } - - public ExternalDetails build() { - return new ExternalDetails( - type, - source, - sourceId, - sourceFeeAmount); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Fulfillments.java b/src/main/java/com/apideck/unify/models/components/Fulfillments.java deleted file mode 100644 index 2b266d0..0000000 --- a/src/main/java/com/apideck/unify/models/components/Fulfillments.java +++ /dev/null @@ -1,300 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; - - -public class Fulfillments { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * The state of the fulfillment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pickup_details") - private Optional pickupDetails; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("shipment_details") - private Optional shipmentDetails; - - @JsonCreator - public Fulfillments( - @JsonProperty("id") Optional id, - @JsonProperty("status") Optional status, - @JsonProperty("type") Optional type, - @JsonProperty("pickup_details") Optional pickupDetails, - @JsonProperty("shipment_details") Optional shipmentDetails) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(pickupDetails, "pickupDetails"); - Utils.checkNotNull(shipmentDetails, "shipmentDetails"); - this.id = id; - this.status = status; - this.type = type; - this.pickupDetails = pickupDetails; - this.shipmentDetails = shipmentDetails; - } - - public Fulfillments() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional id() { - return id; - } - - /** - * The state of the fulfillment. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional pickupDetails() { - return (Optional) pickupDetails; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional shipmentDetails() { - return (Optional) shipmentDetails; - } - - public final static Builder builder() { - return new Builder(); - } - - public Fulfillments withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Fulfillments withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The state of the fulfillment. - */ - public Fulfillments withStatus(OrderFulfillmentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * The state of the fulfillment. - */ - public Fulfillments withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Fulfillments withType(OrderFulfillmentsType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Fulfillments withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Fulfillments withPickupDetails(PickupDetails pickupDetails) { - Utils.checkNotNull(pickupDetails, "pickupDetails"); - this.pickupDetails = Optional.ofNullable(pickupDetails); - return this; - } - - public Fulfillments withPickupDetails(Optional pickupDetails) { - Utils.checkNotNull(pickupDetails, "pickupDetails"); - this.pickupDetails = pickupDetails; - return this; - } - - public Fulfillments withShipmentDetails(ShipmentDetails shipmentDetails) { - Utils.checkNotNull(shipmentDetails, "shipmentDetails"); - this.shipmentDetails = Optional.ofNullable(shipmentDetails); - return this; - } - - public Fulfillments withShipmentDetails(Optional shipmentDetails) { - Utils.checkNotNull(shipmentDetails, "shipmentDetails"); - this.shipmentDetails = shipmentDetails; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Fulfillments other = (Fulfillments) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.type, other.type) && - Objects.deepEquals(this.pickupDetails, other.pickupDetails) && - Objects.deepEquals(this.shipmentDetails, other.shipmentDetails); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - status, - type, - pickupDetails, - shipmentDetails); - } - - @Override - public String toString() { - return Utils.toString(Fulfillments.class, - "id", id, - "status", status, - "type", type, - "pickupDetails", pickupDetails, - "shipmentDetails", shipmentDetails); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional status = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional pickupDetails = Optional.empty(); - - private Optional shipmentDetails = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The state of the fulfillment. - */ - public Builder status(OrderFulfillmentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * The state of the fulfillment. - */ - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Builder type(OrderFulfillmentsType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder pickupDetails(PickupDetails pickupDetails) { - Utils.checkNotNull(pickupDetails, "pickupDetails"); - this.pickupDetails = Optional.ofNullable(pickupDetails); - return this; - } - - public Builder pickupDetails(Optional pickupDetails) { - Utils.checkNotNull(pickupDetails, "pickupDetails"); - this.pickupDetails = pickupDetails; - return this; - } - - public Builder shipmentDetails(ShipmentDetails shipmentDetails) { - Utils.checkNotNull(shipmentDetails, "shipmentDetails"); - this.shipmentDetails = Optional.ofNullable(shipmentDetails); - return this; - } - - public Builder shipmentDetails(Optional shipmentDetails) { - Utils.checkNotNull(shipmentDetails, "shipmentDetails"); - this.shipmentDetails = shipmentDetails; - return this; - } - - public Fulfillments build() { - return new Fulfillments( - id, - status, - type, - pickupDetails, - shipmentDetails); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetItemResponse.java b/src/main/java/com/apideck/unify/models/components/GetItemResponse.java deleted file mode 100644 index 7a591df..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetItemResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * GetItemResponse - Items - */ - -public class GetItemResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private Item data; - - @JsonCreator - public GetItemResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") Item data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public Item data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetItemResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetItemResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetItemResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetItemResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetItemResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetItemResponse withData(Item data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetItemResponse other = (GetItemResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(GetItemResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private Item data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(Item data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetItemResponse build() { - return new GetItemResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetItemsResponse.java b/src/main/java/com/apideck/unify/models/components/GetItemsResponse.java deleted file mode 100644 index af4dba7..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetItemsResponse.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - -/** - * GetItemsResponse - Items - */ - -public class GetItemsResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private List data; - - /** - * Response metadata - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("meta") - private Optional meta; - - /** - * Links to navigate to previous or next pages through the API - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("links") - private Optional links; - - @JsonCreator - public GetItemsResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") List data, - @JsonProperty("meta") Optional meta, - @JsonProperty("links") Optional links) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(meta, "meta"); - Utils.checkNotNull(links, "links"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - this.meta = meta; - this.links = links; - } - - public GetItemsResponse( - long statusCode, - String status, - String service, - String resource, - String operation, - List data) { - this(statusCode, status, service, resource, operation, data, Optional.empty(), Optional.empty()); - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public List data() { - return data; - } - - /** - * Response metadata - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional meta() { - return (Optional) meta; - } - - /** - * Links to navigate to previous or next pages through the API - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional links() { - return (Optional) links; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetItemsResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetItemsResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetItemsResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetItemsResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetItemsResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetItemsResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public GetItemsResponse withMeta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public GetItemsResponse withMeta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetItemsResponse withLinks(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetItemsResponse withLinks(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetItemsResponse other = (GetItemsResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.meta, other.meta) && - Objects.deepEquals(this.links, other.links); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - - @Override - public String toString() { - return Utils.toString(GetItemsResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data, - "meta", meta, - "links", links); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private List data; - - private Optional meta = Optional.empty(); - - private Optional links = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public Builder meta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public Builder meta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - public GetItemsResponse build() { - return new GetItemsResponse( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetLocationResponse.java b/src/main/java/com/apideck/unify/models/components/GetLocationResponse.java deleted file mode 100644 index 50353c1..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetLocationResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * GetLocationResponse - Locations - */ - -public class GetLocationResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private Location data; - - @JsonCreator - public GetLocationResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") Location data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public Location data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetLocationResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetLocationResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetLocationResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetLocationResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetLocationResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetLocationResponse withData(Location data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLocationResponse other = (GetLocationResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(GetLocationResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private Location data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(Location data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetLocationResponse build() { - return new GetLocationResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetLocationsResponse.java b/src/main/java/com/apideck/unify/models/components/GetLocationsResponse.java deleted file mode 100644 index a8bea75..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetLocationsResponse.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - -/** - * GetLocationsResponse - Locations - */ - -public class GetLocationsResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private List data; - - /** - * Response metadata - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("meta") - private Optional meta; - - /** - * Links to navigate to previous or next pages through the API - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("links") - private Optional links; - - @JsonCreator - public GetLocationsResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") List data, - @JsonProperty("meta") Optional meta, - @JsonProperty("links") Optional links) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(meta, "meta"); - Utils.checkNotNull(links, "links"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - this.meta = meta; - this.links = links; - } - - public GetLocationsResponse( - long statusCode, - String status, - String service, - String resource, - String operation, - List data) { - this(statusCode, status, service, resource, operation, data, Optional.empty(), Optional.empty()); - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public List data() { - return data; - } - - /** - * Response metadata - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional meta() { - return (Optional) meta; - } - - /** - * Links to navigate to previous or next pages through the API - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional links() { - return (Optional) links; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetLocationsResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetLocationsResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetLocationsResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetLocationsResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetLocationsResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetLocationsResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public GetLocationsResponse withMeta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public GetLocationsResponse withMeta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetLocationsResponse withLinks(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetLocationsResponse withLinks(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLocationsResponse other = (GetLocationsResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.meta, other.meta) && - Objects.deepEquals(this.links, other.links); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - - @Override - public String toString() { - return Utils.toString(GetLocationsResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data, - "meta", meta, - "links", links); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private List data; - - private Optional meta = Optional.empty(); - - private Optional links = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public Builder meta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public Builder meta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - public GetLocationsResponse build() { - return new GetLocationsResponse( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetMerchantResponse.java b/src/main/java/com/apideck/unify/models/components/GetMerchantResponse.java deleted file mode 100644 index d83778a..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetMerchantResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * GetMerchantResponse - Merchants - */ - -public class GetMerchantResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private Merchant data; - - @JsonCreator - public GetMerchantResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") Merchant data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public Merchant data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetMerchantResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetMerchantResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetMerchantResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetMerchantResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetMerchantResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetMerchantResponse withData(Merchant data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMerchantResponse other = (GetMerchantResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(GetMerchantResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private Merchant data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(Merchant data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetMerchantResponse build() { - return new GetMerchantResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetMerchantsResponse.java b/src/main/java/com/apideck/unify/models/components/GetMerchantsResponse.java deleted file mode 100644 index c13bc34..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetMerchantsResponse.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - -/** - * GetMerchantsResponse - Merchants - */ - -public class GetMerchantsResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private List data; - - /** - * Response metadata - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("meta") - private Optional meta; - - /** - * Links to navigate to previous or next pages through the API - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("links") - private Optional links; - - @JsonCreator - public GetMerchantsResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") List data, - @JsonProperty("meta") Optional meta, - @JsonProperty("links") Optional links) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(meta, "meta"); - Utils.checkNotNull(links, "links"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - this.meta = meta; - this.links = links; - } - - public GetMerchantsResponse( - long statusCode, - String status, - String service, - String resource, - String operation, - List data) { - this(statusCode, status, service, resource, operation, data, Optional.empty(), Optional.empty()); - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public List data() { - return data; - } - - /** - * Response metadata - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional meta() { - return (Optional) meta; - } - - /** - * Links to navigate to previous or next pages through the API - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional links() { - return (Optional) links; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetMerchantsResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetMerchantsResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetMerchantsResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetMerchantsResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetMerchantsResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetMerchantsResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public GetMerchantsResponse withMeta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public GetMerchantsResponse withMeta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetMerchantsResponse withLinks(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetMerchantsResponse withLinks(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMerchantsResponse other = (GetMerchantsResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.meta, other.meta) && - Objects.deepEquals(this.links, other.links); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - - @Override - public String toString() { - return Utils.toString(GetMerchantsResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data, - "meta", meta, - "links", links); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private List data; - - private Optional meta = Optional.empty(); - - private Optional links = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public Builder meta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public Builder meta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - public GetMerchantsResponse build() { - return new GetMerchantsResponse( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetModifierGroupResponse.java b/src/main/java/com/apideck/unify/models/components/GetModifierGroupResponse.java deleted file mode 100644 index fa2ca91..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetModifierGroupResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * GetModifierGroupResponse - ModifierGroups - */ - -public class GetModifierGroupResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private ModifierGroup data; - - @JsonCreator - public GetModifierGroupResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") ModifierGroup data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public ModifierGroup data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetModifierGroupResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetModifierGroupResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetModifierGroupResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetModifierGroupResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetModifierGroupResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetModifierGroupResponse withData(ModifierGroup data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetModifierGroupResponse other = (GetModifierGroupResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(GetModifierGroupResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private ModifierGroup data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(ModifierGroup data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetModifierGroupResponse build() { - return new GetModifierGroupResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetModifierGroupsResponse.java b/src/main/java/com/apideck/unify/models/components/GetModifierGroupsResponse.java deleted file mode 100644 index 1862e4b..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetModifierGroupsResponse.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - -/** - * GetModifierGroupsResponse - ModifierGroups - */ - -public class GetModifierGroupsResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private List data; - - /** - * Response metadata - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("meta") - private Optional meta; - - /** - * Links to navigate to previous or next pages through the API - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("links") - private Optional links; - - @JsonCreator - public GetModifierGroupsResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") List data, - @JsonProperty("meta") Optional meta, - @JsonProperty("links") Optional links) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(meta, "meta"); - Utils.checkNotNull(links, "links"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - this.meta = meta; - this.links = links; - } - - public GetModifierGroupsResponse( - long statusCode, - String status, - String service, - String resource, - String operation, - List data) { - this(statusCode, status, service, resource, operation, data, Optional.empty(), Optional.empty()); - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public List data() { - return data; - } - - /** - * Response metadata - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional meta() { - return (Optional) meta; - } - - /** - * Links to navigate to previous or next pages through the API - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional links() { - return (Optional) links; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetModifierGroupsResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetModifierGroupsResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetModifierGroupsResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetModifierGroupsResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetModifierGroupsResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetModifierGroupsResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public GetModifierGroupsResponse withMeta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public GetModifierGroupsResponse withMeta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetModifierGroupsResponse withLinks(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetModifierGroupsResponse withLinks(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetModifierGroupsResponse other = (GetModifierGroupsResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.meta, other.meta) && - Objects.deepEquals(this.links, other.links); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - - @Override - public String toString() { - return Utils.toString(GetModifierGroupsResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data, - "meta", meta, - "links", links); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private List data; - - private Optional meta = Optional.empty(); - - private Optional links = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public Builder meta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public Builder meta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - public GetModifierGroupsResponse build() { - return new GetModifierGroupsResponse( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetModifierResponse.java b/src/main/java/com/apideck/unify/models/components/GetModifierResponse.java deleted file mode 100644 index 1c1dc8b..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetModifierResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * GetModifierResponse - Modifiers - */ - -public class GetModifierResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private Modifier data; - - @JsonCreator - public GetModifierResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") Modifier data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public Modifier data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetModifierResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetModifierResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetModifierResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetModifierResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetModifierResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetModifierResponse withData(Modifier data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetModifierResponse other = (GetModifierResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(GetModifierResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private Modifier data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(Modifier data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetModifierResponse build() { - return new GetModifierResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetModifiersResponse.java b/src/main/java/com/apideck/unify/models/components/GetModifiersResponse.java deleted file mode 100644 index 7e3c4a2..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetModifiersResponse.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - -/** - * GetModifiersResponse - Modifiers - */ - -public class GetModifiersResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private List data; - - /** - * Response metadata - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("meta") - private Optional meta; - - /** - * Links to navigate to previous or next pages through the API - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("links") - private Optional links; - - @JsonCreator - public GetModifiersResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") List data, - @JsonProperty("meta") Optional meta, - @JsonProperty("links") Optional links) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(meta, "meta"); - Utils.checkNotNull(links, "links"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - this.meta = meta; - this.links = links; - } - - public GetModifiersResponse( - long statusCode, - String status, - String service, - String resource, - String operation, - List data) { - this(statusCode, status, service, resource, operation, data, Optional.empty(), Optional.empty()); - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public List data() { - return data; - } - - /** - * Response metadata - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional meta() { - return (Optional) meta; - } - - /** - * Links to navigate to previous or next pages through the API - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional links() { - return (Optional) links; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetModifiersResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetModifiersResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetModifiersResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetModifiersResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetModifiersResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetModifiersResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public GetModifiersResponse withMeta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public GetModifiersResponse withMeta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetModifiersResponse withLinks(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetModifiersResponse withLinks(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetModifiersResponse other = (GetModifiersResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.meta, other.meta) && - Objects.deepEquals(this.links, other.links); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - - @Override - public String toString() { - return Utils.toString(GetModifiersResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data, - "meta", meta, - "links", links); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private List data; - - private Optional meta = Optional.empty(); - - private Optional links = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public Builder meta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public Builder meta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - public GetModifiersResponse build() { - return new GetModifiersResponse( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetOrderResponse.java b/src/main/java/com/apideck/unify/models/components/GetOrderResponse.java deleted file mode 100644 index 70f93cb..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetOrderResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * GetOrderResponse - Orders - */ - -public class GetOrderResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private Order data; - - @JsonCreator - public GetOrderResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") Order data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public Order data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetOrderResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetOrderResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetOrderResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetOrderResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetOrderResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetOrderResponse withData(Order data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOrderResponse other = (GetOrderResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(GetOrderResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private Order data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(Order data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetOrderResponse build() { - return new GetOrderResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetOrderTypeResponse.java b/src/main/java/com/apideck/unify/models/components/GetOrderTypeResponse.java deleted file mode 100644 index fd602c3..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetOrderTypeResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * GetOrderTypeResponse - OrderTypes - */ - -public class GetOrderTypeResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private OrderType data; - - @JsonCreator - public GetOrderTypeResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") OrderType data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public OrderType data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetOrderTypeResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetOrderTypeResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetOrderTypeResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetOrderTypeResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetOrderTypeResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetOrderTypeResponse withData(OrderType data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOrderTypeResponse other = (GetOrderTypeResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(GetOrderTypeResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private OrderType data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(OrderType data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetOrderTypeResponse build() { - return new GetOrderTypeResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetOrderTypesResponse.java b/src/main/java/com/apideck/unify/models/components/GetOrderTypesResponse.java deleted file mode 100644 index c319324..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetOrderTypesResponse.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - -/** - * GetOrderTypesResponse - OrderTypes - */ - -public class GetOrderTypesResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private List data; - - /** - * Response metadata - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("meta") - private Optional meta; - - /** - * Links to navigate to previous or next pages through the API - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("links") - private Optional links; - - @JsonCreator - public GetOrderTypesResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") List data, - @JsonProperty("meta") Optional meta, - @JsonProperty("links") Optional links) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(meta, "meta"); - Utils.checkNotNull(links, "links"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - this.meta = meta; - this.links = links; - } - - public GetOrderTypesResponse( - long statusCode, - String status, - String service, - String resource, - String operation, - List data) { - this(statusCode, status, service, resource, operation, data, Optional.empty(), Optional.empty()); - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public List data() { - return data; - } - - /** - * Response metadata - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional meta() { - return (Optional) meta; - } - - /** - * Links to navigate to previous or next pages through the API - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional links() { - return (Optional) links; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetOrderTypesResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetOrderTypesResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetOrderTypesResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetOrderTypesResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetOrderTypesResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetOrderTypesResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public GetOrderTypesResponse withMeta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public GetOrderTypesResponse withMeta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetOrderTypesResponse withLinks(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetOrderTypesResponse withLinks(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOrderTypesResponse other = (GetOrderTypesResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.meta, other.meta) && - Objects.deepEquals(this.links, other.links); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - - @Override - public String toString() { - return Utils.toString(GetOrderTypesResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data, - "meta", meta, - "links", links); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private List data; - - private Optional meta = Optional.empty(); - - private Optional links = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public Builder meta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public Builder meta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - public GetOrderTypesResponse build() { - return new GetOrderTypesResponse( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetOrdersResponse.java b/src/main/java/com/apideck/unify/models/components/GetOrdersResponse.java deleted file mode 100644 index 877bf7a..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetOrdersResponse.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - -/** - * GetOrdersResponse - Orders - */ - -public class GetOrdersResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private List data; - - /** - * Response metadata - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("meta") - private Optional meta; - - /** - * Links to navigate to previous or next pages through the API - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("links") - private Optional links; - - @JsonCreator - public GetOrdersResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") List data, - @JsonProperty("meta") Optional meta, - @JsonProperty("links") Optional links) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(meta, "meta"); - Utils.checkNotNull(links, "links"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - this.meta = meta; - this.links = links; - } - - public GetOrdersResponse( - long statusCode, - String status, - String service, - String resource, - String operation, - List data) { - this(statusCode, status, service, resource, operation, data, Optional.empty(), Optional.empty()); - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public List data() { - return data; - } - - /** - * Response metadata - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional meta() { - return (Optional) meta; - } - - /** - * Links to navigate to previous or next pages through the API - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional links() { - return (Optional) links; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetOrdersResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetOrdersResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetOrdersResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetOrdersResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetOrdersResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetOrdersResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public GetOrdersResponse withMeta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public GetOrdersResponse withMeta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetOrdersResponse withLinks(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetOrdersResponse withLinks(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOrdersResponse other = (GetOrdersResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.meta, other.meta) && - Objects.deepEquals(this.links, other.links); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - - @Override - public String toString() { - return Utils.toString(GetOrdersResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data, - "meta", meta, - "links", links); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private List data; - - private Optional meta = Optional.empty(); - - private Optional links = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public Builder meta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public Builder meta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - public GetOrdersResponse build() { - return new GetOrdersResponse( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetPosPaymentResponse.java b/src/main/java/com/apideck/unify/models/components/GetPosPaymentResponse.java deleted file mode 100644 index d58c655..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetPosPaymentResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * GetPosPaymentResponse - PosPayments - */ - -public class GetPosPaymentResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private PosPayment data; - - @JsonCreator - public GetPosPaymentResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") PosPayment data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public PosPayment data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetPosPaymentResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetPosPaymentResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetPosPaymentResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetPosPaymentResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetPosPaymentResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetPosPaymentResponse withData(PosPayment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPosPaymentResponse other = (GetPosPaymentResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(GetPosPaymentResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private PosPayment data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(PosPayment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetPosPaymentResponse build() { - return new GetPosPaymentResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetPosPaymentsResponse.java b/src/main/java/com/apideck/unify/models/components/GetPosPaymentsResponse.java deleted file mode 100644 index 495ec0c..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetPosPaymentsResponse.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - -/** - * GetPosPaymentsResponse - PosPayments - */ - -public class GetPosPaymentsResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private List data; - - /** - * Response metadata - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("meta") - private Optional meta; - - /** - * Links to navigate to previous or next pages through the API - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("links") - private Optional links; - - @JsonCreator - public GetPosPaymentsResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") List data, - @JsonProperty("meta") Optional meta, - @JsonProperty("links") Optional links) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(meta, "meta"); - Utils.checkNotNull(links, "links"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - this.meta = meta; - this.links = links; - } - - public GetPosPaymentsResponse( - long statusCode, - String status, - String service, - String resource, - String operation, - List data) { - this(statusCode, status, service, resource, operation, data, Optional.empty(), Optional.empty()); - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public List data() { - return data; - } - - /** - * Response metadata - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional meta() { - return (Optional) meta; - } - - /** - * Links to navigate to previous or next pages through the API - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional links() { - return (Optional) links; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetPosPaymentsResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetPosPaymentsResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetPosPaymentsResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetPosPaymentsResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetPosPaymentsResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetPosPaymentsResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public GetPosPaymentsResponse withMeta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public GetPosPaymentsResponse withMeta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetPosPaymentsResponse withLinks(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetPosPaymentsResponse withLinks(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPosPaymentsResponse other = (GetPosPaymentsResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.meta, other.meta) && - Objects.deepEquals(this.links, other.links); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - - @Override - public String toString() { - return Utils.toString(GetPosPaymentsResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data, - "meta", meta, - "links", links); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private List data; - - private Optional meta = Optional.empty(); - - private Optional links = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public Builder meta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public Builder meta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - public GetPosPaymentsResponse build() { - return new GetPosPaymentsResponse( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetTenderResponse.java b/src/main/java/com/apideck/unify/models/components/GetTenderResponse.java deleted file mode 100644 index 524cb74..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetTenderResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * GetTenderResponse - Tenders - */ - -public class GetTenderResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private Tender data; - - @JsonCreator - public GetTenderResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") Tender data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public Tender data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetTenderResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetTenderResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetTenderResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetTenderResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetTenderResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetTenderResponse withData(Tender data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTenderResponse other = (GetTenderResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(GetTenderResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private Tender data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(Tender data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetTenderResponse build() { - return new GetTenderResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/GetTendersResponse.java b/src/main/java/com/apideck/unify/models/components/GetTendersResponse.java deleted file mode 100644 index f21bb5c..0000000 --- a/src/main/java/com/apideck/unify/models/components/GetTendersResponse.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - -/** - * GetTendersResponse - Tenders - */ - -public class GetTendersResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private List data; - - /** - * Response metadata - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("meta") - private Optional meta; - - /** - * Links to navigate to previous or next pages through the API - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("links") - private Optional links; - - @JsonCreator - public GetTendersResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") List data, - @JsonProperty("meta") Optional meta, - @JsonProperty("links") Optional links) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(meta, "meta"); - Utils.checkNotNull(links, "links"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - this.meta = meta; - this.links = links; - } - - public GetTendersResponse( - long statusCode, - String status, - String service, - String resource, - String operation, - List data) { - this(statusCode, status, service, resource, operation, data, Optional.empty(), Optional.empty()); - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public List data() { - return data; - } - - /** - * Response metadata - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional meta() { - return (Optional) meta; - } - - /** - * Links to navigate to previous or next pages through the API - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional links() { - return (Optional) links; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public GetTendersResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public GetTendersResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public GetTendersResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public GetTendersResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public GetTendersResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public GetTendersResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public GetTendersResponse withMeta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public GetTendersResponse withMeta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetTendersResponse withLinks(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public GetTendersResponse withLinks(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTendersResponse other = (GetTendersResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.meta, other.meta) && - Objects.deepEquals(this.links, other.links); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - - @Override - public String toString() { - return Utils.toString(GetTendersResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data, - "meta", meta, - "links", links); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private List data; - - private Optional meta = Optional.empty(); - - private Optional links = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - /** - * Response metadata - */ - public Builder meta(Meta meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = Optional.ofNullable(meta); - return this; - } - - /** - * Response metadata - */ - public Builder meta(Optional meta) { - Utils.checkNotNull(meta, "meta"); - this.meta = meta; - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Links links) { - Utils.checkNotNull(links, "links"); - this.links = Optional.ofNullable(links); - return this; - } - - /** - * Links to navigate to previous or next pages through the API - */ - public Builder links(Optional links) { - Utils.checkNotNull(links, "links"); - this.links = links; - return this; - } - - public GetTendersResponse build() { - return new GetTendersResponse( - statusCode, - status, - service, - resource, - operation, - data, - meta, - links); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.java b/src/main/java/com/apideck/unify/models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.java deleted file mode 100644 index 3212be5..0000000 --- a/src/main/java/com/apideck/unify/models/components/IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers { - SINGLE("single"), - MULTIPLE("multiple"); - - @JsonValue - private final String value; - - private IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/Item.java b/src/main/java/com/apideck/unify/models/components/Item.java deleted file mode 100644 index c707d6b..0000000 --- a/src/main/java/com/apideck/unify/models/components/Item.java +++ /dev/null @@ -1,1746 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Item { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("idempotency_key") - private Optional idempotencyKey; - - @JsonProperty("name") - private String name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("description") - private Optional description; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("abbreviation") - private Optional abbreviation; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("product_type") - private Optional productType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("price_amount") - private Optional priceAmount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pricing_type") - private Optional pricingType; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("price_currency") - private JsonNullable priceCurrency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cost") - private Optional cost; - - /** - * A list of Tax IDs for the product. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tax_ids") - private Optional> taxIds; - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("is_revenue") - private Optional isRevenue; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("use_default_tax_rates") - private Optional useDefaultTaxRates; - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("absent_at_location_ids") - private Optional> absentAtLocationIds; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("present_at_all_locations") - private Optional presentAtAllLocations; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("available_for_pickup") - private Optional availableForPickup; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("available_online") - private Optional availableOnline; - - /** - * SKU of the item - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sku") - private Optional sku; - - /** - * Product code, e.g. UPC or EAN - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("categories") - private Optional> categories; - - /** - * List of options pertaining to this item's attribute variation - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("options") - private Optional> options; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("variations") - private Optional> variations; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("modifier_groups") - private Optional> modifierGroups; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("available") - private JsonNullable available; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hidden") - private JsonNullable hidden; - - /** - * The user who last updated the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private JsonNullable version; - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("custom_mappings") - private JsonNullable customMappings; - - /** - * Flag to indicate if the object is deleted. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * The user who last updated the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_by") - private JsonNullable updatedBy; - - /** - * The user who created the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_by") - private JsonNullable createdBy; - - /** - * The date and time when the object was last updated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_at") - private JsonNullable updatedAt; - - /** - * The date and time when the object was created. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_at") - private JsonNullable createdAt; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public Item( - @JsonProperty("id") Optional id, - @JsonProperty("idempotency_key") Optional idempotencyKey, - @JsonProperty("name") String name, - @JsonProperty("description") Optional description, - @JsonProperty("abbreviation") Optional abbreviation, - @JsonProperty("product_type") Optional productType, - @JsonProperty("price_amount") Optional priceAmount, - @JsonProperty("pricing_type") Optional pricingType, - @JsonProperty("price_currency") JsonNullable priceCurrency, - @JsonProperty("cost") Optional cost, - @JsonProperty("tax_ids") Optional> taxIds, - @JsonProperty("is_revenue") Optional isRevenue, - @JsonProperty("use_default_tax_rates") Optional useDefaultTaxRates, - @JsonProperty("absent_at_location_ids") Optional> absentAtLocationIds, - @JsonProperty("present_at_all_locations") Optional presentAtAllLocations, - @JsonProperty("available_for_pickup") Optional availableForPickup, - @JsonProperty("available_online") Optional availableOnline, - @JsonProperty("sku") Optional sku, - @JsonProperty("code") Optional code, - @JsonProperty("categories") Optional> categories, - @JsonProperty("options") Optional> options, - @JsonProperty("variations") Optional> variations, - @JsonProperty("modifier_groups") Optional> modifierGroups, - @JsonProperty("available") JsonNullable available, - @JsonProperty("hidden") JsonNullable hidden, - @JsonProperty("version") JsonNullable version, - @JsonProperty("custom_mappings") JsonNullable customMappings, - @JsonProperty("deleted") JsonNullable deleted, - @JsonProperty("updated_by") JsonNullable updatedBy, - @JsonProperty("created_by") JsonNullable createdBy, - @JsonProperty("updated_at") JsonNullable updatedAt, - @JsonProperty("created_at") JsonNullable createdAt, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(description, "description"); - Utils.checkNotNull(abbreviation, "abbreviation"); - Utils.checkNotNull(productType, "productType"); - Utils.checkNotNull(priceAmount, "priceAmount"); - Utils.checkNotNull(pricingType, "pricingType"); - Utils.checkNotNull(priceCurrency, "priceCurrency"); - Utils.checkNotNull(cost, "cost"); - Utils.checkNotNull(taxIds, "taxIds"); - Utils.checkNotNull(isRevenue, "isRevenue"); - Utils.checkNotNull(useDefaultTaxRates, "useDefaultTaxRates"); - Utils.checkNotNull(absentAtLocationIds, "absentAtLocationIds"); - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - Utils.checkNotNull(availableForPickup, "availableForPickup"); - Utils.checkNotNull(availableOnline, "availableOnline"); - Utils.checkNotNull(sku, "sku"); - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(categories, "categories"); - Utils.checkNotNull(options, "options"); - Utils.checkNotNull(variations, "variations"); - Utils.checkNotNull(modifierGroups, "modifierGroups"); - Utils.checkNotNull(available, "available"); - Utils.checkNotNull(hidden, "hidden"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(customMappings, "customMappings"); - Utils.checkNotNull(deleted, "deleted"); - Utils.checkNotNull(updatedBy, "updatedBy"); - Utils.checkNotNull(createdBy, "createdBy"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(passThrough, "passThrough"); - this.id = id; - this.idempotencyKey = idempotencyKey; - this.name = name; - this.description = description; - this.abbreviation = abbreviation; - this.productType = productType; - this.priceAmount = priceAmount; - this.pricingType = pricingType; - this.priceCurrency = priceCurrency; - this.cost = cost; - this.taxIds = taxIds; - this.isRevenue = isRevenue; - this.useDefaultTaxRates = useDefaultTaxRates; - this.absentAtLocationIds = absentAtLocationIds; - this.presentAtAllLocations = presentAtAllLocations; - this.availableForPickup = availableForPickup; - this.availableOnline = availableOnline; - this.sku = sku; - this.code = code; - this.categories = categories; - this.options = options; - this.variations = variations; - this.modifierGroups = modifierGroups; - this.available = available; - this.hidden = hidden; - this.version = version; - this.customMappings = customMappings; - this.deleted = deleted; - this.updatedBy = updatedBy; - this.createdBy = createdBy; - this.updatedAt = updatedAt; - this.createdAt = createdAt; - this.passThrough = passThrough; - } - - public Item( - String name) { - this(Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - @JsonIgnore - public Optional id() { - return id; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonIgnore - public Optional idempotencyKey() { - return idempotencyKey; - } - - @JsonIgnore - public String name() { - return name; - } - - @JsonIgnore - public Optional description() { - return description; - } - - @JsonIgnore - public Optional abbreviation() { - return abbreviation; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional productType() { - return (Optional) productType; - } - - @JsonIgnore - public Optional priceAmount() { - return priceAmount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional pricingType() { - return (Optional) pricingType; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable priceCurrency() { - return (JsonNullable) priceCurrency; - } - - @JsonIgnore - public Optional cost() { - return cost; - } - - /** - * A list of Tax IDs for the product. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> taxIds() { - return (Optional>) taxIds; - } - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - @JsonIgnore - public Optional isRevenue() { - return isRevenue; - } - - @JsonIgnore - public Optional useDefaultTaxRates() { - return useDefaultTaxRates; - } - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> absentAtLocationIds() { - return (Optional>) absentAtLocationIds; - } - - @JsonIgnore - public Optional presentAtAllLocations() { - return presentAtAllLocations; - } - - @JsonIgnore - public Optional availableForPickup() { - return availableForPickup; - } - - @JsonIgnore - public Optional availableOnline() { - return availableOnline; - } - - /** - * SKU of the item - */ - @JsonIgnore - public Optional sku() { - return sku; - } - - /** - * Product code, e.g. UPC or EAN - */ - @JsonIgnore - public Optional code() { - return code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> categories() { - return (Optional>) categories; - } - - /** - * List of options pertaining to this item's attribute variation - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> options() { - return (Optional>) options; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> variations() { - return (Optional>) variations; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> modifierGroups() { - return (Optional>) modifierGroups; - } - - @JsonIgnore - public JsonNullable available() { - return available; - } - - @JsonIgnore - public JsonNullable hidden() { - return hidden; - } - - /** - * The user who last updated the object. - */ - @JsonIgnore - public JsonNullable version() { - return version; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable customMappings() { - return (JsonNullable) customMappings; - } - - /** - * Flag to indicate if the object is deleted. - */ - @JsonIgnore - public JsonNullable deleted() { - return deleted; - } - - /** - * The user who last updated the object. - */ - @JsonIgnore - public JsonNullable updatedBy() { - return updatedBy; - } - - /** - * The user who created the object. - */ - @JsonIgnore - public JsonNullable createdBy() { - return createdBy; - } - - /** - * The date and time when the object was last updated. - */ - @JsonIgnore - public JsonNullable updatedAt() { - return updatedAt; - } - - /** - * The date and time when the object was created. - */ - @JsonIgnore - public JsonNullable createdAt() { - return createdAt; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - public Item withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Item withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Item withIdempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Item withIdempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public Item withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Item withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - public Item withDescription(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public Item withAbbreviation(String abbreviation) { - Utils.checkNotNull(abbreviation, "abbreviation"); - this.abbreviation = Optional.ofNullable(abbreviation); - return this; - } - - public Item withAbbreviation(Optional abbreviation) { - Utils.checkNotNull(abbreviation, "abbreviation"); - this.abbreviation = abbreviation; - return this; - } - - public Item withProductType(ProductType productType) { - Utils.checkNotNull(productType, "productType"); - this.productType = Optional.ofNullable(productType); - return this; - } - - public Item withProductType(Optional productType) { - Utils.checkNotNull(productType, "productType"); - this.productType = productType; - return this; - } - - public Item withPriceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public Item withPriceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - public Item withPricingType(PricingType pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = Optional.ofNullable(pricingType); - return this; - } - - public Item withPricingType(Optional pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = pricingType; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Item withPriceCurrency(Currency priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = JsonNullable.of(priceCurrency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Item withPriceCurrency(JsonNullable priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = priceCurrency; - return this; - } - - public Item withCost(double cost) { - Utils.checkNotNull(cost, "cost"); - this.cost = Optional.ofNullable(cost); - return this; - } - - public Item withCost(Optional cost) { - Utils.checkNotNull(cost, "cost"); - this.cost = cost; - return this; - } - - /** - * A list of Tax IDs for the product. - */ - public Item withTaxIds(List taxIds) { - Utils.checkNotNull(taxIds, "taxIds"); - this.taxIds = Optional.ofNullable(taxIds); - return this; - } - - /** - * A list of Tax IDs for the product. - */ - public Item withTaxIds(Optional> taxIds) { - Utils.checkNotNull(taxIds, "taxIds"); - this.taxIds = taxIds; - return this; - } - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - public Item withIsRevenue(boolean isRevenue) { - Utils.checkNotNull(isRevenue, "isRevenue"); - this.isRevenue = Optional.ofNullable(isRevenue); - return this; - } - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - public Item withIsRevenue(Optional isRevenue) { - Utils.checkNotNull(isRevenue, "isRevenue"); - this.isRevenue = isRevenue; - return this; - } - - public Item withUseDefaultTaxRates(boolean useDefaultTaxRates) { - Utils.checkNotNull(useDefaultTaxRates, "useDefaultTaxRates"); - this.useDefaultTaxRates = Optional.ofNullable(useDefaultTaxRates); - return this; - } - - public Item withUseDefaultTaxRates(Optional useDefaultTaxRates) { - Utils.checkNotNull(useDefaultTaxRates, "useDefaultTaxRates"); - this.useDefaultTaxRates = useDefaultTaxRates; - return this; - } - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - public Item withAbsentAtLocationIds(List absentAtLocationIds) { - Utils.checkNotNull(absentAtLocationIds, "absentAtLocationIds"); - this.absentAtLocationIds = Optional.ofNullable(absentAtLocationIds); - return this; - } - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - public Item withAbsentAtLocationIds(Optional> absentAtLocationIds) { - Utils.checkNotNull(absentAtLocationIds, "absentAtLocationIds"); - this.absentAtLocationIds = absentAtLocationIds; - return this; - } - - public Item withPresentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public Item withPresentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - public Item withAvailableForPickup(boolean availableForPickup) { - Utils.checkNotNull(availableForPickup, "availableForPickup"); - this.availableForPickup = Optional.ofNullable(availableForPickup); - return this; - } - - public Item withAvailableForPickup(Optional availableForPickup) { - Utils.checkNotNull(availableForPickup, "availableForPickup"); - this.availableForPickup = availableForPickup; - return this; - } - - public Item withAvailableOnline(boolean availableOnline) { - Utils.checkNotNull(availableOnline, "availableOnline"); - this.availableOnline = Optional.ofNullable(availableOnline); - return this; - } - - public Item withAvailableOnline(Optional availableOnline) { - Utils.checkNotNull(availableOnline, "availableOnline"); - this.availableOnline = availableOnline; - return this; - } - - /** - * SKU of the item - */ - public Item withSku(String sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = Optional.ofNullable(sku); - return this; - } - - /** - * SKU of the item - */ - public Item withSku(Optional sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = sku; - return this; - } - - /** - * Product code, e.g. UPC or EAN - */ - public Item withCode(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - /** - * Product code, e.g. UPC or EAN - */ - public Item withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Item withCategories(List categories) { - Utils.checkNotNull(categories, "categories"); - this.categories = Optional.ofNullable(categories); - return this; - } - - public Item withCategories(Optional> categories) { - Utils.checkNotNull(categories, "categories"); - this.categories = categories; - return this; - } - - /** - * List of options pertaining to this item's attribute variation - */ - public Item withOptions(List options) { - Utils.checkNotNull(options, "options"); - this.options = Optional.ofNullable(options); - return this; - } - - /** - * List of options pertaining to this item's attribute variation - */ - public Item withOptions(Optional> options) { - Utils.checkNotNull(options, "options"); - this.options = options; - return this; - } - - public Item withVariations(List variations) { - Utils.checkNotNull(variations, "variations"); - this.variations = Optional.ofNullable(variations); - return this; - } - - public Item withVariations(Optional> variations) { - Utils.checkNotNull(variations, "variations"); - this.variations = variations; - return this; - } - - public Item withModifierGroups(List modifierGroups) { - Utils.checkNotNull(modifierGroups, "modifierGroups"); - this.modifierGroups = Optional.ofNullable(modifierGroups); - return this; - } - - public Item withModifierGroups(Optional> modifierGroups) { - Utils.checkNotNull(modifierGroups, "modifierGroups"); - this.modifierGroups = modifierGroups; - return this; - } - - public Item withAvailable(boolean available) { - Utils.checkNotNull(available, "available"); - this.available = JsonNullable.of(available); - return this; - } - - public Item withAvailable(JsonNullable available) { - Utils.checkNotNull(available, "available"); - this.available = available; - return this; - } - - public Item withHidden(boolean hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = JsonNullable.of(hidden); - return this; - } - - public Item withHidden(JsonNullable hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - /** - * The user who last updated the object. - */ - public Item withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - /** - * The user who last updated the object. - */ - public Item withVersion(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Item withCustomMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Item withCustomMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public Item withDeleted(boolean deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = JsonNullable.of(deleted); - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public Item withDeleted(JsonNullable deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = deleted; - return this; - } - - /** - * The user who last updated the object. - */ - public Item withUpdatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Item withUpdatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Item withCreatedBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Item withCreatedBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Item withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Item withUpdatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Item withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Item withCreatedAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Item withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Item withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Item other = (Item) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.idempotencyKey, other.idempotencyKey) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.description, other.description) && - Objects.deepEquals(this.abbreviation, other.abbreviation) && - Objects.deepEquals(this.productType, other.productType) && - Objects.deepEquals(this.priceAmount, other.priceAmount) && - Objects.deepEquals(this.pricingType, other.pricingType) && - Objects.deepEquals(this.priceCurrency, other.priceCurrency) && - Objects.deepEquals(this.cost, other.cost) && - Objects.deepEquals(this.taxIds, other.taxIds) && - Objects.deepEquals(this.isRevenue, other.isRevenue) && - Objects.deepEquals(this.useDefaultTaxRates, other.useDefaultTaxRates) && - Objects.deepEquals(this.absentAtLocationIds, other.absentAtLocationIds) && - Objects.deepEquals(this.presentAtAllLocations, other.presentAtAllLocations) && - Objects.deepEquals(this.availableForPickup, other.availableForPickup) && - Objects.deepEquals(this.availableOnline, other.availableOnline) && - Objects.deepEquals(this.sku, other.sku) && - Objects.deepEquals(this.code, other.code) && - Objects.deepEquals(this.categories, other.categories) && - Objects.deepEquals(this.options, other.options) && - Objects.deepEquals(this.variations, other.variations) && - Objects.deepEquals(this.modifierGroups, other.modifierGroups) && - Objects.deepEquals(this.available, other.available) && - Objects.deepEquals(this.hidden, other.hidden) && - Objects.deepEquals(this.version, other.version) && - Objects.deepEquals(this.customMappings, other.customMappings) && - Objects.deepEquals(this.deleted, other.deleted) && - Objects.deepEquals(this.updatedBy, other.updatedBy) && - Objects.deepEquals(this.createdBy, other.createdBy) && - Objects.deepEquals(this.updatedAt, other.updatedAt) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - idempotencyKey, - name, - description, - abbreviation, - productType, - priceAmount, - pricingType, - priceCurrency, - cost, - taxIds, - isRevenue, - useDefaultTaxRates, - absentAtLocationIds, - presentAtAllLocations, - availableForPickup, - availableOnline, - sku, - code, - categories, - options, - variations, - modifierGroups, - available, - hidden, - version, - customMappings, - deleted, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(Item.class, - "id", id, - "idempotencyKey", idempotencyKey, - "name", name, - "description", description, - "abbreviation", abbreviation, - "productType", productType, - "priceAmount", priceAmount, - "pricingType", pricingType, - "priceCurrency", priceCurrency, - "cost", cost, - "taxIds", taxIds, - "isRevenue", isRevenue, - "useDefaultTaxRates", useDefaultTaxRates, - "absentAtLocationIds", absentAtLocationIds, - "presentAtAllLocations", presentAtAllLocations, - "availableForPickup", availableForPickup, - "availableOnline", availableOnline, - "sku", sku, - "code", code, - "categories", categories, - "options", options, - "variations", variations, - "modifierGroups", modifierGroups, - "available", available, - "hidden", hidden, - "version", version, - "customMappings", customMappings, - "deleted", deleted, - "updatedBy", updatedBy, - "createdBy", createdBy, - "updatedAt", updatedAt, - "createdAt", createdAt, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional idempotencyKey = Optional.empty(); - - private String name; - - private Optional description = Optional.empty(); - - private Optional abbreviation = Optional.empty(); - - private Optional productType = Optional.empty(); - - private Optional priceAmount = Optional.empty(); - - private Optional pricingType = Optional.empty(); - - private JsonNullable priceCurrency = JsonNullable.undefined(); - - private Optional cost = Optional.empty(); - - private Optional> taxIds = Optional.empty(); - - private Optional isRevenue = Optional.empty(); - - private Optional useDefaultTaxRates = Optional.empty(); - - private Optional> absentAtLocationIds = Optional.empty(); - - private Optional presentAtAllLocations = Optional.empty(); - - private Optional availableForPickup = Optional.empty(); - - private Optional availableOnline = Optional.empty(); - - private Optional sku = Optional.empty(); - - private Optional code = Optional.empty(); - - private Optional> categories = Optional.empty(); - - private Optional> options = Optional.empty(); - - private Optional> variations = Optional.empty(); - - private Optional> modifierGroups = Optional.empty(); - - private JsonNullable available = JsonNullable.undefined(); - - private JsonNullable hidden = JsonNullable.undefined(); - - private JsonNullable version = JsonNullable.undefined(); - - private JsonNullable customMappings = JsonNullable.undefined(); - - private JsonNullable deleted = JsonNullable.undefined(); - - private JsonNullable updatedBy = JsonNullable.undefined(); - - private JsonNullable createdBy = JsonNullable.undefined(); - - private JsonNullable updatedAt = JsonNullable.undefined(); - - private JsonNullable createdAt = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - public Builder description(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public Builder abbreviation(String abbreviation) { - Utils.checkNotNull(abbreviation, "abbreviation"); - this.abbreviation = Optional.ofNullable(abbreviation); - return this; - } - - public Builder abbreviation(Optional abbreviation) { - Utils.checkNotNull(abbreviation, "abbreviation"); - this.abbreviation = abbreviation; - return this; - } - - public Builder productType(ProductType productType) { - Utils.checkNotNull(productType, "productType"); - this.productType = Optional.ofNullable(productType); - return this; - } - - public Builder productType(Optional productType) { - Utils.checkNotNull(productType, "productType"); - this.productType = productType; - return this; - } - - public Builder priceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public Builder priceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - public Builder pricingType(PricingType pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = Optional.ofNullable(pricingType); - return this; - } - - public Builder pricingType(Optional pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = pricingType; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder priceCurrency(Currency priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = JsonNullable.of(priceCurrency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder priceCurrency(JsonNullable priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = priceCurrency; - return this; - } - - public Builder cost(double cost) { - Utils.checkNotNull(cost, "cost"); - this.cost = Optional.ofNullable(cost); - return this; - } - - public Builder cost(Optional cost) { - Utils.checkNotNull(cost, "cost"); - this.cost = cost; - return this; - } - - /** - * A list of Tax IDs for the product. - */ - public Builder taxIds(List taxIds) { - Utils.checkNotNull(taxIds, "taxIds"); - this.taxIds = Optional.ofNullable(taxIds); - return this; - } - - /** - * A list of Tax IDs for the product. - */ - public Builder taxIds(Optional> taxIds) { - Utils.checkNotNull(taxIds, "taxIds"); - this.taxIds = taxIds; - return this; - } - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - public Builder isRevenue(boolean isRevenue) { - Utils.checkNotNull(isRevenue, "isRevenue"); - this.isRevenue = Optional.ofNullable(isRevenue); - return this; - } - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - public Builder isRevenue(Optional isRevenue) { - Utils.checkNotNull(isRevenue, "isRevenue"); - this.isRevenue = isRevenue; - return this; - } - - public Builder useDefaultTaxRates(boolean useDefaultTaxRates) { - Utils.checkNotNull(useDefaultTaxRates, "useDefaultTaxRates"); - this.useDefaultTaxRates = Optional.ofNullable(useDefaultTaxRates); - return this; - } - - public Builder useDefaultTaxRates(Optional useDefaultTaxRates) { - Utils.checkNotNull(useDefaultTaxRates, "useDefaultTaxRates"); - this.useDefaultTaxRates = useDefaultTaxRates; - return this; - } - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - public Builder absentAtLocationIds(List absentAtLocationIds) { - Utils.checkNotNull(absentAtLocationIds, "absentAtLocationIds"); - this.absentAtLocationIds = Optional.ofNullable(absentAtLocationIds); - return this; - } - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - public Builder absentAtLocationIds(Optional> absentAtLocationIds) { - Utils.checkNotNull(absentAtLocationIds, "absentAtLocationIds"); - this.absentAtLocationIds = absentAtLocationIds; - return this; - } - - public Builder presentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public Builder presentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - public Builder availableForPickup(boolean availableForPickup) { - Utils.checkNotNull(availableForPickup, "availableForPickup"); - this.availableForPickup = Optional.ofNullable(availableForPickup); - return this; - } - - public Builder availableForPickup(Optional availableForPickup) { - Utils.checkNotNull(availableForPickup, "availableForPickup"); - this.availableForPickup = availableForPickup; - return this; - } - - public Builder availableOnline(boolean availableOnline) { - Utils.checkNotNull(availableOnline, "availableOnline"); - this.availableOnline = Optional.ofNullable(availableOnline); - return this; - } - - public Builder availableOnline(Optional availableOnline) { - Utils.checkNotNull(availableOnline, "availableOnline"); - this.availableOnline = availableOnline; - return this; - } - - /** - * SKU of the item - */ - public Builder sku(String sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = Optional.ofNullable(sku); - return this; - } - - /** - * SKU of the item - */ - public Builder sku(Optional sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = sku; - return this; - } - - /** - * Product code, e.g. UPC or EAN - */ - public Builder code(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - /** - * Product code, e.g. UPC or EAN - */ - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder categories(List categories) { - Utils.checkNotNull(categories, "categories"); - this.categories = Optional.ofNullable(categories); - return this; - } - - public Builder categories(Optional> categories) { - Utils.checkNotNull(categories, "categories"); - this.categories = categories; - return this; - } - - /** - * List of options pertaining to this item's attribute variation - */ - public Builder options(List options) { - Utils.checkNotNull(options, "options"); - this.options = Optional.ofNullable(options); - return this; - } - - /** - * List of options pertaining to this item's attribute variation - */ - public Builder options(Optional> options) { - Utils.checkNotNull(options, "options"); - this.options = options; - return this; - } - - public Builder variations(List variations) { - Utils.checkNotNull(variations, "variations"); - this.variations = Optional.ofNullable(variations); - return this; - } - - public Builder variations(Optional> variations) { - Utils.checkNotNull(variations, "variations"); - this.variations = variations; - return this; - } - - public Builder modifierGroups(List modifierGroups) { - Utils.checkNotNull(modifierGroups, "modifierGroups"); - this.modifierGroups = Optional.ofNullable(modifierGroups); - return this; - } - - public Builder modifierGroups(Optional> modifierGroups) { - Utils.checkNotNull(modifierGroups, "modifierGroups"); - this.modifierGroups = modifierGroups; - return this; - } - - public Builder available(boolean available) { - Utils.checkNotNull(available, "available"); - this.available = JsonNullable.of(available); - return this; - } - - public Builder available(JsonNullable available) { - Utils.checkNotNull(available, "available"); - this.available = available; - return this; - } - - public Builder hidden(boolean hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = JsonNullable.of(hidden); - return this; - } - - public Builder hidden(JsonNullable hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - /** - * The user who last updated the object. - */ - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - /** - * The user who last updated the object. - */ - public Builder version(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public Builder deleted(boolean deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = JsonNullable.of(deleted); - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public Builder deleted(JsonNullable deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = deleted; - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public Item build() { - return new Item( - id, - idempotencyKey, - name, - description, - abbreviation, - productType, - priceAmount, - pricingType, - priceCurrency, - cost, - taxIds, - isRevenue, - useDefaultTaxRates, - absentAtLocationIds, - presentAtAllLocations, - availableForPickup, - availableOnline, - sku, - code, - categories, - options, - variations, - modifierGroups, - available, - hidden, - version, - customMappings, - deleted, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ItemCategories.java b/src/main/java/com/apideck/unify/models/components/ItemCategories.java deleted file mode 100644 index 5293f27..0000000 --- a/src/main/java/com/apideck/unify/models/components/ItemCategories.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - - -public class ItemCategories { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("image_ids") - private Optional> imageIds; - - @JsonCreator - public ItemCategories( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("image_ids") Optional> imageIds) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(imageIds, "imageIds"); - this.id = id; - this.name = name; - this.imageIds = imageIds; - } - - public ItemCategories() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> imageIds() { - return (Optional>) imageIds; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public ItemCategories withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public ItemCategories withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public ItemCategories withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public ItemCategories withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public ItemCategories withImageIds(List imageIds) { - Utils.checkNotNull(imageIds, "imageIds"); - this.imageIds = Optional.ofNullable(imageIds); - return this; - } - - public ItemCategories withImageIds(Optional> imageIds) { - Utils.checkNotNull(imageIds, "imageIds"); - this.imageIds = imageIds; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ItemCategories other = (ItemCategories) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.imageIds, other.imageIds); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - imageIds); - } - - @Override - public String toString() { - return Utils.toString(ItemCategories.class, - "id", id, - "name", name, - "imageIds", imageIds); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional> imageIds = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder imageIds(List imageIds) { - Utils.checkNotNull(imageIds, "imageIds"); - this.imageIds = Optional.ofNullable(imageIds); - return this; - } - - public Builder imageIds(Optional> imageIds) { - Utils.checkNotNull(imageIds, "imageIds"); - this.imageIds = imageIds; - return this; - } - - public ItemCategories build() { - return new ItemCategories( - id, - name, - imageIds); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ItemCategoriesInput.java b/src/main/java/com/apideck/unify/models/components/ItemCategoriesInput.java deleted file mode 100644 index 11c8886..0000000 --- a/src/main/java/com/apideck/unify/models/components/ItemCategoriesInput.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - - -public class ItemCategoriesInput { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("image_ids") - private Optional> imageIds; - - @JsonCreator - public ItemCategoriesInput( - @JsonProperty("name") Optional name, - @JsonProperty("image_ids") Optional> imageIds) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(imageIds, "imageIds"); - this.name = name; - this.imageIds = imageIds; - } - - public ItemCategoriesInput() { - this(Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> imageIds() { - return (Optional>) imageIds; - } - - public final static Builder builder() { - return new Builder(); - } - - public ItemCategoriesInput withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public ItemCategoriesInput withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public ItemCategoriesInput withImageIds(List imageIds) { - Utils.checkNotNull(imageIds, "imageIds"); - this.imageIds = Optional.ofNullable(imageIds); - return this; - } - - public ItemCategoriesInput withImageIds(Optional> imageIds) { - Utils.checkNotNull(imageIds, "imageIds"); - this.imageIds = imageIds; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ItemCategoriesInput other = (ItemCategoriesInput) o; - return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.imageIds, other.imageIds); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - imageIds); - } - - @Override - public String toString() { - return Utils.toString(ItemCategoriesInput.class, - "name", name, - "imageIds", imageIds); - } - - public final static class Builder { - - private Optional name = Optional.empty(); - - private Optional> imageIds = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder imageIds(List imageIds) { - Utils.checkNotNull(imageIds, "imageIds"); - this.imageIds = Optional.ofNullable(imageIds); - return this; - } - - public Builder imageIds(Optional> imageIds) { - Utils.checkNotNull(imageIds, "imageIds"); - this.imageIds = imageIds; - return this; - } - - public ItemCategoriesInput build() { - return new ItemCategoriesInput( - name, - imageIds); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ItemInput.java b/src/main/java/com/apideck/unify/models/components/ItemInput.java deleted file mode 100644 index faf5245..0000000 --- a/src/main/java/com/apideck/unify/models/components/ItemInput.java +++ /dev/null @@ -1,1384 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class ItemInput { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("idempotency_key") - private Optional idempotencyKey; - - @JsonProperty("name") - private String name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("description") - private Optional description; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("abbreviation") - private Optional abbreviation; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("product_type") - private Optional productType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("price_amount") - private Optional priceAmount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pricing_type") - private Optional pricingType; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("price_currency") - private JsonNullable priceCurrency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cost") - private Optional cost; - - /** - * A list of Tax IDs for the product. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tax_ids") - private Optional> taxIds; - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("is_revenue") - private Optional isRevenue; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("use_default_tax_rates") - private Optional useDefaultTaxRates; - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("absent_at_location_ids") - private Optional> absentAtLocationIds; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("present_at_all_locations") - private Optional presentAtAllLocations; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("available_for_pickup") - private Optional availableForPickup; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("available_online") - private Optional availableOnline; - - /** - * SKU of the item - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sku") - private Optional sku; - - /** - * Product code, e.g. UPC or EAN - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("categories") - private Optional> categories; - - /** - * List of options pertaining to this item's attribute variation - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("options") - private Optional> options; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("variations") - private Optional> variations; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("modifier_groups") - private Optional> modifierGroups; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("available") - private JsonNullable available; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hidden") - private JsonNullable hidden; - - /** - * Flag to indicate if the object is deleted. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public ItemInput( - @JsonProperty("id") Optional id, - @JsonProperty("idempotency_key") Optional idempotencyKey, - @JsonProperty("name") String name, - @JsonProperty("description") Optional description, - @JsonProperty("abbreviation") Optional abbreviation, - @JsonProperty("product_type") Optional productType, - @JsonProperty("price_amount") Optional priceAmount, - @JsonProperty("pricing_type") Optional pricingType, - @JsonProperty("price_currency") JsonNullable priceCurrency, - @JsonProperty("cost") Optional cost, - @JsonProperty("tax_ids") Optional> taxIds, - @JsonProperty("is_revenue") Optional isRevenue, - @JsonProperty("use_default_tax_rates") Optional useDefaultTaxRates, - @JsonProperty("absent_at_location_ids") Optional> absentAtLocationIds, - @JsonProperty("present_at_all_locations") Optional presentAtAllLocations, - @JsonProperty("available_for_pickup") Optional availableForPickup, - @JsonProperty("available_online") Optional availableOnline, - @JsonProperty("sku") Optional sku, - @JsonProperty("code") Optional code, - @JsonProperty("categories") Optional> categories, - @JsonProperty("options") Optional> options, - @JsonProperty("variations") Optional> variations, - @JsonProperty("modifier_groups") Optional> modifierGroups, - @JsonProperty("available") JsonNullable available, - @JsonProperty("hidden") JsonNullable hidden, - @JsonProperty("deleted") JsonNullable deleted, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(description, "description"); - Utils.checkNotNull(abbreviation, "abbreviation"); - Utils.checkNotNull(productType, "productType"); - Utils.checkNotNull(priceAmount, "priceAmount"); - Utils.checkNotNull(pricingType, "pricingType"); - Utils.checkNotNull(priceCurrency, "priceCurrency"); - Utils.checkNotNull(cost, "cost"); - Utils.checkNotNull(taxIds, "taxIds"); - Utils.checkNotNull(isRevenue, "isRevenue"); - Utils.checkNotNull(useDefaultTaxRates, "useDefaultTaxRates"); - Utils.checkNotNull(absentAtLocationIds, "absentAtLocationIds"); - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - Utils.checkNotNull(availableForPickup, "availableForPickup"); - Utils.checkNotNull(availableOnline, "availableOnline"); - Utils.checkNotNull(sku, "sku"); - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(categories, "categories"); - Utils.checkNotNull(options, "options"); - Utils.checkNotNull(variations, "variations"); - Utils.checkNotNull(modifierGroups, "modifierGroups"); - Utils.checkNotNull(available, "available"); - Utils.checkNotNull(hidden, "hidden"); - Utils.checkNotNull(deleted, "deleted"); - Utils.checkNotNull(passThrough, "passThrough"); - this.id = id; - this.idempotencyKey = idempotencyKey; - this.name = name; - this.description = description; - this.abbreviation = abbreviation; - this.productType = productType; - this.priceAmount = priceAmount; - this.pricingType = pricingType; - this.priceCurrency = priceCurrency; - this.cost = cost; - this.taxIds = taxIds; - this.isRevenue = isRevenue; - this.useDefaultTaxRates = useDefaultTaxRates; - this.absentAtLocationIds = absentAtLocationIds; - this.presentAtAllLocations = presentAtAllLocations; - this.availableForPickup = availableForPickup; - this.availableOnline = availableOnline; - this.sku = sku; - this.code = code; - this.categories = categories; - this.options = options; - this.variations = variations; - this.modifierGroups = modifierGroups; - this.available = available; - this.hidden = hidden; - this.deleted = deleted; - this.passThrough = passThrough; - } - - public ItemInput( - String name) { - this(Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - @JsonIgnore - public Optional id() { - return id; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonIgnore - public Optional idempotencyKey() { - return idempotencyKey; - } - - @JsonIgnore - public String name() { - return name; - } - - @JsonIgnore - public Optional description() { - return description; - } - - @JsonIgnore - public Optional abbreviation() { - return abbreviation; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional productType() { - return (Optional) productType; - } - - @JsonIgnore - public Optional priceAmount() { - return priceAmount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional pricingType() { - return (Optional) pricingType; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable priceCurrency() { - return (JsonNullable) priceCurrency; - } - - @JsonIgnore - public Optional cost() { - return cost; - } - - /** - * A list of Tax IDs for the product. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> taxIds() { - return (Optional>) taxIds; - } - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - @JsonIgnore - public Optional isRevenue() { - return isRevenue; - } - - @JsonIgnore - public Optional useDefaultTaxRates() { - return useDefaultTaxRates; - } - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> absentAtLocationIds() { - return (Optional>) absentAtLocationIds; - } - - @JsonIgnore - public Optional presentAtAllLocations() { - return presentAtAllLocations; - } - - @JsonIgnore - public Optional availableForPickup() { - return availableForPickup; - } - - @JsonIgnore - public Optional availableOnline() { - return availableOnline; - } - - /** - * SKU of the item - */ - @JsonIgnore - public Optional sku() { - return sku; - } - - /** - * Product code, e.g. UPC or EAN - */ - @JsonIgnore - public Optional code() { - return code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> categories() { - return (Optional>) categories; - } - - /** - * List of options pertaining to this item's attribute variation - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> options() { - return (Optional>) options; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> variations() { - return (Optional>) variations; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> modifierGroups() { - return (Optional>) modifierGroups; - } - - @JsonIgnore - public JsonNullable available() { - return available; - } - - @JsonIgnore - public JsonNullable hidden() { - return hidden; - } - - /** - * Flag to indicate if the object is deleted. - */ - @JsonIgnore - public JsonNullable deleted() { - return deleted; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - public ItemInput withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public ItemInput withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public ItemInput withIdempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public ItemInput withIdempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public ItemInput withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public ItemInput withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - public ItemInput withDescription(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public ItemInput withAbbreviation(String abbreviation) { - Utils.checkNotNull(abbreviation, "abbreviation"); - this.abbreviation = Optional.ofNullable(abbreviation); - return this; - } - - public ItemInput withAbbreviation(Optional abbreviation) { - Utils.checkNotNull(abbreviation, "abbreviation"); - this.abbreviation = abbreviation; - return this; - } - - public ItemInput withProductType(ProductType productType) { - Utils.checkNotNull(productType, "productType"); - this.productType = Optional.ofNullable(productType); - return this; - } - - public ItemInput withProductType(Optional productType) { - Utils.checkNotNull(productType, "productType"); - this.productType = productType; - return this; - } - - public ItemInput withPriceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public ItemInput withPriceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - public ItemInput withPricingType(PricingType pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = Optional.ofNullable(pricingType); - return this; - } - - public ItemInput withPricingType(Optional pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = pricingType; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public ItemInput withPriceCurrency(Currency priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = JsonNullable.of(priceCurrency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public ItemInput withPriceCurrency(JsonNullable priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = priceCurrency; - return this; - } - - public ItemInput withCost(double cost) { - Utils.checkNotNull(cost, "cost"); - this.cost = Optional.ofNullable(cost); - return this; - } - - public ItemInput withCost(Optional cost) { - Utils.checkNotNull(cost, "cost"); - this.cost = cost; - return this; - } - - /** - * A list of Tax IDs for the product. - */ - public ItemInput withTaxIds(List taxIds) { - Utils.checkNotNull(taxIds, "taxIds"); - this.taxIds = Optional.ofNullable(taxIds); - return this; - } - - /** - * A list of Tax IDs for the product. - */ - public ItemInput withTaxIds(Optional> taxIds) { - Utils.checkNotNull(taxIds, "taxIds"); - this.taxIds = taxIds; - return this; - } - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - public ItemInput withIsRevenue(boolean isRevenue) { - Utils.checkNotNull(isRevenue, "isRevenue"); - this.isRevenue = Optional.ofNullable(isRevenue); - return this; - } - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - public ItemInput withIsRevenue(Optional isRevenue) { - Utils.checkNotNull(isRevenue, "isRevenue"); - this.isRevenue = isRevenue; - return this; - } - - public ItemInput withUseDefaultTaxRates(boolean useDefaultTaxRates) { - Utils.checkNotNull(useDefaultTaxRates, "useDefaultTaxRates"); - this.useDefaultTaxRates = Optional.ofNullable(useDefaultTaxRates); - return this; - } - - public ItemInput withUseDefaultTaxRates(Optional useDefaultTaxRates) { - Utils.checkNotNull(useDefaultTaxRates, "useDefaultTaxRates"); - this.useDefaultTaxRates = useDefaultTaxRates; - return this; - } - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - public ItemInput withAbsentAtLocationIds(List absentAtLocationIds) { - Utils.checkNotNull(absentAtLocationIds, "absentAtLocationIds"); - this.absentAtLocationIds = Optional.ofNullable(absentAtLocationIds); - return this; - } - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - public ItemInput withAbsentAtLocationIds(Optional> absentAtLocationIds) { - Utils.checkNotNull(absentAtLocationIds, "absentAtLocationIds"); - this.absentAtLocationIds = absentAtLocationIds; - return this; - } - - public ItemInput withPresentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public ItemInput withPresentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - public ItemInput withAvailableForPickup(boolean availableForPickup) { - Utils.checkNotNull(availableForPickup, "availableForPickup"); - this.availableForPickup = Optional.ofNullable(availableForPickup); - return this; - } - - public ItemInput withAvailableForPickup(Optional availableForPickup) { - Utils.checkNotNull(availableForPickup, "availableForPickup"); - this.availableForPickup = availableForPickup; - return this; - } - - public ItemInput withAvailableOnline(boolean availableOnline) { - Utils.checkNotNull(availableOnline, "availableOnline"); - this.availableOnline = Optional.ofNullable(availableOnline); - return this; - } - - public ItemInput withAvailableOnline(Optional availableOnline) { - Utils.checkNotNull(availableOnline, "availableOnline"); - this.availableOnline = availableOnline; - return this; - } - - /** - * SKU of the item - */ - public ItemInput withSku(String sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = Optional.ofNullable(sku); - return this; - } - - /** - * SKU of the item - */ - public ItemInput withSku(Optional sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = sku; - return this; - } - - /** - * Product code, e.g. UPC or EAN - */ - public ItemInput withCode(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - /** - * Product code, e.g. UPC or EAN - */ - public ItemInput withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public ItemInput withCategories(List categories) { - Utils.checkNotNull(categories, "categories"); - this.categories = Optional.ofNullable(categories); - return this; - } - - public ItemInput withCategories(Optional> categories) { - Utils.checkNotNull(categories, "categories"); - this.categories = categories; - return this; - } - - /** - * List of options pertaining to this item's attribute variation - */ - public ItemInput withOptions(List options) { - Utils.checkNotNull(options, "options"); - this.options = Optional.ofNullable(options); - return this; - } - - /** - * List of options pertaining to this item's attribute variation - */ - public ItemInput withOptions(Optional> options) { - Utils.checkNotNull(options, "options"); - this.options = options; - return this; - } - - public ItemInput withVariations(List variations) { - Utils.checkNotNull(variations, "variations"); - this.variations = Optional.ofNullable(variations); - return this; - } - - public ItemInput withVariations(Optional> variations) { - Utils.checkNotNull(variations, "variations"); - this.variations = variations; - return this; - } - - public ItemInput withModifierGroups(List modifierGroups) { - Utils.checkNotNull(modifierGroups, "modifierGroups"); - this.modifierGroups = Optional.ofNullable(modifierGroups); - return this; - } - - public ItemInput withModifierGroups(Optional> modifierGroups) { - Utils.checkNotNull(modifierGroups, "modifierGroups"); - this.modifierGroups = modifierGroups; - return this; - } - - public ItemInput withAvailable(boolean available) { - Utils.checkNotNull(available, "available"); - this.available = JsonNullable.of(available); - return this; - } - - public ItemInput withAvailable(JsonNullable available) { - Utils.checkNotNull(available, "available"); - this.available = available; - return this; - } - - public ItemInput withHidden(boolean hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = JsonNullable.of(hidden); - return this; - } - - public ItemInput withHidden(JsonNullable hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public ItemInput withDeleted(boolean deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = JsonNullable.of(deleted); - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public ItemInput withDeleted(JsonNullable deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = deleted; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public ItemInput withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public ItemInput withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ItemInput other = (ItemInput) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.idempotencyKey, other.idempotencyKey) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.description, other.description) && - Objects.deepEquals(this.abbreviation, other.abbreviation) && - Objects.deepEquals(this.productType, other.productType) && - Objects.deepEquals(this.priceAmount, other.priceAmount) && - Objects.deepEquals(this.pricingType, other.pricingType) && - Objects.deepEquals(this.priceCurrency, other.priceCurrency) && - Objects.deepEquals(this.cost, other.cost) && - Objects.deepEquals(this.taxIds, other.taxIds) && - Objects.deepEquals(this.isRevenue, other.isRevenue) && - Objects.deepEquals(this.useDefaultTaxRates, other.useDefaultTaxRates) && - Objects.deepEquals(this.absentAtLocationIds, other.absentAtLocationIds) && - Objects.deepEquals(this.presentAtAllLocations, other.presentAtAllLocations) && - Objects.deepEquals(this.availableForPickup, other.availableForPickup) && - Objects.deepEquals(this.availableOnline, other.availableOnline) && - Objects.deepEquals(this.sku, other.sku) && - Objects.deepEquals(this.code, other.code) && - Objects.deepEquals(this.categories, other.categories) && - Objects.deepEquals(this.options, other.options) && - Objects.deepEquals(this.variations, other.variations) && - Objects.deepEquals(this.modifierGroups, other.modifierGroups) && - Objects.deepEquals(this.available, other.available) && - Objects.deepEquals(this.hidden, other.hidden) && - Objects.deepEquals(this.deleted, other.deleted) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - idempotencyKey, - name, - description, - abbreviation, - productType, - priceAmount, - pricingType, - priceCurrency, - cost, - taxIds, - isRevenue, - useDefaultTaxRates, - absentAtLocationIds, - presentAtAllLocations, - availableForPickup, - availableOnline, - sku, - code, - categories, - options, - variations, - modifierGroups, - available, - hidden, - deleted, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(ItemInput.class, - "id", id, - "idempotencyKey", idempotencyKey, - "name", name, - "description", description, - "abbreviation", abbreviation, - "productType", productType, - "priceAmount", priceAmount, - "pricingType", pricingType, - "priceCurrency", priceCurrency, - "cost", cost, - "taxIds", taxIds, - "isRevenue", isRevenue, - "useDefaultTaxRates", useDefaultTaxRates, - "absentAtLocationIds", absentAtLocationIds, - "presentAtAllLocations", presentAtAllLocations, - "availableForPickup", availableForPickup, - "availableOnline", availableOnline, - "sku", sku, - "code", code, - "categories", categories, - "options", options, - "variations", variations, - "modifierGroups", modifierGroups, - "available", available, - "hidden", hidden, - "deleted", deleted, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional idempotencyKey = Optional.empty(); - - private String name; - - private Optional description = Optional.empty(); - - private Optional abbreviation = Optional.empty(); - - private Optional productType = Optional.empty(); - - private Optional priceAmount = Optional.empty(); - - private Optional pricingType = Optional.empty(); - - private JsonNullable priceCurrency = JsonNullable.undefined(); - - private Optional cost = Optional.empty(); - - private Optional> taxIds = Optional.empty(); - - private Optional isRevenue = Optional.empty(); - - private Optional useDefaultTaxRates = Optional.empty(); - - private Optional> absentAtLocationIds = Optional.empty(); - - private Optional presentAtAllLocations = Optional.empty(); - - private Optional availableForPickup = Optional.empty(); - - private Optional availableOnline = Optional.empty(); - - private Optional sku = Optional.empty(); - - private Optional code = Optional.empty(); - - private Optional> categories = Optional.empty(); - - private Optional> options = Optional.empty(); - - private Optional> variations = Optional.empty(); - - private Optional> modifierGroups = Optional.empty(); - - private JsonNullable available = JsonNullable.undefined(); - - private JsonNullable hidden = JsonNullable.undefined(); - - private JsonNullable deleted = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - public Builder description(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public Builder abbreviation(String abbreviation) { - Utils.checkNotNull(abbreviation, "abbreviation"); - this.abbreviation = Optional.ofNullable(abbreviation); - return this; - } - - public Builder abbreviation(Optional abbreviation) { - Utils.checkNotNull(abbreviation, "abbreviation"); - this.abbreviation = abbreviation; - return this; - } - - public Builder productType(ProductType productType) { - Utils.checkNotNull(productType, "productType"); - this.productType = Optional.ofNullable(productType); - return this; - } - - public Builder productType(Optional productType) { - Utils.checkNotNull(productType, "productType"); - this.productType = productType; - return this; - } - - public Builder priceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public Builder priceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - public Builder pricingType(PricingType pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = Optional.ofNullable(pricingType); - return this; - } - - public Builder pricingType(Optional pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = pricingType; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder priceCurrency(Currency priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = JsonNullable.of(priceCurrency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder priceCurrency(JsonNullable priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = priceCurrency; - return this; - } - - public Builder cost(double cost) { - Utils.checkNotNull(cost, "cost"); - this.cost = Optional.ofNullable(cost); - return this; - } - - public Builder cost(Optional cost) { - Utils.checkNotNull(cost, "cost"); - this.cost = cost; - return this; - } - - /** - * A list of Tax IDs for the product. - */ - public Builder taxIds(List taxIds) { - Utils.checkNotNull(taxIds, "taxIds"); - this.taxIds = Optional.ofNullable(taxIds); - return this; - } - - /** - * A list of Tax IDs for the product. - */ - public Builder taxIds(Optional> taxIds) { - Utils.checkNotNull(taxIds, "taxIds"); - this.taxIds = taxIds; - return this; - } - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - public Builder isRevenue(boolean isRevenue) { - Utils.checkNotNull(isRevenue, "isRevenue"); - this.isRevenue = Optional.ofNullable(isRevenue); - return this; - } - - /** - * True if this item should be counted as revenue. For example, gift cards and donations would not be counted as revenue. - */ - public Builder isRevenue(Optional isRevenue) { - Utils.checkNotNull(isRevenue, "isRevenue"); - this.isRevenue = isRevenue; - return this; - } - - public Builder useDefaultTaxRates(boolean useDefaultTaxRates) { - Utils.checkNotNull(useDefaultTaxRates, "useDefaultTaxRates"); - this.useDefaultTaxRates = Optional.ofNullable(useDefaultTaxRates); - return this; - } - - public Builder useDefaultTaxRates(Optional useDefaultTaxRates) { - Utils.checkNotNull(useDefaultTaxRates, "useDefaultTaxRates"); - this.useDefaultTaxRates = useDefaultTaxRates; - return this; - } - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - public Builder absentAtLocationIds(List absentAtLocationIds) { - Utils.checkNotNull(absentAtLocationIds, "absentAtLocationIds"); - this.absentAtLocationIds = Optional.ofNullable(absentAtLocationIds); - return this; - } - - /** - * A list of locations where the object is not present, even if present_at_all_locations is true. This can include locations that are deactivated. - */ - public Builder absentAtLocationIds(Optional> absentAtLocationIds) { - Utils.checkNotNull(absentAtLocationIds, "absentAtLocationIds"); - this.absentAtLocationIds = absentAtLocationIds; - return this; - } - - public Builder presentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public Builder presentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - public Builder availableForPickup(boolean availableForPickup) { - Utils.checkNotNull(availableForPickup, "availableForPickup"); - this.availableForPickup = Optional.ofNullable(availableForPickup); - return this; - } - - public Builder availableForPickup(Optional availableForPickup) { - Utils.checkNotNull(availableForPickup, "availableForPickup"); - this.availableForPickup = availableForPickup; - return this; - } - - public Builder availableOnline(boolean availableOnline) { - Utils.checkNotNull(availableOnline, "availableOnline"); - this.availableOnline = Optional.ofNullable(availableOnline); - return this; - } - - public Builder availableOnline(Optional availableOnline) { - Utils.checkNotNull(availableOnline, "availableOnline"); - this.availableOnline = availableOnline; - return this; - } - - /** - * SKU of the item - */ - public Builder sku(String sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = Optional.ofNullable(sku); - return this; - } - - /** - * SKU of the item - */ - public Builder sku(Optional sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = sku; - return this; - } - - /** - * Product code, e.g. UPC or EAN - */ - public Builder code(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - /** - * Product code, e.g. UPC or EAN - */ - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder categories(List categories) { - Utils.checkNotNull(categories, "categories"); - this.categories = Optional.ofNullable(categories); - return this; - } - - public Builder categories(Optional> categories) { - Utils.checkNotNull(categories, "categories"); - this.categories = categories; - return this; - } - - /** - * List of options pertaining to this item's attribute variation - */ - public Builder options(List options) { - Utils.checkNotNull(options, "options"); - this.options = Optional.ofNullable(options); - return this; - } - - /** - * List of options pertaining to this item's attribute variation - */ - public Builder options(Optional> options) { - Utils.checkNotNull(options, "options"); - this.options = options; - return this; - } - - public Builder variations(List variations) { - Utils.checkNotNull(variations, "variations"); - this.variations = Optional.ofNullable(variations); - return this; - } - - public Builder variations(Optional> variations) { - Utils.checkNotNull(variations, "variations"); - this.variations = variations; - return this; - } - - public Builder modifierGroups(List modifierGroups) { - Utils.checkNotNull(modifierGroups, "modifierGroups"); - this.modifierGroups = Optional.ofNullable(modifierGroups); - return this; - } - - public Builder modifierGroups(Optional> modifierGroups) { - Utils.checkNotNull(modifierGroups, "modifierGroups"); - this.modifierGroups = modifierGroups; - return this; - } - - public Builder available(boolean available) { - Utils.checkNotNull(available, "available"); - this.available = JsonNullable.of(available); - return this; - } - - public Builder available(JsonNullable available) { - Utils.checkNotNull(available, "available"); - this.available = available; - return this; - } - - public Builder hidden(boolean hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = JsonNullable.of(hidden); - return this; - } - - public Builder hidden(JsonNullable hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public Builder deleted(boolean deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = JsonNullable.of(deleted); - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public Builder deleted(JsonNullable deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = deleted; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public ItemInput build() { - return new ItemInput( - id, - idempotencyKey, - name, - description, - abbreviation, - productType, - priceAmount, - pricingType, - priceCurrency, - cost, - taxIds, - isRevenue, - useDefaultTaxRates, - absentAtLocationIds, - presentAtAllLocations, - availableForPickup, - availableOnline, - sku, - code, - categories, - options, - variations, - modifierGroups, - available, - hidden, - deleted, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ItemModifierGroups.java b/src/main/java/com/apideck/unify/models/components/ItemModifierGroups.java deleted file mode 100644 index fa2b40b..0000000 --- a/src/main/java/com/apideck/unify/models/components/ItemModifierGroups.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - - -public class ItemModifierGroups { - - @JsonCreator - public ItemModifierGroups() { - - - } - - public final static Builder builder() { - return new Builder(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Objects.hash( - ); - } - - @Override - public String toString() { - return Utils.toString(ItemModifierGroups.class); - } - - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ItemModifierGroups build() { - return new ItemModifierGroups( - ); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ItemOptions.java b/src/main/java/com/apideck/unify/models/components/ItemOptions.java deleted file mode 100644 index 74444c8..0000000 --- a/src/main/java/com/apideck/unify/models/components/ItemOptions.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class ItemOptions { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("attribute_id") - private Optional attributeId; - - @JsonCreator - public ItemOptions( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("attribute_id") Optional attributeId) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(attributeId, "attributeId"); - this.id = id; - this.name = name; - this.attributeId = attributeId; - } - - public ItemOptions() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional attributeId() { - return attributeId; - } - - public final static Builder builder() { - return new Builder(); - } - - public ItemOptions withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public ItemOptions withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public ItemOptions withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public ItemOptions withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public ItemOptions withAttributeId(String attributeId) { - Utils.checkNotNull(attributeId, "attributeId"); - this.attributeId = Optional.ofNullable(attributeId); - return this; - } - - public ItemOptions withAttributeId(Optional attributeId) { - Utils.checkNotNull(attributeId, "attributeId"); - this.attributeId = attributeId; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ItemOptions other = (ItemOptions) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.attributeId, other.attributeId); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - attributeId); - } - - @Override - public String toString() { - return Utils.toString(ItemOptions.class, - "id", id, - "name", name, - "attributeId", attributeId); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional attributeId = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder attributeId(String attributeId) { - Utils.checkNotNull(attributeId, "attributeId"); - this.attributeId = Optional.ofNullable(attributeId); - return this; - } - - public Builder attributeId(Optional attributeId) { - Utils.checkNotNull(attributeId, "attributeId"); - this.attributeId = attributeId; - return this; - } - - public ItemOptions build() { - return new ItemOptions( - id, - name, - attributeId); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ItemPricingType.java b/src/main/java/com/apideck/unify/models/components/ItemPricingType.java deleted file mode 100644 index db37ed2..0000000 --- a/src/main/java/com/apideck/unify/models/components/ItemPricingType.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum ItemPricingType { - FIXED("fixed"), - VARIABLE("variable"), - OTHER("other"); - - @JsonValue - private final String value; - - private ItemPricingType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/ItemVariations.java b/src/main/java/com/apideck/unify/models/components/ItemVariations.java deleted file mode 100644 index 3ef1608..0000000 --- a/src/main/java/com/apideck/unify/models/components/ItemVariations.java +++ /dev/null @@ -1,427 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class ItemVariations { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sku") - private Optional sku; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sequence") - private JsonNullable sequence; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pricing_type") - private Optional pricingType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("price_amount") - private Optional priceAmount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("price_currency") - private JsonNullable priceCurrency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("stockable") - private Optional stockable; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("present_at_all_locations") - private Optional presentAtAllLocations; - - @JsonCreator - public ItemVariations( - @JsonProperty("name") Optional name, - @JsonProperty("sku") Optional sku, - @JsonProperty("sequence") JsonNullable sequence, - @JsonProperty("pricing_type") Optional pricingType, - @JsonProperty("price_amount") Optional priceAmount, - @JsonProperty("price_currency") JsonNullable priceCurrency, - @JsonProperty("stockable") Optional stockable, - @JsonProperty("present_at_all_locations") Optional presentAtAllLocations) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(sku, "sku"); - Utils.checkNotNull(sequence, "sequence"); - Utils.checkNotNull(pricingType, "pricingType"); - Utils.checkNotNull(priceAmount, "priceAmount"); - Utils.checkNotNull(priceCurrency, "priceCurrency"); - Utils.checkNotNull(stockable, "stockable"); - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.name = name; - this.sku = sku; - this.sequence = sequence; - this.pricingType = pricingType; - this.priceAmount = priceAmount; - this.priceCurrency = priceCurrency; - this.stockable = stockable; - this.presentAtAllLocations = presentAtAllLocations; - } - - public ItemVariations() { - this(Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional sku() { - return sku; - } - - @JsonIgnore - public JsonNullable sequence() { - return sequence; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional pricingType() { - return (Optional) pricingType; - } - - @JsonIgnore - public Optional priceAmount() { - return priceAmount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable priceCurrency() { - return (JsonNullable) priceCurrency; - } - - @JsonIgnore - public Optional stockable() { - return stockable; - } - - @JsonIgnore - public Optional presentAtAllLocations() { - return presentAtAllLocations; - } - - public final static Builder builder() { - return new Builder(); - } - - public ItemVariations withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public ItemVariations withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public ItemVariations withSku(String sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = Optional.ofNullable(sku); - return this; - } - - public ItemVariations withSku(Optional sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = sku; - return this; - } - - public ItemVariations withSequence(double sequence) { - Utils.checkNotNull(sequence, "sequence"); - this.sequence = JsonNullable.of(sequence); - return this; - } - - public ItemVariations withSequence(JsonNullable sequence) { - Utils.checkNotNull(sequence, "sequence"); - this.sequence = sequence; - return this; - } - - public ItemVariations withPricingType(ItemPricingType pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = Optional.ofNullable(pricingType); - return this; - } - - public ItemVariations withPricingType(Optional pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = pricingType; - return this; - } - - public ItemVariations withPriceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public ItemVariations withPriceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public ItemVariations withPriceCurrency(Currency priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = JsonNullable.of(priceCurrency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public ItemVariations withPriceCurrency(JsonNullable priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = priceCurrency; - return this; - } - - public ItemVariations withStockable(boolean stockable) { - Utils.checkNotNull(stockable, "stockable"); - this.stockable = Optional.ofNullable(stockable); - return this; - } - - public ItemVariations withStockable(Optional stockable) { - Utils.checkNotNull(stockable, "stockable"); - this.stockable = stockable; - return this; - } - - public ItemVariations withPresentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public ItemVariations withPresentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ItemVariations other = (ItemVariations) o; - return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.sku, other.sku) && - Objects.deepEquals(this.sequence, other.sequence) && - Objects.deepEquals(this.pricingType, other.pricingType) && - Objects.deepEquals(this.priceAmount, other.priceAmount) && - Objects.deepEquals(this.priceCurrency, other.priceCurrency) && - Objects.deepEquals(this.stockable, other.stockable) && - Objects.deepEquals(this.presentAtAllLocations, other.presentAtAllLocations); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - sku, - sequence, - pricingType, - priceAmount, - priceCurrency, - stockable, - presentAtAllLocations); - } - - @Override - public String toString() { - return Utils.toString(ItemVariations.class, - "name", name, - "sku", sku, - "sequence", sequence, - "pricingType", pricingType, - "priceAmount", priceAmount, - "priceCurrency", priceCurrency, - "stockable", stockable, - "presentAtAllLocations", presentAtAllLocations); - } - - public final static class Builder { - - private Optional name = Optional.empty(); - - private Optional sku = Optional.empty(); - - private JsonNullable sequence = JsonNullable.undefined(); - - private Optional pricingType = Optional.empty(); - - private Optional priceAmount = Optional.empty(); - - private JsonNullable priceCurrency = JsonNullable.undefined(); - - private Optional stockable = Optional.empty(); - - private Optional presentAtAllLocations = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder sku(String sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = Optional.ofNullable(sku); - return this; - } - - public Builder sku(Optional sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = sku; - return this; - } - - public Builder sequence(double sequence) { - Utils.checkNotNull(sequence, "sequence"); - this.sequence = JsonNullable.of(sequence); - return this; - } - - public Builder sequence(JsonNullable sequence) { - Utils.checkNotNull(sequence, "sequence"); - this.sequence = sequence; - return this; - } - - public Builder pricingType(ItemPricingType pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = Optional.ofNullable(pricingType); - return this; - } - - public Builder pricingType(Optional pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = pricingType; - return this; - } - - public Builder priceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public Builder priceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder priceCurrency(Currency priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = JsonNullable.of(priceCurrency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder priceCurrency(JsonNullable priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = priceCurrency; - return this; - } - - public Builder stockable(boolean stockable) { - Utils.checkNotNull(stockable, "stockable"); - this.stockable = Optional.ofNullable(stockable); - return this; - } - - public Builder stockable(Optional stockable) { - Utils.checkNotNull(stockable, "stockable"); - this.stockable = stockable; - return this; - } - - public Builder presentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public Builder presentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - public ItemVariations build() { - return new ItemVariations( - name, - sku, - sequence, - pricingType, - priceAmount, - priceCurrency, - stockable, - presentAtAllLocations); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/LineItems.java b/src/main/java/com/apideck/unify/models/components/LineItems.java deleted file mode 100644 index 163288c..0000000 --- a/src/main/java/com/apideck/unify/models/components/LineItems.java +++ /dev/null @@ -1,574 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Double; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class LineItems { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("item") - private Optional item; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_tax") - private JsonNullable totalTax; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_discount") - private JsonNullable totalDiscount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_amount") - private JsonNullable totalAmount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("quantity") - private JsonNullable quantity; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("unit_price") - private JsonNullable unitPrice; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("applied_taxes") - private Optional> appliedTaxes; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("applied_discounts") - private Optional> appliedDiscounts; - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("modifiers") - private Optional> modifiers; - - @JsonCreator - public LineItems( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("item") Optional item, - @JsonProperty("total_tax") JsonNullable totalTax, - @JsonProperty("total_discount") JsonNullable totalDiscount, - @JsonProperty("total_amount") JsonNullable totalAmount, - @JsonProperty("quantity") JsonNullable quantity, - @JsonProperty("unit_price") JsonNullable unitPrice, - @JsonProperty("applied_taxes") Optional> appliedTaxes, - @JsonProperty("applied_discounts") Optional> appliedDiscounts, - @JsonProperty("modifiers") Optional> modifiers) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(item, "item"); - Utils.checkNotNull(totalTax, "totalTax"); - Utils.checkNotNull(totalDiscount, "totalDiscount"); - Utils.checkNotNull(totalAmount, "totalAmount"); - Utils.checkNotNull(quantity, "quantity"); - Utils.checkNotNull(unitPrice, "unitPrice"); - Utils.checkNotNull(appliedTaxes, "appliedTaxes"); - Utils.checkNotNull(appliedDiscounts, "appliedDiscounts"); - Utils.checkNotNull(modifiers, "modifiers"); - this.id = id; - this.name = name; - this.item = item; - this.totalTax = totalTax; - this.totalDiscount = totalDiscount; - this.totalAmount = totalAmount; - this.quantity = quantity; - this.unitPrice = unitPrice; - this.appliedTaxes = appliedTaxes; - this.appliedDiscounts = appliedDiscounts; - this.modifiers = modifiers; - } - - public LineItems() { - this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional item() { - return (Optional) item; - } - - @JsonIgnore - public JsonNullable totalTax() { - return totalTax; - } - - @JsonIgnore - public JsonNullable totalDiscount() { - return totalDiscount; - } - - @JsonIgnore - public JsonNullable totalAmount() { - return totalAmount; - } - - @JsonIgnore - public JsonNullable quantity() { - return quantity; - } - - @JsonIgnore - public JsonNullable unitPrice() { - return unitPrice; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> appliedTaxes() { - return (Optional>) appliedTaxes; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> appliedDiscounts() { - return (Optional>) appliedDiscounts; - } - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> modifiers() { - return (Optional>) modifiers; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public LineItems withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public LineItems withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public LineItems withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public LineItems withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public LineItems withItem(OrderItem item) { - Utils.checkNotNull(item, "item"); - this.item = Optional.ofNullable(item); - return this; - } - - public LineItems withItem(Optional item) { - Utils.checkNotNull(item, "item"); - this.item = item; - return this; - } - - public LineItems withTotalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public LineItems withTotalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public LineItems withTotalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public LineItems withTotalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public LineItems withTotalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public LineItems withTotalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public LineItems withQuantity(double quantity) { - Utils.checkNotNull(quantity, "quantity"); - this.quantity = JsonNullable.of(quantity); - return this; - } - - public LineItems withQuantity(JsonNullable quantity) { - Utils.checkNotNull(quantity, "quantity"); - this.quantity = quantity; - return this; - } - - public LineItems withUnitPrice(double unitPrice) { - Utils.checkNotNull(unitPrice, "unitPrice"); - this.unitPrice = JsonNullable.of(unitPrice); - return this; - } - - public LineItems withUnitPrice(JsonNullable unitPrice) { - Utils.checkNotNull(unitPrice, "unitPrice"); - this.unitPrice = unitPrice; - return this; - } - - public LineItems withAppliedTaxes(List appliedTaxes) { - Utils.checkNotNull(appliedTaxes, "appliedTaxes"); - this.appliedTaxes = Optional.ofNullable(appliedTaxes); - return this; - } - - public LineItems withAppliedTaxes(Optional> appliedTaxes) { - Utils.checkNotNull(appliedTaxes, "appliedTaxes"); - this.appliedTaxes = appliedTaxes; - return this; - } - - public LineItems withAppliedDiscounts(List appliedDiscounts) { - Utils.checkNotNull(appliedDiscounts, "appliedDiscounts"); - this.appliedDiscounts = Optional.ofNullable(appliedDiscounts); - return this; - } - - public LineItems withAppliedDiscounts(Optional> appliedDiscounts) { - Utils.checkNotNull(appliedDiscounts, "appliedDiscounts"); - this.appliedDiscounts = appliedDiscounts; - return this; - } - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - public LineItems withModifiers(List modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = Optional.ofNullable(modifiers); - return this; - } - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - public LineItems withModifiers(Optional> modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = modifiers; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LineItems other = (LineItems) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.item, other.item) && - Objects.deepEquals(this.totalTax, other.totalTax) && - Objects.deepEquals(this.totalDiscount, other.totalDiscount) && - Objects.deepEquals(this.totalAmount, other.totalAmount) && - Objects.deepEquals(this.quantity, other.quantity) && - Objects.deepEquals(this.unitPrice, other.unitPrice) && - Objects.deepEquals(this.appliedTaxes, other.appliedTaxes) && - Objects.deepEquals(this.appliedDiscounts, other.appliedDiscounts) && - Objects.deepEquals(this.modifiers, other.modifiers); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - item, - totalTax, - totalDiscount, - totalAmount, - quantity, - unitPrice, - appliedTaxes, - appliedDiscounts, - modifiers); - } - - @Override - public String toString() { - return Utils.toString(LineItems.class, - "id", id, - "name", name, - "item", item, - "totalTax", totalTax, - "totalDiscount", totalDiscount, - "totalAmount", totalAmount, - "quantity", quantity, - "unitPrice", unitPrice, - "appliedTaxes", appliedTaxes, - "appliedDiscounts", appliedDiscounts, - "modifiers", modifiers); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional item = Optional.empty(); - - private JsonNullable totalTax = JsonNullable.undefined(); - - private JsonNullable totalDiscount = JsonNullable.undefined(); - - private JsonNullable totalAmount = JsonNullable.undefined(); - - private JsonNullable quantity = JsonNullable.undefined(); - - private JsonNullable unitPrice = JsonNullable.undefined(); - - private Optional> appliedTaxes = Optional.empty(); - - private Optional> appliedDiscounts = Optional.empty(); - - private Optional> modifiers = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder item(OrderItem item) { - Utils.checkNotNull(item, "item"); - this.item = Optional.ofNullable(item); - return this; - } - - public Builder item(Optional item) { - Utils.checkNotNull(item, "item"); - this.item = item; - return this; - } - - public Builder totalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public Builder totalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public Builder totalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public Builder totalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public Builder totalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public Builder totalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public Builder quantity(double quantity) { - Utils.checkNotNull(quantity, "quantity"); - this.quantity = JsonNullable.of(quantity); - return this; - } - - public Builder quantity(JsonNullable quantity) { - Utils.checkNotNull(quantity, "quantity"); - this.quantity = quantity; - return this; - } - - public Builder unitPrice(double unitPrice) { - Utils.checkNotNull(unitPrice, "unitPrice"); - this.unitPrice = JsonNullable.of(unitPrice); - return this; - } - - public Builder unitPrice(JsonNullable unitPrice) { - Utils.checkNotNull(unitPrice, "unitPrice"); - this.unitPrice = unitPrice; - return this; - } - - public Builder appliedTaxes(List appliedTaxes) { - Utils.checkNotNull(appliedTaxes, "appliedTaxes"); - this.appliedTaxes = Optional.ofNullable(appliedTaxes); - return this; - } - - public Builder appliedTaxes(Optional> appliedTaxes) { - Utils.checkNotNull(appliedTaxes, "appliedTaxes"); - this.appliedTaxes = appliedTaxes; - return this; - } - - public Builder appliedDiscounts(List appliedDiscounts) { - Utils.checkNotNull(appliedDiscounts, "appliedDiscounts"); - this.appliedDiscounts = Optional.ofNullable(appliedDiscounts); - return this; - } - - public Builder appliedDiscounts(Optional> appliedDiscounts) { - Utils.checkNotNull(appliedDiscounts, "appliedDiscounts"); - this.appliedDiscounts = appliedDiscounts; - return this; - } - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - public Builder modifiers(List modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = Optional.ofNullable(modifiers); - return this; - } - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - public Builder modifiers(Optional> modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = modifiers; - return this; - } - - public LineItems build() { - return new LineItems( - id, - name, - item, - totalTax, - totalDiscount, - totalAmount, - quantity, - unitPrice, - appliedTaxes, - appliedDiscounts, - modifiers); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Location.java b/src/main/java/com/apideck/unify/models/components/Location.java deleted file mode 100644 index f130102..0000000 --- a/src/main/java/com/apideck/unify/models/components/Location.java +++ /dev/null @@ -1,820 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Location { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * The name of the location - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private JsonNullable name; - - /** - * The business name of the location - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("business_name") - private JsonNullable businessName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("address") - private Optional address; - - /** - * Status of this location. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private JsonNullable status; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("merchant_id") - private Optional merchantId; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("custom_mappings") - private JsonNullable customMappings; - - /** - * The user who last updated the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_by") - private JsonNullable updatedBy; - - /** - * The user who created the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_by") - private JsonNullable createdBy; - - /** - * The date and time when the object was last updated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_at") - private JsonNullable updatedAt; - - /** - * The date and time when the object was created. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_at") - private JsonNullable createdAt; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public Location( - @JsonProperty("id") Optional id, - @JsonProperty("name") JsonNullable name, - @JsonProperty("business_name") JsonNullable businessName, - @JsonProperty("address") Optional address, - @JsonProperty("status") JsonNullable status, - @JsonProperty("merchant_id") Optional merchantId, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("custom_mappings") JsonNullable customMappings, - @JsonProperty("updated_by") JsonNullable updatedBy, - @JsonProperty("created_by") JsonNullable createdBy, - @JsonProperty("updated_at") JsonNullable updatedAt, - @JsonProperty("created_at") JsonNullable createdAt, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(businessName, "businessName"); - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(merchantId, "merchantId"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(customMappings, "customMappings"); - Utils.checkNotNull(updatedBy, "updatedBy"); - Utils.checkNotNull(createdBy, "createdBy"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(passThrough, "passThrough"); - this.id = id; - this.name = name; - this.businessName = businessName; - this.address = address; - this.status = status; - this.merchantId = merchantId; - this.currency = currency; - this.customMappings = customMappings; - this.updatedBy = updatedBy; - this.createdBy = createdBy; - this.updatedAt = updatedAt; - this.createdAt = createdAt; - this.passThrough = passThrough; - } - - public Location() { - this(Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - /** - * The name of the location - */ - @JsonIgnore - public JsonNullable name() { - return name; - } - - /** - * The business name of the location - */ - @JsonIgnore - public JsonNullable businessName() { - return businessName; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional

address() { - return (Optional
) address; - } - - /** - * Status of this location. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable status() { - return (JsonNullable) status; - } - - @JsonIgnore - public Optional merchantId() { - return merchantId; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable customMappings() { - return (JsonNullable) customMappings; - } - - /** - * The user who last updated the object. - */ - @JsonIgnore - public JsonNullable updatedBy() { - return updatedBy; - } - - /** - * The user who created the object. - */ - @JsonIgnore - public JsonNullable createdBy() { - return createdBy; - } - - /** - * The date and time when the object was last updated. - */ - @JsonIgnore - public JsonNullable updatedAt() { - return updatedAt; - } - - /** - * The date and time when the object was created. - */ - @JsonIgnore - public JsonNullable createdAt() { - return createdAt; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public Location withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Location withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The name of the location - */ - public Location withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = JsonNullable.of(name); - return this; - } - - /** - * The name of the location - */ - public Location withName(JsonNullable name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - /** - * The business name of the location - */ - public Location withBusinessName(String businessName) { - Utils.checkNotNull(businessName, "businessName"); - this.businessName = JsonNullable.of(businessName); - return this; - } - - /** - * The business name of the location - */ - public Location withBusinessName(JsonNullable businessName) { - Utils.checkNotNull(businessName, "businessName"); - this.businessName = businessName; - return this; - } - - public Location withAddress(Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Location withAddress(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - /** - * Status of this location. - */ - public Location withStatus(LocationStatusStatus status) { - Utils.checkNotNull(status, "status"); - this.status = JsonNullable.of(status); - return this; - } - - /** - * Status of this location. - */ - public Location withStatus(JsonNullable status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Location withMerchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public Location withMerchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Location withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Location withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Location withCustomMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Location withCustomMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * The user who last updated the object. - */ - public Location withUpdatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Location withUpdatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Location withCreatedBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Location withCreatedBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Location withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Location withUpdatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Location withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Location withCreatedAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Location withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Location withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Location other = (Location) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.businessName, other.businessName) && - Objects.deepEquals(this.address, other.address) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.merchantId, other.merchantId) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.customMappings, other.customMappings) && - Objects.deepEquals(this.updatedBy, other.updatedBy) && - Objects.deepEquals(this.createdBy, other.createdBy) && - Objects.deepEquals(this.updatedAt, other.updatedAt) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - businessName, - address, - status, - merchantId, - currency, - customMappings, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(Location.class, - "id", id, - "name", name, - "businessName", businessName, - "address", address, - "status", status, - "merchantId", merchantId, - "currency", currency, - "customMappings", customMappings, - "updatedBy", updatedBy, - "createdBy", createdBy, - "updatedAt", updatedAt, - "createdAt", createdAt, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private JsonNullable name = JsonNullable.undefined(); - - private JsonNullable businessName = JsonNullable.undefined(); - - private Optional address = Optional.empty(); - - private JsonNullable status = JsonNullable.undefined(); - - private Optional merchantId = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private JsonNullable customMappings = JsonNullable.undefined(); - - private JsonNullable updatedBy = JsonNullable.undefined(); - - private JsonNullable createdBy = JsonNullable.undefined(); - - private JsonNullable updatedAt = JsonNullable.undefined(); - - private JsonNullable createdAt = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The name of the location - */ - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = JsonNullable.of(name); - return this; - } - - /** - * The name of the location - */ - public Builder name(JsonNullable name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - /** - * The business name of the location - */ - public Builder businessName(String businessName) { - Utils.checkNotNull(businessName, "businessName"); - this.businessName = JsonNullable.of(businessName); - return this; - } - - /** - * The business name of the location - */ - public Builder businessName(JsonNullable businessName) { - Utils.checkNotNull(businessName, "businessName"); - this.businessName = businessName; - return this; - } - - public Builder address(Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Builder address(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - /** - * Status of this location. - */ - public Builder status(LocationStatusStatus status) { - Utils.checkNotNull(status, "status"); - this.status = JsonNullable.of(status); - return this; - } - - /** - * Status of this location. - */ - public Builder status(JsonNullable status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Builder merchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public Builder merchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public Location build() { - return new Location( - id, - name, - businessName, - address, - status, - merchantId, - currency, - customMappings, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/LocationInput.java b/src/main/java/com/apideck/unify/models/components/LocationInput.java deleted file mode 100644 index 50435eb..0000000 --- a/src/main/java/com/apideck/unify/models/components/LocationInput.java +++ /dev/null @@ -1,458 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class LocationInput { - - /** - * The name of the location - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private JsonNullable name; - - /** - * The business name of the location - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("business_name") - private JsonNullable businessName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("address") - private Optional address; - - /** - * Status of this location. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private JsonNullable status; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("merchant_id") - private Optional merchantId; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public LocationInput( - @JsonProperty("name") JsonNullable name, - @JsonProperty("business_name") JsonNullable businessName, - @JsonProperty("address") Optional address, - @JsonProperty("status") JsonNullable status, - @JsonProperty("merchant_id") Optional merchantId, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(businessName, "businessName"); - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(merchantId, "merchantId"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(passThrough, "passThrough"); - this.name = name; - this.businessName = businessName; - this.address = address; - this.status = status; - this.merchantId = merchantId; - this.currency = currency; - this.passThrough = passThrough; - } - - public LocationInput() { - this(JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * The name of the location - */ - @JsonIgnore - public JsonNullable name() { - return name; - } - - /** - * The business name of the location - */ - @JsonIgnore - public JsonNullable businessName() { - return businessName; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional
address() { - return (Optional
) address; - } - - /** - * Status of this location. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable status() { - return (JsonNullable) status; - } - - @JsonIgnore - public Optional merchantId() { - return merchantId; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The name of the location - */ - public LocationInput withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = JsonNullable.of(name); - return this; - } - - /** - * The name of the location - */ - public LocationInput withName(JsonNullable name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - /** - * The business name of the location - */ - public LocationInput withBusinessName(String businessName) { - Utils.checkNotNull(businessName, "businessName"); - this.businessName = JsonNullable.of(businessName); - return this; - } - - /** - * The business name of the location - */ - public LocationInput withBusinessName(JsonNullable businessName) { - Utils.checkNotNull(businessName, "businessName"); - this.businessName = businessName; - return this; - } - - public LocationInput withAddress(Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public LocationInput withAddress(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - /** - * Status of this location. - */ - public LocationInput withStatus(LocationStatusStatus status) { - Utils.checkNotNull(status, "status"); - this.status = JsonNullable.of(status); - return this; - } - - /** - * Status of this location. - */ - public LocationInput withStatus(JsonNullable status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public LocationInput withMerchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public LocationInput withMerchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public LocationInput withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public LocationInput withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public LocationInput withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public LocationInput withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LocationInput other = (LocationInput) o; - return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.businessName, other.businessName) && - Objects.deepEquals(this.address, other.address) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.merchantId, other.merchantId) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - businessName, - address, - status, - merchantId, - currency, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(LocationInput.class, - "name", name, - "businessName", businessName, - "address", address, - "status", status, - "merchantId", merchantId, - "currency", currency, - "passThrough", passThrough); - } - - public final static class Builder { - - private JsonNullable name = JsonNullable.undefined(); - - private JsonNullable businessName = JsonNullable.undefined(); - - private Optional address = Optional.empty(); - - private JsonNullable status = JsonNullable.undefined(); - - private Optional merchantId = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The name of the location - */ - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = JsonNullable.of(name); - return this; - } - - /** - * The name of the location - */ - public Builder name(JsonNullable name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - /** - * The business name of the location - */ - public Builder businessName(String businessName) { - Utils.checkNotNull(businessName, "businessName"); - this.businessName = JsonNullable.of(businessName); - return this; - } - - /** - * The business name of the location - */ - public Builder businessName(JsonNullable businessName) { - Utils.checkNotNull(businessName, "businessName"); - this.businessName = businessName; - return this; - } - - public Builder address(Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Builder address(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - /** - * Status of this location. - */ - public Builder status(LocationStatusStatus status) { - Utils.checkNotNull(status, "status"); - this.status = JsonNullable.of(status); - return this; - } - - /** - * Status of this location. - */ - public Builder status(JsonNullable status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Builder merchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public Builder merchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public LocationInput build() { - return new LocationInput( - name, - businessName, - address, - status, - merchantId, - currency, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/LocationStatusStatus.java b/src/main/java/com/apideck/unify/models/components/LocationStatusStatus.java deleted file mode 100644 index ab44c70..0000000 --- a/src/main/java/com/apideck/unify/models/components/LocationStatusStatus.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * LocationStatusStatus - Status of this location. - */ -public enum LocationStatusStatus { - ACTIVE("active"), - INACTIVE("inactive"), - OTHER("other"); - - @JsonValue - private final String value; - - private LocationStatusStatus(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/Merchant.java b/src/main/java/com/apideck/unify/models/components/Merchant.java deleted file mode 100644 index 09cef66..0000000 --- a/src/main/java/com/apideck/unify/models/components/Merchant.java +++ /dev/null @@ -1,923 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Merchant { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * The name of the merchant - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private JsonNullable name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("address") - private Optional address; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("owner_id") - private Optional ownerId; - - /** - * The main location ID of the merchant - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("main_location_id") - private JsonNullable mainLocationId; - - /** - * Status of this merchant. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private JsonNullable status; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("service_charges") - private Optional> serviceCharges; - - /** - * language code according to ISO 639-1. For the United States - EN - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("language") - private JsonNullable language; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("custom_mappings") - private JsonNullable customMappings; - - /** - * The user who last updated the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_by") - private JsonNullable updatedBy; - - /** - * The user who created the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_by") - private JsonNullable createdBy; - - /** - * The date and time when the object was last updated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_at") - private JsonNullable updatedAt; - - /** - * The date and time when the object was created. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_at") - private JsonNullable createdAt; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public Merchant( - @JsonProperty("id") Optional id, - @JsonProperty("name") JsonNullable name, - @JsonProperty("address") Optional address, - @JsonProperty("owner_id") Optional ownerId, - @JsonProperty("main_location_id") JsonNullable mainLocationId, - @JsonProperty("status") JsonNullable status, - @JsonProperty("service_charges") Optional> serviceCharges, - @JsonProperty("language") JsonNullable language, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("custom_mappings") JsonNullable customMappings, - @JsonProperty("updated_by") JsonNullable updatedBy, - @JsonProperty("created_by") JsonNullable createdBy, - @JsonProperty("updated_at") JsonNullable updatedAt, - @JsonProperty("created_at") JsonNullable createdAt, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(ownerId, "ownerId"); - Utils.checkNotNull(mainLocationId, "mainLocationId"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(serviceCharges, "serviceCharges"); - Utils.checkNotNull(language, "language"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(customMappings, "customMappings"); - Utils.checkNotNull(updatedBy, "updatedBy"); - Utils.checkNotNull(createdBy, "createdBy"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(passThrough, "passThrough"); - this.id = id; - this.name = name; - this.address = address; - this.ownerId = ownerId; - this.mainLocationId = mainLocationId; - this.status = status; - this.serviceCharges = serviceCharges; - this.language = language; - this.currency = currency; - this.customMappings = customMappings; - this.updatedBy = updatedBy; - this.createdBy = createdBy; - this.updatedAt = updatedAt; - this.createdAt = createdAt; - this.passThrough = passThrough; - } - - public Merchant() { - this(Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - /** - * The name of the merchant - */ - @JsonIgnore - public JsonNullable name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional
address() { - return (Optional
) address; - } - - @JsonIgnore - public Optional ownerId() { - return ownerId; - } - - /** - * The main location ID of the merchant - */ - @JsonIgnore - public JsonNullable mainLocationId() { - return mainLocationId; - } - - /** - * Status of this merchant. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable status() { - return (JsonNullable) status; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> serviceCharges() { - return (Optional>) serviceCharges; - } - - /** - * language code according to ISO 639-1. For the United States - EN - */ - @JsonIgnore - public JsonNullable language() { - return language; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable customMappings() { - return (JsonNullable) customMappings; - } - - /** - * The user who last updated the object. - */ - @JsonIgnore - public JsonNullable updatedBy() { - return updatedBy; - } - - /** - * The user who created the object. - */ - @JsonIgnore - public JsonNullable createdBy() { - return createdBy; - } - - /** - * The date and time when the object was last updated. - */ - @JsonIgnore - public JsonNullable updatedAt() { - return updatedAt; - } - - /** - * The date and time when the object was created. - */ - @JsonIgnore - public JsonNullable createdAt() { - return createdAt; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public Merchant withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Merchant withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The name of the merchant - */ - public Merchant withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = JsonNullable.of(name); - return this; - } - - /** - * The name of the merchant - */ - public Merchant withName(JsonNullable name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Merchant withAddress(Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Merchant withAddress(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public Merchant withOwnerId(String ownerId) { - Utils.checkNotNull(ownerId, "ownerId"); - this.ownerId = Optional.ofNullable(ownerId); - return this; - } - - public Merchant withOwnerId(Optional ownerId) { - Utils.checkNotNull(ownerId, "ownerId"); - this.ownerId = ownerId; - return this; - } - - /** - * The main location ID of the merchant - */ - public Merchant withMainLocationId(String mainLocationId) { - Utils.checkNotNull(mainLocationId, "mainLocationId"); - this.mainLocationId = JsonNullable.of(mainLocationId); - return this; - } - - /** - * The main location ID of the merchant - */ - public Merchant withMainLocationId(JsonNullable mainLocationId) { - Utils.checkNotNull(mainLocationId, "mainLocationId"); - this.mainLocationId = mainLocationId; - return this; - } - - /** - * Status of this merchant. - */ - public Merchant withStatus(MerchantStatus status) { - Utils.checkNotNull(status, "status"); - this.status = JsonNullable.of(status); - return this; - } - - /** - * Status of this merchant. - */ - public Merchant withStatus(JsonNullable status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Merchant withServiceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - public Merchant withServiceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - /** - * language code according to ISO 639-1. For the United States - EN - */ - public Merchant withLanguage(String language) { - Utils.checkNotNull(language, "language"); - this.language = JsonNullable.of(language); - return this; - } - - /** - * language code according to ISO 639-1. For the United States - EN - */ - public Merchant withLanguage(JsonNullable language) { - Utils.checkNotNull(language, "language"); - this.language = language; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Merchant withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Merchant withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Merchant withCustomMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Merchant withCustomMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * The user who last updated the object. - */ - public Merchant withUpdatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Merchant withUpdatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Merchant withCreatedBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Merchant withCreatedBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Merchant withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Merchant withUpdatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Merchant withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Merchant withCreatedAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Merchant withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Merchant withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Merchant other = (Merchant) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.address, other.address) && - Objects.deepEquals(this.ownerId, other.ownerId) && - Objects.deepEquals(this.mainLocationId, other.mainLocationId) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.serviceCharges, other.serviceCharges) && - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.customMappings, other.customMappings) && - Objects.deepEquals(this.updatedBy, other.updatedBy) && - Objects.deepEquals(this.createdBy, other.createdBy) && - Objects.deepEquals(this.updatedAt, other.updatedAt) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - address, - ownerId, - mainLocationId, - status, - serviceCharges, - language, - currency, - customMappings, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(Merchant.class, - "id", id, - "name", name, - "address", address, - "ownerId", ownerId, - "mainLocationId", mainLocationId, - "status", status, - "serviceCharges", serviceCharges, - "language", language, - "currency", currency, - "customMappings", customMappings, - "updatedBy", updatedBy, - "createdBy", createdBy, - "updatedAt", updatedAt, - "createdAt", createdAt, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private JsonNullable name = JsonNullable.undefined(); - - private Optional address = Optional.empty(); - - private Optional ownerId = Optional.empty(); - - private JsonNullable mainLocationId = JsonNullable.undefined(); - - private JsonNullable status = JsonNullable.undefined(); - - private Optional> serviceCharges = Optional.empty(); - - private JsonNullable language = JsonNullable.undefined(); - - private JsonNullable currency = JsonNullable.undefined(); - - private JsonNullable customMappings = JsonNullable.undefined(); - - private JsonNullable updatedBy = JsonNullable.undefined(); - - private JsonNullable createdBy = JsonNullable.undefined(); - - private JsonNullable updatedAt = JsonNullable.undefined(); - - private JsonNullable createdAt = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The name of the merchant - */ - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = JsonNullable.of(name); - return this; - } - - /** - * The name of the merchant - */ - public Builder name(JsonNullable name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder address(Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Builder address(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public Builder ownerId(String ownerId) { - Utils.checkNotNull(ownerId, "ownerId"); - this.ownerId = Optional.ofNullable(ownerId); - return this; - } - - public Builder ownerId(Optional ownerId) { - Utils.checkNotNull(ownerId, "ownerId"); - this.ownerId = ownerId; - return this; - } - - /** - * The main location ID of the merchant - */ - public Builder mainLocationId(String mainLocationId) { - Utils.checkNotNull(mainLocationId, "mainLocationId"); - this.mainLocationId = JsonNullable.of(mainLocationId); - return this; - } - - /** - * The main location ID of the merchant - */ - public Builder mainLocationId(JsonNullable mainLocationId) { - Utils.checkNotNull(mainLocationId, "mainLocationId"); - this.mainLocationId = mainLocationId; - return this; - } - - /** - * Status of this merchant. - */ - public Builder status(MerchantStatus status) { - Utils.checkNotNull(status, "status"); - this.status = JsonNullable.of(status); - return this; - } - - /** - * Status of this merchant. - */ - public Builder status(JsonNullable status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Builder serviceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - public Builder serviceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - /** - * language code according to ISO 639-1. For the United States - EN - */ - public Builder language(String language) { - Utils.checkNotNull(language, "language"); - this.language = JsonNullable.of(language); - return this; - } - - /** - * language code according to ISO 639-1. For the United States - EN - */ - public Builder language(JsonNullable language) { - Utils.checkNotNull(language, "language"); - this.language = language; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public Merchant build() { - return new Merchant( - id, - name, - address, - ownerId, - mainLocationId, - status, - serviceCharges, - language, - currency, - customMappings, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/MerchantInput.java b/src/main/java/com/apideck/unify/models/components/MerchantInput.java deleted file mode 100644 index 60a2502..0000000 --- a/src/main/java/com/apideck/unify/models/components/MerchantInput.java +++ /dev/null @@ -1,561 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class MerchantInput { - - /** - * The name of the merchant - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private JsonNullable name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("address") - private Optional address; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("owner_id") - private Optional ownerId; - - /** - * The main location ID of the merchant - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("main_location_id") - private JsonNullable mainLocationId; - - /** - * Status of this merchant. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private JsonNullable status; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("service_charges") - private Optional> serviceCharges; - - /** - * language code according to ISO 639-1. For the United States - EN - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("language") - private JsonNullable language; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public MerchantInput( - @JsonProperty("name") JsonNullable name, - @JsonProperty("address") Optional address, - @JsonProperty("owner_id") Optional ownerId, - @JsonProperty("main_location_id") JsonNullable mainLocationId, - @JsonProperty("status") JsonNullable status, - @JsonProperty("service_charges") Optional> serviceCharges, - @JsonProperty("language") JsonNullable language, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(ownerId, "ownerId"); - Utils.checkNotNull(mainLocationId, "mainLocationId"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(serviceCharges, "serviceCharges"); - Utils.checkNotNull(language, "language"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(passThrough, "passThrough"); - this.name = name; - this.address = address; - this.ownerId = ownerId; - this.mainLocationId = mainLocationId; - this.status = status; - this.serviceCharges = serviceCharges; - this.language = language; - this.currency = currency; - this.passThrough = passThrough; - } - - public MerchantInput() { - this(JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * The name of the merchant - */ - @JsonIgnore - public JsonNullable name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional
address() { - return (Optional
) address; - } - - @JsonIgnore - public Optional ownerId() { - return ownerId; - } - - /** - * The main location ID of the merchant - */ - @JsonIgnore - public JsonNullable mainLocationId() { - return mainLocationId; - } - - /** - * Status of this merchant. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable status() { - return (JsonNullable) status; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> serviceCharges() { - return (Optional>) serviceCharges; - } - - /** - * language code according to ISO 639-1. For the United States - EN - */ - @JsonIgnore - public JsonNullable language() { - return language; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The name of the merchant - */ - public MerchantInput withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = JsonNullable.of(name); - return this; - } - - /** - * The name of the merchant - */ - public MerchantInput withName(JsonNullable name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public MerchantInput withAddress(Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public MerchantInput withAddress(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public MerchantInput withOwnerId(String ownerId) { - Utils.checkNotNull(ownerId, "ownerId"); - this.ownerId = Optional.ofNullable(ownerId); - return this; - } - - public MerchantInput withOwnerId(Optional ownerId) { - Utils.checkNotNull(ownerId, "ownerId"); - this.ownerId = ownerId; - return this; - } - - /** - * The main location ID of the merchant - */ - public MerchantInput withMainLocationId(String mainLocationId) { - Utils.checkNotNull(mainLocationId, "mainLocationId"); - this.mainLocationId = JsonNullable.of(mainLocationId); - return this; - } - - /** - * The main location ID of the merchant - */ - public MerchantInput withMainLocationId(JsonNullable mainLocationId) { - Utils.checkNotNull(mainLocationId, "mainLocationId"); - this.mainLocationId = mainLocationId; - return this; - } - - /** - * Status of this merchant. - */ - public MerchantInput withStatus(MerchantStatus status) { - Utils.checkNotNull(status, "status"); - this.status = JsonNullable.of(status); - return this; - } - - /** - * Status of this merchant. - */ - public MerchantInput withStatus(JsonNullable status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public MerchantInput withServiceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - public MerchantInput withServiceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - /** - * language code according to ISO 639-1. For the United States - EN - */ - public MerchantInput withLanguage(String language) { - Utils.checkNotNull(language, "language"); - this.language = JsonNullable.of(language); - return this; - } - - /** - * language code according to ISO 639-1. For the United States - EN - */ - public MerchantInput withLanguage(JsonNullable language) { - Utils.checkNotNull(language, "language"); - this.language = language; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public MerchantInput withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public MerchantInput withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public MerchantInput withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public MerchantInput withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MerchantInput other = (MerchantInput) o; - return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.address, other.address) && - Objects.deepEquals(this.ownerId, other.ownerId) && - Objects.deepEquals(this.mainLocationId, other.mainLocationId) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.serviceCharges, other.serviceCharges) && - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - address, - ownerId, - mainLocationId, - status, - serviceCharges, - language, - currency, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(MerchantInput.class, - "name", name, - "address", address, - "ownerId", ownerId, - "mainLocationId", mainLocationId, - "status", status, - "serviceCharges", serviceCharges, - "language", language, - "currency", currency, - "passThrough", passThrough); - } - - public final static class Builder { - - private JsonNullable name = JsonNullable.undefined(); - - private Optional address = Optional.empty(); - - private Optional ownerId = Optional.empty(); - - private JsonNullable mainLocationId = JsonNullable.undefined(); - - private JsonNullable status = JsonNullable.undefined(); - - private Optional> serviceCharges = Optional.empty(); - - private JsonNullable language = JsonNullable.undefined(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The name of the merchant - */ - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = JsonNullable.of(name); - return this; - } - - /** - * The name of the merchant - */ - public Builder name(JsonNullable name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder address(Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Builder address(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public Builder ownerId(String ownerId) { - Utils.checkNotNull(ownerId, "ownerId"); - this.ownerId = Optional.ofNullable(ownerId); - return this; - } - - public Builder ownerId(Optional ownerId) { - Utils.checkNotNull(ownerId, "ownerId"); - this.ownerId = ownerId; - return this; - } - - /** - * The main location ID of the merchant - */ - public Builder mainLocationId(String mainLocationId) { - Utils.checkNotNull(mainLocationId, "mainLocationId"); - this.mainLocationId = JsonNullable.of(mainLocationId); - return this; - } - - /** - * The main location ID of the merchant - */ - public Builder mainLocationId(JsonNullable mainLocationId) { - Utils.checkNotNull(mainLocationId, "mainLocationId"); - this.mainLocationId = mainLocationId; - return this; - } - - /** - * Status of this merchant. - */ - public Builder status(MerchantStatus status) { - Utils.checkNotNull(status, "status"); - this.status = JsonNullable.of(status); - return this; - } - - /** - * Status of this merchant. - */ - public Builder status(JsonNullable status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Builder serviceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - public Builder serviceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - /** - * language code according to ISO 639-1. For the United States - EN - */ - public Builder language(String language) { - Utils.checkNotNull(language, "language"); - this.language = JsonNullable.of(language); - return this; - } - - /** - * language code according to ISO 639-1. For the United States - EN - */ - public Builder language(JsonNullable language) { - Utils.checkNotNull(language, "language"); - this.language = language; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public MerchantInput build() { - return new MerchantInput( - name, - address, - ownerId, - mainLocationId, - status, - serviceCharges, - language, - currency, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/MerchantStatus.java b/src/main/java/com/apideck/unify/models/components/MerchantStatus.java deleted file mode 100644 index 2d6b0b8..0000000 --- a/src/main/java/com/apideck/unify/models/components/MerchantStatus.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * MerchantStatus - Status of this merchant. - */ -public enum MerchantStatus { - ACTIVE("active"), - INACTIVE("inactive"), - OTHER("other"); - - @JsonValue - private final String value; - - private MerchantStatus(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/Modifier.java b/src/main/java/com/apideck/unify/models/components/Modifier.java deleted file mode 100644 index 481e63b..0000000 --- a/src/main/java/com/apideck/unify/models/components/Modifier.java +++ /dev/null @@ -1,802 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Modifier { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("idempotency_key") - private Optional idempotencyKey; - - @JsonProperty("name") - private String name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("alternate_name") - private Optional alternateName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("price_amount") - private Optional priceAmount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonProperty("modifier_group_id") - private String modifierGroupId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("available") - private JsonNullable available; - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("custom_mappings") - private JsonNullable customMappings; - - /** - * The user who last updated the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_by") - private JsonNullable updatedBy; - - /** - * The user who created the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_by") - private JsonNullable createdBy; - - /** - * The date and time when the object was last updated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_at") - private JsonNullable updatedAt; - - /** - * The date and time when the object was created. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_at") - private JsonNullable createdAt; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public Modifier( - @JsonProperty("id") Optional id, - @JsonProperty("idempotency_key") Optional idempotencyKey, - @JsonProperty("name") String name, - @JsonProperty("alternate_name") Optional alternateName, - @JsonProperty("price_amount") Optional priceAmount, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("modifier_group_id") String modifierGroupId, - @JsonProperty("available") JsonNullable available, - @JsonProperty("custom_mappings") JsonNullable customMappings, - @JsonProperty("updated_by") JsonNullable updatedBy, - @JsonProperty("created_by") JsonNullable createdBy, - @JsonProperty("updated_at") JsonNullable updatedAt, - @JsonProperty("created_at") JsonNullable createdAt, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(alternateName, "alternateName"); - Utils.checkNotNull(priceAmount, "priceAmount"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - Utils.checkNotNull(available, "available"); - Utils.checkNotNull(customMappings, "customMappings"); - Utils.checkNotNull(updatedBy, "updatedBy"); - Utils.checkNotNull(createdBy, "createdBy"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(passThrough, "passThrough"); - this.id = id; - this.idempotencyKey = idempotencyKey; - this.name = name; - this.alternateName = alternateName; - this.priceAmount = priceAmount; - this.currency = currency; - this.modifierGroupId = modifierGroupId; - this.available = available; - this.customMappings = customMappings; - this.updatedBy = updatedBy; - this.createdBy = createdBy; - this.updatedAt = updatedAt; - this.createdAt = createdAt; - this.passThrough = passThrough; - } - - public Modifier( - String name, - String modifierGroupId) { - this(Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), JsonNullable.undefined(), modifierGroupId, JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonIgnore - public Optional idempotencyKey() { - return idempotencyKey; - } - - @JsonIgnore - public String name() { - return name; - } - - @JsonIgnore - public Optional alternateName() { - return alternateName; - } - - @JsonIgnore - public Optional priceAmount() { - return priceAmount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public String modifierGroupId() { - return modifierGroupId; - } - - @JsonIgnore - public JsonNullable available() { - return available; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable customMappings() { - return (JsonNullable) customMappings; - } - - /** - * The user who last updated the object. - */ - @JsonIgnore - public JsonNullable updatedBy() { - return updatedBy; - } - - /** - * The user who created the object. - */ - @JsonIgnore - public JsonNullable createdBy() { - return createdBy; - } - - /** - * The date and time when the object was last updated. - */ - @JsonIgnore - public JsonNullable updatedAt() { - return updatedAt; - } - - /** - * The date and time when the object was created. - */ - @JsonIgnore - public JsonNullable createdAt() { - return createdAt; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public Modifier withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Modifier withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Modifier withIdempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Modifier withIdempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public Modifier withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Modifier withAlternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public Modifier withAlternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public Modifier withPriceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public Modifier withPriceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Modifier withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Modifier withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Modifier withModifierGroupId(String modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = modifierGroupId; - return this; - } - - public Modifier withAvailable(boolean available) { - Utils.checkNotNull(available, "available"); - this.available = JsonNullable.of(available); - return this; - } - - public Modifier withAvailable(JsonNullable available) { - Utils.checkNotNull(available, "available"); - this.available = available; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Modifier withCustomMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Modifier withCustomMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * The user who last updated the object. - */ - public Modifier withUpdatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Modifier withUpdatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Modifier withCreatedBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Modifier withCreatedBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Modifier withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Modifier withUpdatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Modifier withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Modifier withCreatedAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Modifier withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Modifier withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Modifier other = (Modifier) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.idempotencyKey, other.idempotencyKey) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.alternateName, other.alternateName) && - Objects.deepEquals(this.priceAmount, other.priceAmount) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.modifierGroupId, other.modifierGroupId) && - Objects.deepEquals(this.available, other.available) && - Objects.deepEquals(this.customMappings, other.customMappings) && - Objects.deepEquals(this.updatedBy, other.updatedBy) && - Objects.deepEquals(this.createdBy, other.createdBy) && - Objects.deepEquals(this.updatedAt, other.updatedAt) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - idempotencyKey, - name, - alternateName, - priceAmount, - currency, - modifierGroupId, - available, - customMappings, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(Modifier.class, - "id", id, - "idempotencyKey", idempotencyKey, - "name", name, - "alternateName", alternateName, - "priceAmount", priceAmount, - "currency", currency, - "modifierGroupId", modifierGroupId, - "available", available, - "customMappings", customMappings, - "updatedBy", updatedBy, - "createdBy", createdBy, - "updatedAt", updatedAt, - "createdAt", createdAt, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional idempotencyKey = Optional.empty(); - - private String name; - - private Optional alternateName = Optional.empty(); - - private Optional priceAmount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private String modifierGroupId; - - private JsonNullable available = JsonNullable.undefined(); - - private JsonNullable customMappings = JsonNullable.undefined(); - - private JsonNullable updatedBy = JsonNullable.undefined(); - - private JsonNullable createdBy = JsonNullable.undefined(); - - private JsonNullable updatedAt = JsonNullable.undefined(); - - private JsonNullable createdAt = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder alternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public Builder alternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public Builder priceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public Builder priceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder modifierGroupId(String modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = modifierGroupId; - return this; - } - - public Builder available(boolean available) { - Utils.checkNotNull(available, "available"); - this.available = JsonNullable.of(available); - return this; - } - - public Builder available(JsonNullable available) { - Utils.checkNotNull(available, "available"); - this.available = available; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public Modifier build() { - return new Modifier( - id, - idempotencyKey, - name, - alternateName, - priceAmount, - currency, - modifierGroupId, - available, - customMappings, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ModifierGroup.java b/src/main/java/com/apideck/unify/models/components/ModifierGroup.java deleted file mode 100644 index e0b5fb9..0000000 --- a/src/main/java/com/apideck/unify/models/components/ModifierGroup.java +++ /dev/null @@ -1,911 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class ModifierGroup { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("alternate_name") - private Optional alternateName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("minimum_required") - private Optional minimumRequired; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("maximum_allowed") - private Optional maximumAllowed; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("selection_type") - private Optional selectionType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("present_at_all_locations") - private Optional presentAtAllLocations; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("modifiers") - private Optional> modifiers; - - /** - * Flag to indicate if the object is deleted. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("custom_mappings") - private JsonNullable customMappings; - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("row_version") - private JsonNullable rowVersion; - - /** - * The user who last updated the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_by") - private JsonNullable updatedBy; - - /** - * The user who created the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_by") - private JsonNullable createdBy; - - /** - * The date and time when the object was last updated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_at") - private JsonNullable updatedAt; - - /** - * The date and time when the object was created. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_at") - private JsonNullable createdAt; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public ModifierGroup( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("alternate_name") Optional alternateName, - @JsonProperty("minimum_required") Optional minimumRequired, - @JsonProperty("maximum_allowed") Optional maximumAllowed, - @JsonProperty("selection_type") Optional selectionType, - @JsonProperty("present_at_all_locations") Optional presentAtAllLocations, - @JsonProperty("modifiers") Optional> modifiers, - @JsonProperty("deleted") JsonNullable deleted, - @JsonProperty("custom_mappings") JsonNullable customMappings, - @JsonProperty("row_version") JsonNullable rowVersion, - @JsonProperty("updated_by") JsonNullable updatedBy, - @JsonProperty("created_by") JsonNullable createdBy, - @JsonProperty("updated_at") JsonNullable updatedAt, - @JsonProperty("created_at") JsonNullable createdAt, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(alternateName, "alternateName"); - Utils.checkNotNull(minimumRequired, "minimumRequired"); - Utils.checkNotNull(maximumAllowed, "maximumAllowed"); - Utils.checkNotNull(selectionType, "selectionType"); - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - Utils.checkNotNull(modifiers, "modifiers"); - Utils.checkNotNull(deleted, "deleted"); - Utils.checkNotNull(customMappings, "customMappings"); - Utils.checkNotNull(rowVersion, "rowVersion"); - Utils.checkNotNull(updatedBy, "updatedBy"); - Utils.checkNotNull(createdBy, "createdBy"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(passThrough, "passThrough"); - this.id = id; - this.name = name; - this.alternateName = alternateName; - this.minimumRequired = minimumRequired; - this.maximumAllowed = maximumAllowed; - this.selectionType = selectionType; - this.presentAtAllLocations = presentAtAllLocations; - this.modifiers = modifiers; - this.deleted = deleted; - this.customMappings = customMappings; - this.rowVersion = rowVersion; - this.updatedBy = updatedBy; - this.createdBy = createdBy; - this.updatedAt = updatedAt; - this.createdAt = createdAt; - this.passThrough = passThrough; - } - - public ModifierGroup() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional alternateName() { - return alternateName; - } - - @JsonIgnore - public Optional minimumRequired() { - return minimumRequired; - } - - @JsonIgnore - public Optional maximumAllowed() { - return maximumAllowed; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional selectionType() { - return (Optional) selectionType; - } - - @JsonIgnore - public Optional presentAtAllLocations() { - return presentAtAllLocations; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> modifiers() { - return (Optional>) modifiers; - } - - /** - * Flag to indicate if the object is deleted. - */ - @JsonIgnore - public JsonNullable deleted() { - return deleted; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable customMappings() { - return (JsonNullable) customMappings; - } - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - @JsonIgnore - public JsonNullable rowVersion() { - return rowVersion; - } - - /** - * The user who last updated the object. - */ - @JsonIgnore - public JsonNullable updatedBy() { - return updatedBy; - } - - /** - * The user who created the object. - */ - @JsonIgnore - public JsonNullable createdBy() { - return createdBy; - } - - /** - * The date and time when the object was last updated. - */ - @JsonIgnore - public JsonNullable updatedAt() { - return updatedAt; - } - - /** - * The date and time when the object was created. - */ - @JsonIgnore - public JsonNullable createdAt() { - return createdAt; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public ModifierGroup withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public ModifierGroup withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public ModifierGroup withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public ModifierGroup withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public ModifierGroup withAlternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public ModifierGroup withAlternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public ModifierGroup withMinimumRequired(long minimumRequired) { - Utils.checkNotNull(minimumRequired, "minimumRequired"); - this.minimumRequired = Optional.ofNullable(minimumRequired); - return this; - } - - public ModifierGroup withMinimumRequired(Optional minimumRequired) { - Utils.checkNotNull(minimumRequired, "minimumRequired"); - this.minimumRequired = minimumRequired; - return this; - } - - public ModifierGroup withMaximumAllowed(long maximumAllowed) { - Utils.checkNotNull(maximumAllowed, "maximumAllowed"); - this.maximumAllowed = Optional.ofNullable(maximumAllowed); - return this; - } - - public ModifierGroup withMaximumAllowed(Optional maximumAllowed) { - Utils.checkNotNull(maximumAllowed, "maximumAllowed"); - this.maximumAllowed = maximumAllowed; - return this; - } - - public ModifierGroup withSelectionType(IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers selectionType) { - Utils.checkNotNull(selectionType, "selectionType"); - this.selectionType = Optional.ofNullable(selectionType); - return this; - } - - public ModifierGroup withSelectionType(Optional selectionType) { - Utils.checkNotNull(selectionType, "selectionType"); - this.selectionType = selectionType; - return this; - } - - public ModifierGroup withPresentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public ModifierGroup withPresentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - public ModifierGroup withModifiers(List modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = Optional.ofNullable(modifiers); - return this; - } - - public ModifierGroup withModifiers(Optional> modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = modifiers; - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public ModifierGroup withDeleted(boolean deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = JsonNullable.of(deleted); - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public ModifierGroup withDeleted(JsonNullable deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = deleted; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public ModifierGroup withCustomMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public ModifierGroup withCustomMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - public ModifierGroup withRowVersion(String rowVersion) { - Utils.checkNotNull(rowVersion, "rowVersion"); - this.rowVersion = JsonNullable.of(rowVersion); - return this; - } - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - public ModifierGroup withRowVersion(JsonNullable rowVersion) { - Utils.checkNotNull(rowVersion, "rowVersion"); - this.rowVersion = rowVersion; - return this; - } - - /** - * The user who last updated the object. - */ - public ModifierGroup withUpdatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public ModifierGroup withUpdatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public ModifierGroup withCreatedBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public ModifierGroup withCreatedBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public ModifierGroup withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public ModifierGroup withUpdatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public ModifierGroup withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public ModifierGroup withCreatedAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public ModifierGroup withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public ModifierGroup withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModifierGroup other = (ModifierGroup) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.alternateName, other.alternateName) && - Objects.deepEquals(this.minimumRequired, other.minimumRequired) && - Objects.deepEquals(this.maximumAllowed, other.maximumAllowed) && - Objects.deepEquals(this.selectionType, other.selectionType) && - Objects.deepEquals(this.presentAtAllLocations, other.presentAtAllLocations) && - Objects.deepEquals(this.modifiers, other.modifiers) && - Objects.deepEquals(this.deleted, other.deleted) && - Objects.deepEquals(this.customMappings, other.customMappings) && - Objects.deepEquals(this.rowVersion, other.rowVersion) && - Objects.deepEquals(this.updatedBy, other.updatedBy) && - Objects.deepEquals(this.createdBy, other.createdBy) && - Objects.deepEquals(this.updatedAt, other.updatedAt) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - alternateName, - minimumRequired, - maximumAllowed, - selectionType, - presentAtAllLocations, - modifiers, - deleted, - customMappings, - rowVersion, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(ModifierGroup.class, - "id", id, - "name", name, - "alternateName", alternateName, - "minimumRequired", minimumRequired, - "maximumAllowed", maximumAllowed, - "selectionType", selectionType, - "presentAtAllLocations", presentAtAllLocations, - "modifiers", modifiers, - "deleted", deleted, - "customMappings", customMappings, - "rowVersion", rowVersion, - "updatedBy", updatedBy, - "createdBy", createdBy, - "updatedAt", updatedAt, - "createdAt", createdAt, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional alternateName = Optional.empty(); - - private Optional minimumRequired = Optional.empty(); - - private Optional maximumAllowed = Optional.empty(); - - private Optional selectionType = Optional.empty(); - - private Optional presentAtAllLocations = Optional.empty(); - - private Optional> modifiers = Optional.empty(); - - private JsonNullable deleted = JsonNullable.undefined(); - - private JsonNullable customMappings = JsonNullable.undefined(); - - private JsonNullable rowVersion = JsonNullable.undefined(); - - private JsonNullable updatedBy = JsonNullable.undefined(); - - private JsonNullable createdBy = JsonNullable.undefined(); - - private JsonNullable updatedAt = JsonNullable.undefined(); - - private JsonNullable createdAt = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder alternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public Builder alternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public Builder minimumRequired(long minimumRequired) { - Utils.checkNotNull(minimumRequired, "minimumRequired"); - this.minimumRequired = Optional.ofNullable(minimumRequired); - return this; - } - - public Builder minimumRequired(Optional minimumRequired) { - Utils.checkNotNull(minimumRequired, "minimumRequired"); - this.minimumRequired = minimumRequired; - return this; - } - - public Builder maximumAllowed(long maximumAllowed) { - Utils.checkNotNull(maximumAllowed, "maximumAllowed"); - this.maximumAllowed = Optional.ofNullable(maximumAllowed); - return this; - } - - public Builder maximumAllowed(Optional maximumAllowed) { - Utils.checkNotNull(maximumAllowed, "maximumAllowed"); - this.maximumAllowed = maximumAllowed; - return this; - } - - public Builder selectionType(IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers selectionType) { - Utils.checkNotNull(selectionType, "selectionType"); - this.selectionType = Optional.ofNullable(selectionType); - return this; - } - - public Builder selectionType(Optional selectionType) { - Utils.checkNotNull(selectionType, "selectionType"); - this.selectionType = selectionType; - return this; - } - - public Builder presentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public Builder presentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - public Builder modifiers(List modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = Optional.ofNullable(modifiers); - return this; - } - - public Builder modifiers(Optional> modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = modifiers; - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public Builder deleted(boolean deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = JsonNullable.of(deleted); - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public Builder deleted(JsonNullable deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = deleted; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - public Builder rowVersion(String rowVersion) { - Utils.checkNotNull(rowVersion, "rowVersion"); - this.rowVersion = JsonNullable.of(rowVersion); - return this; - } - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - public Builder rowVersion(JsonNullable rowVersion) { - Utils.checkNotNull(rowVersion, "rowVersion"); - this.rowVersion = rowVersion; - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public ModifierGroup build() { - return new ModifierGroup( - id, - name, - alternateName, - minimumRequired, - maximumAllowed, - selectionType, - presentAtAllLocations, - modifiers, - deleted, - customMappings, - rowVersion, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ModifierGroupFilter.java b/src/main/java/com/apideck/unify/models/components/ModifierGroupFilter.java deleted file mode 100644 index 0107215..0000000 --- a/src/main/java/com/apideck/unify/models/components/ModifierGroupFilter.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class ModifierGroupFilter { - - /** - * Id of the job to filter on - */ - @SpeakeasyMetadata("queryParam:name=modifier_group_id") - private Optional modifierGroupId; - - @JsonCreator - public ModifierGroupFilter( - Optional modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = modifierGroupId; - } - - public ModifierGroupFilter() { - this(Optional.empty()); - } - - /** - * Id of the job to filter on - */ - @JsonIgnore - public Optional modifierGroupId() { - return modifierGroupId; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Id of the job to filter on - */ - public ModifierGroupFilter withModifierGroupId(String modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = Optional.ofNullable(modifierGroupId); - return this; - } - - /** - * Id of the job to filter on - */ - public ModifierGroupFilter withModifierGroupId(Optional modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = modifierGroupId; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModifierGroupFilter other = (ModifierGroupFilter) o; - return - Objects.deepEquals(this.modifierGroupId, other.modifierGroupId); - } - - @Override - public int hashCode() { - return Objects.hash( - modifierGroupId); - } - - @Override - public String toString() { - return Utils.toString(ModifierGroupFilter.class, - "modifierGroupId", modifierGroupId); - } - - public final static class Builder { - - private Optional modifierGroupId = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * Id of the job to filter on - */ - public Builder modifierGroupId(String modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = Optional.ofNullable(modifierGroupId); - return this; - } - - /** - * Id of the job to filter on - */ - public Builder modifierGroupId(Optional modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = modifierGroupId; - return this; - } - - public ModifierGroupFilter build() { - return new ModifierGroupFilter( - modifierGroupId); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ModifierGroupInput.java b/src/main/java/com/apideck/unify/models/components/ModifierGroupInput.java deleted file mode 100644 index c7b264c..0000000 --- a/src/main/java/com/apideck/unify/models/components/ModifierGroupInput.java +++ /dev/null @@ -1,549 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class ModifierGroupInput { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("alternate_name") - private Optional alternateName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("minimum_required") - private Optional minimumRequired; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("maximum_allowed") - private Optional maximumAllowed; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("selection_type") - private Optional selectionType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("present_at_all_locations") - private Optional presentAtAllLocations; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("modifiers") - private Optional> modifiers; - - /** - * Flag to indicate if the object is deleted. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("row_version") - private JsonNullable rowVersion; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public ModifierGroupInput( - @JsonProperty("name") Optional name, - @JsonProperty("alternate_name") Optional alternateName, - @JsonProperty("minimum_required") Optional minimumRequired, - @JsonProperty("maximum_allowed") Optional maximumAllowed, - @JsonProperty("selection_type") Optional selectionType, - @JsonProperty("present_at_all_locations") Optional presentAtAllLocations, - @JsonProperty("modifiers") Optional> modifiers, - @JsonProperty("deleted") JsonNullable deleted, - @JsonProperty("row_version") JsonNullable rowVersion, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(alternateName, "alternateName"); - Utils.checkNotNull(minimumRequired, "minimumRequired"); - Utils.checkNotNull(maximumAllowed, "maximumAllowed"); - Utils.checkNotNull(selectionType, "selectionType"); - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - Utils.checkNotNull(modifiers, "modifiers"); - Utils.checkNotNull(deleted, "deleted"); - Utils.checkNotNull(rowVersion, "rowVersion"); - Utils.checkNotNull(passThrough, "passThrough"); - this.name = name; - this.alternateName = alternateName; - this.minimumRequired = minimumRequired; - this.maximumAllowed = maximumAllowed; - this.selectionType = selectionType; - this.presentAtAllLocations = presentAtAllLocations; - this.modifiers = modifiers; - this.deleted = deleted; - this.rowVersion = rowVersion; - this.passThrough = passThrough; - } - - public ModifierGroupInput() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional alternateName() { - return alternateName; - } - - @JsonIgnore - public Optional minimumRequired() { - return minimumRequired; - } - - @JsonIgnore - public Optional maximumAllowed() { - return maximumAllowed; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional selectionType() { - return (Optional) selectionType; - } - - @JsonIgnore - public Optional presentAtAllLocations() { - return presentAtAllLocations; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> modifiers() { - return (Optional>) modifiers; - } - - /** - * Flag to indicate if the object is deleted. - */ - @JsonIgnore - public JsonNullable deleted() { - return deleted; - } - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - @JsonIgnore - public JsonNullable rowVersion() { - return rowVersion; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - public ModifierGroupInput withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public ModifierGroupInput withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public ModifierGroupInput withAlternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public ModifierGroupInput withAlternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public ModifierGroupInput withMinimumRequired(long minimumRequired) { - Utils.checkNotNull(minimumRequired, "minimumRequired"); - this.minimumRequired = Optional.ofNullable(minimumRequired); - return this; - } - - public ModifierGroupInput withMinimumRequired(Optional minimumRequired) { - Utils.checkNotNull(minimumRequired, "minimumRequired"); - this.minimumRequired = minimumRequired; - return this; - } - - public ModifierGroupInput withMaximumAllowed(long maximumAllowed) { - Utils.checkNotNull(maximumAllowed, "maximumAllowed"); - this.maximumAllowed = Optional.ofNullable(maximumAllowed); - return this; - } - - public ModifierGroupInput withMaximumAllowed(Optional maximumAllowed) { - Utils.checkNotNull(maximumAllowed, "maximumAllowed"); - this.maximumAllowed = maximumAllowed; - return this; - } - - public ModifierGroupInput withSelectionType(IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers selectionType) { - Utils.checkNotNull(selectionType, "selectionType"); - this.selectionType = Optional.ofNullable(selectionType); - return this; - } - - public ModifierGroupInput withSelectionType(Optional selectionType) { - Utils.checkNotNull(selectionType, "selectionType"); - this.selectionType = selectionType; - return this; - } - - public ModifierGroupInput withPresentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public ModifierGroupInput withPresentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - public ModifierGroupInput withModifiers(List modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = Optional.ofNullable(modifiers); - return this; - } - - public ModifierGroupInput withModifiers(Optional> modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = modifiers; - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public ModifierGroupInput withDeleted(boolean deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = JsonNullable.of(deleted); - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public ModifierGroupInput withDeleted(JsonNullable deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = deleted; - return this; - } - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - public ModifierGroupInput withRowVersion(String rowVersion) { - Utils.checkNotNull(rowVersion, "rowVersion"); - this.rowVersion = JsonNullable.of(rowVersion); - return this; - } - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - public ModifierGroupInput withRowVersion(JsonNullable rowVersion) { - Utils.checkNotNull(rowVersion, "rowVersion"); - this.rowVersion = rowVersion; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public ModifierGroupInput withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public ModifierGroupInput withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModifierGroupInput other = (ModifierGroupInput) o; - return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.alternateName, other.alternateName) && - Objects.deepEquals(this.minimumRequired, other.minimumRequired) && - Objects.deepEquals(this.maximumAllowed, other.maximumAllowed) && - Objects.deepEquals(this.selectionType, other.selectionType) && - Objects.deepEquals(this.presentAtAllLocations, other.presentAtAllLocations) && - Objects.deepEquals(this.modifiers, other.modifiers) && - Objects.deepEquals(this.deleted, other.deleted) && - Objects.deepEquals(this.rowVersion, other.rowVersion) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - alternateName, - minimumRequired, - maximumAllowed, - selectionType, - presentAtAllLocations, - modifiers, - deleted, - rowVersion, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(ModifierGroupInput.class, - "name", name, - "alternateName", alternateName, - "minimumRequired", minimumRequired, - "maximumAllowed", maximumAllowed, - "selectionType", selectionType, - "presentAtAllLocations", presentAtAllLocations, - "modifiers", modifiers, - "deleted", deleted, - "rowVersion", rowVersion, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional name = Optional.empty(); - - private Optional alternateName = Optional.empty(); - - private Optional minimumRequired = Optional.empty(); - - private Optional maximumAllowed = Optional.empty(); - - private Optional selectionType = Optional.empty(); - - private Optional presentAtAllLocations = Optional.empty(); - - private Optional> modifiers = Optional.empty(); - - private JsonNullable deleted = JsonNullable.undefined(); - - private JsonNullable rowVersion = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder alternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public Builder alternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public Builder minimumRequired(long minimumRequired) { - Utils.checkNotNull(minimumRequired, "minimumRequired"); - this.minimumRequired = Optional.ofNullable(minimumRequired); - return this; - } - - public Builder minimumRequired(Optional minimumRequired) { - Utils.checkNotNull(minimumRequired, "minimumRequired"); - this.minimumRequired = minimumRequired; - return this; - } - - public Builder maximumAllowed(long maximumAllowed) { - Utils.checkNotNull(maximumAllowed, "maximumAllowed"); - this.maximumAllowed = Optional.ofNullable(maximumAllowed); - return this; - } - - public Builder maximumAllowed(Optional maximumAllowed) { - Utils.checkNotNull(maximumAllowed, "maximumAllowed"); - this.maximumAllowed = maximumAllowed; - return this; - } - - public Builder selectionType(IndicatesWhetherMultipleOptionsFromTheModifierGroupCanBeAppliedToASingleOrMultipleModifiers selectionType) { - Utils.checkNotNull(selectionType, "selectionType"); - this.selectionType = Optional.ofNullable(selectionType); - return this; - } - - public Builder selectionType(Optional selectionType) { - Utils.checkNotNull(selectionType, "selectionType"); - this.selectionType = selectionType; - return this; - } - - public Builder presentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public Builder presentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - public Builder modifiers(List modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = Optional.ofNullable(modifiers); - return this; - } - - public Builder modifiers(Optional> modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = modifiers; - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public Builder deleted(boolean deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = JsonNullable.of(deleted); - return this; - } - - /** - * Flag to indicate if the object is deleted. - */ - public Builder deleted(JsonNullable deleted) { - Utils.checkNotNull(deleted, "deleted"); - this.deleted = deleted; - return this; - } - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - public Builder rowVersion(String rowVersion) { - Utils.checkNotNull(rowVersion, "rowVersion"); - this.rowVersion = JsonNullable.of(rowVersion); - return this; - } - - /** - * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. - */ - public Builder rowVersion(JsonNullable rowVersion) { - Utils.checkNotNull(rowVersion, "rowVersion"); - this.rowVersion = rowVersion; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public ModifierGroupInput build() { - return new ModifierGroupInput( - name, - alternateName, - minimumRequired, - maximumAllowed, - selectionType, - presentAtAllLocations, - modifiers, - deleted, - rowVersion, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ModifierGroups.java b/src/main/java/com/apideck/unify/models/components/ModifierGroups.java deleted file mode 100644 index b2b97a3..0000000 --- a/src/main/java/com/apideck/unify/models/components/ModifierGroups.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class ModifierGroups { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonCreator - public ModifierGroups( - @JsonProperty("id") Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - } - - public ModifierGroups() { - this(Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public ModifierGroups withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public ModifierGroups withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModifierGroups other = (ModifierGroups) o; - return - Objects.deepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return Objects.hash( - id); - } - - @Override - public String toString() { - return Utils.toString(ModifierGroups.class, - "id", id); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public ModifierGroups build() { - return new ModifierGroups( - id); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ModifierInput.java b/src/main/java/com/apideck/unify/models/components/ModifierInput.java deleted file mode 100644 index dcfee09..0000000 --- a/src/main/java/com/apideck/unify/models/components/ModifierInput.java +++ /dev/null @@ -1,440 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class ModifierInput { - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("idempotency_key") - private Optional idempotencyKey; - - @JsonProperty("name") - private String name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("alternate_name") - private Optional alternateName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("price_amount") - private Optional priceAmount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonProperty("modifier_group_id") - private String modifierGroupId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("available") - private JsonNullable available; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public ModifierInput( - @JsonProperty("idempotency_key") Optional idempotencyKey, - @JsonProperty("name") String name, - @JsonProperty("alternate_name") Optional alternateName, - @JsonProperty("price_amount") Optional priceAmount, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("modifier_group_id") String modifierGroupId, - @JsonProperty("available") JsonNullable available, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(alternateName, "alternateName"); - Utils.checkNotNull(priceAmount, "priceAmount"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - Utils.checkNotNull(available, "available"); - Utils.checkNotNull(passThrough, "passThrough"); - this.idempotencyKey = idempotencyKey; - this.name = name; - this.alternateName = alternateName; - this.priceAmount = priceAmount; - this.currency = currency; - this.modifierGroupId = modifierGroupId; - this.available = available; - this.passThrough = passThrough; - } - - public ModifierInput( - String name, - String modifierGroupId) { - this(Optional.empty(), name, Optional.empty(), Optional.empty(), JsonNullable.undefined(), modifierGroupId, JsonNullable.undefined(), Optional.empty()); - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonIgnore - public Optional idempotencyKey() { - return idempotencyKey; - } - - @JsonIgnore - public String name() { - return name; - } - - @JsonIgnore - public Optional alternateName() { - return alternateName; - } - - @JsonIgnore - public Optional priceAmount() { - return priceAmount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public String modifierGroupId() { - return modifierGroupId; - } - - @JsonIgnore - public JsonNullable available() { - return available; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public ModifierInput withIdempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public ModifierInput withIdempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public ModifierInput withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public ModifierInput withAlternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public ModifierInput withAlternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public ModifierInput withPriceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public ModifierInput withPriceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public ModifierInput withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public ModifierInput withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public ModifierInput withModifierGroupId(String modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = modifierGroupId; - return this; - } - - public ModifierInput withAvailable(boolean available) { - Utils.checkNotNull(available, "available"); - this.available = JsonNullable.of(available); - return this; - } - - public ModifierInput withAvailable(JsonNullable available) { - Utils.checkNotNull(available, "available"); - this.available = available; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public ModifierInput withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public ModifierInput withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModifierInput other = (ModifierInput) o; - return - Objects.deepEquals(this.idempotencyKey, other.idempotencyKey) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.alternateName, other.alternateName) && - Objects.deepEquals(this.priceAmount, other.priceAmount) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.modifierGroupId, other.modifierGroupId) && - Objects.deepEquals(this.available, other.available) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - idempotencyKey, - name, - alternateName, - priceAmount, - currency, - modifierGroupId, - available, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(ModifierInput.class, - "idempotencyKey", idempotencyKey, - "name", name, - "alternateName", alternateName, - "priceAmount", priceAmount, - "currency", currency, - "modifierGroupId", modifierGroupId, - "available", available, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional idempotencyKey = Optional.empty(); - - private String name; - - private Optional alternateName = Optional.empty(); - - private Optional priceAmount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private String modifierGroupId; - - private JsonNullable available = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder alternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public Builder alternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public Builder priceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public Builder priceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder modifierGroupId(String modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = modifierGroupId; - return this; - } - - public Builder available(boolean available) { - Utils.checkNotNull(available, "available"); - this.available = JsonNullable.of(available); - return this; - } - - public Builder available(JsonNullable available) { - Utils.checkNotNull(available, "available"); - this.available = available; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public ModifierInput build() { - return new ModifierInput( - idempotencyKey, - name, - alternateName, - priceAmount, - currency, - modifierGroupId, - available, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Modifiers.java b/src/main/java/com/apideck/unify/models/components/Modifiers.java deleted file mode 100644 index 67f9e0e..0000000 --- a/src/main/java/com/apideck/unify/models/components/Modifiers.java +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Modifiers { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("alternate_name") - private Optional alternateName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("price_amount") - private Optional priceAmount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("available") - private JsonNullable available; - - @JsonCreator - public Modifiers( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("alternate_name") Optional alternateName, - @JsonProperty("price_amount") Optional priceAmount, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("available") JsonNullable available) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(alternateName, "alternateName"); - Utils.checkNotNull(priceAmount, "priceAmount"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(available, "available"); - this.id = id; - this.name = name; - this.alternateName = alternateName; - this.priceAmount = priceAmount; - this.currency = currency; - this.available = available; - } - - public Modifiers() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined()); - } - - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional alternateName() { - return alternateName; - } - - @JsonIgnore - public Optional priceAmount() { - return priceAmount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public JsonNullable available() { - return available; - } - - public final static Builder builder() { - return new Builder(); - } - - public Modifiers withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Modifiers withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Modifiers withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Modifiers withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Modifiers withAlternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public Modifiers withAlternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public Modifiers withPriceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public Modifiers withPriceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Modifiers withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Modifiers withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Modifiers withAvailable(boolean available) { - Utils.checkNotNull(available, "available"); - this.available = JsonNullable.of(available); - return this; - } - - public Modifiers withAvailable(JsonNullable available) { - Utils.checkNotNull(available, "available"); - this.available = available; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Modifiers other = (Modifiers) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.alternateName, other.alternateName) && - Objects.deepEquals(this.priceAmount, other.priceAmount) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.available, other.available); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - alternateName, - priceAmount, - currency, - available); - } - - @Override - public String toString() { - return Utils.toString(Modifiers.class, - "id", id, - "name", name, - "alternateName", alternateName, - "priceAmount", priceAmount, - "currency", currency, - "available", available); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional alternateName = Optional.empty(); - - private Optional priceAmount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private JsonNullable available = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder alternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public Builder alternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public Builder priceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public Builder priceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder available(boolean available) { - Utils.checkNotNull(available, "available"); - this.available = JsonNullable.of(available); - return this; - } - - public Builder available(JsonNullable available) { - Utils.checkNotNull(available, "available"); - this.available = available; - return this; - } - - public Modifiers build() { - return new Modifiers( - id, - name, - alternateName, - priceAmount, - currency, - available); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Order.java b/src/main/java/com/apideck/unify/models/components/Order.java deleted file mode 100644 index daee4d7..0000000 --- a/src/main/java/com/apideck/unify/models/components/Order.java +++ /dev/null @@ -1,2183 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Order { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("idempotency_key") - private Optional idempotencyKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("order_number") - private Optional orderNumber; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("order_date") - private JsonNullable orderDate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("closed_date") - private JsonNullable closedDate; - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference_id") - private JsonNullable referenceId; - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - /** - * Is this order paid or not? - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("payment_status") - private Optional paymentStatus; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("note") - private Optional note; - - @JsonProperty("merchant_id") - private String merchantId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("customer_id") - private Optional customerId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("employee_id") - private Optional employeeId; - - @JsonProperty("location_id") - private String locationId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("order_type_id") - private Optional orderTypeId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("table") - private Optional table; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("seat") - private Optional seat; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_amount") - private JsonNullable totalAmount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_tip") - private JsonNullable totalTip; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_tax") - private JsonNullable totalTax; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_discount") - private JsonNullable totalDiscount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_refund") - private JsonNullable totalRefund; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_service_charge") - private JsonNullable totalServiceCharge; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("refunded") - private Optional refunded; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("customers") - private Optional> customers; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("fulfillments") - private Optional> fulfillments; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("line_items") - private Optional> lineItems; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("payments") - private Optional> payments; - - /** - * Optional service charges or gratuity tip applied to the order. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("service_charges") - private Optional> serviceCharges; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("refunds") - private Optional> refunds; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("taxes") - private Optional> taxes; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("discounts") - private Optional> discounts; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tenders") - private Optional> tenders; - - /** - * Source of order. Indicates the way that the order was placed. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("source") - private JsonNullable source; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("voided") - private Optional voided; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("voided_at") - private Optional voidedAt; - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("custom_mappings") - private JsonNullable customMappings; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private JsonNullable version; - - /** - * The user who last updated the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_by") - private JsonNullable updatedBy; - - /** - * The user who created the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_by") - private JsonNullable createdBy; - - /** - * The date and time when the object was last updated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_at") - private JsonNullable updatedAt; - - /** - * The date and time when the object was created. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_at") - private JsonNullable createdAt; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public Order( - @JsonProperty("id") Optional id, - @JsonProperty("idempotency_key") Optional idempotencyKey, - @JsonProperty("order_number") Optional orderNumber, - @JsonProperty("order_date") JsonNullable orderDate, - @JsonProperty("closed_date") JsonNullable closedDate, - @JsonProperty("reference_id") JsonNullable referenceId, - @JsonProperty("status") Optional status, - @JsonProperty("payment_status") Optional paymentStatus, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("title") Optional title, - @JsonProperty("note") Optional note, - @JsonProperty("merchant_id") String merchantId, - @JsonProperty("customer_id") Optional customerId, - @JsonProperty("employee_id") Optional employeeId, - @JsonProperty("location_id") String locationId, - @JsonProperty("order_type_id") Optional orderTypeId, - @JsonProperty("table") Optional table, - @JsonProperty("seat") Optional seat, - @JsonProperty("total_amount") JsonNullable totalAmount, - @JsonProperty("total_tip") JsonNullable totalTip, - @JsonProperty("total_tax") JsonNullable totalTax, - @JsonProperty("total_discount") JsonNullable totalDiscount, - @JsonProperty("total_refund") JsonNullable totalRefund, - @JsonProperty("total_service_charge") JsonNullable totalServiceCharge, - @JsonProperty("refunded") Optional refunded, - @JsonProperty("customers") Optional> customers, - @JsonProperty("fulfillments") Optional> fulfillments, - @JsonProperty("line_items") Optional> lineItems, - @JsonProperty("payments") Optional> payments, - @JsonProperty("service_charges") Optional> serviceCharges, - @JsonProperty("refunds") Optional> refunds, - @JsonProperty("taxes") Optional> taxes, - @JsonProperty("discounts") Optional> discounts, - @JsonProperty("tenders") Optional> tenders, - @JsonProperty("source") JsonNullable source, - @JsonProperty("voided") Optional voided, - @JsonProperty("voided_at") Optional voidedAt, - @JsonProperty("custom_mappings") JsonNullable customMappings, - @JsonProperty("version") JsonNullable version, - @JsonProperty("updated_by") JsonNullable updatedBy, - @JsonProperty("created_by") JsonNullable createdBy, - @JsonProperty("updated_at") JsonNullable updatedAt, - @JsonProperty("created_at") JsonNullable createdAt, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - Utils.checkNotNull(orderNumber, "orderNumber"); - Utils.checkNotNull(orderDate, "orderDate"); - Utils.checkNotNull(closedDate, "closedDate"); - Utils.checkNotNull(referenceId, "referenceId"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(paymentStatus, "paymentStatus"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(note, "note"); - Utils.checkNotNull(merchantId, "merchantId"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(employeeId, "employeeId"); - Utils.checkNotNull(locationId, "locationId"); - Utils.checkNotNull(orderTypeId, "orderTypeId"); - Utils.checkNotNull(table, "table"); - Utils.checkNotNull(seat, "seat"); - Utils.checkNotNull(totalAmount, "totalAmount"); - Utils.checkNotNull(totalTip, "totalTip"); - Utils.checkNotNull(totalTax, "totalTax"); - Utils.checkNotNull(totalDiscount, "totalDiscount"); - Utils.checkNotNull(totalRefund, "totalRefund"); - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - Utils.checkNotNull(refunded, "refunded"); - Utils.checkNotNull(customers, "customers"); - Utils.checkNotNull(fulfillments, "fulfillments"); - Utils.checkNotNull(lineItems, "lineItems"); - Utils.checkNotNull(payments, "payments"); - Utils.checkNotNull(serviceCharges, "serviceCharges"); - Utils.checkNotNull(refunds, "refunds"); - Utils.checkNotNull(taxes, "taxes"); - Utils.checkNotNull(discounts, "discounts"); - Utils.checkNotNull(tenders, "tenders"); - Utils.checkNotNull(source, "source"); - Utils.checkNotNull(voided, "voided"); - Utils.checkNotNull(voidedAt, "voidedAt"); - Utils.checkNotNull(customMappings, "customMappings"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(updatedBy, "updatedBy"); - Utils.checkNotNull(createdBy, "createdBy"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(passThrough, "passThrough"); - this.id = id; - this.idempotencyKey = idempotencyKey; - this.orderNumber = orderNumber; - this.orderDate = orderDate; - this.closedDate = closedDate; - this.referenceId = referenceId; - this.status = status; - this.paymentStatus = paymentStatus; - this.currency = currency; - this.title = title; - this.note = note; - this.merchantId = merchantId; - this.customerId = customerId; - this.employeeId = employeeId; - this.locationId = locationId; - this.orderTypeId = orderTypeId; - this.table = table; - this.seat = seat; - this.totalAmount = totalAmount; - this.totalTip = totalTip; - this.totalTax = totalTax; - this.totalDiscount = totalDiscount; - this.totalRefund = totalRefund; - this.totalServiceCharge = totalServiceCharge; - this.refunded = refunded; - this.customers = customers; - this.fulfillments = fulfillments; - this.lineItems = lineItems; - this.payments = payments; - this.serviceCharges = serviceCharges; - this.refunds = refunds; - this.taxes = taxes; - this.discounts = discounts; - this.tenders = tenders; - this.source = source; - this.voided = voided; - this.voidedAt = voidedAt; - this.customMappings = customMappings; - this.version = version; - this.updatedBy = updatedBy; - this.createdBy = createdBy; - this.updatedAt = updatedAt; - this.createdAt = createdAt; - this.passThrough = passThrough; - } - - public Order( - String merchantId, - String locationId) { - this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), merchantId, Optional.empty(), Optional.empty(), locationId, Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonIgnore - public Optional idempotencyKey() { - return idempotencyKey; - } - - @JsonIgnore - public Optional orderNumber() { - return orderNumber; - } - - @JsonIgnore - public JsonNullable orderDate() { - return orderDate; - } - - @JsonIgnore - public JsonNullable closedDate() { - return closedDate; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - @JsonIgnore - public JsonNullable referenceId() { - return referenceId; - } - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - /** - * Is this order paid or not? - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional paymentStatus() { - return (Optional) paymentStatus; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public Optional title() { - return title; - } - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - @JsonIgnore - public Optional note() { - return note; - } - - @JsonIgnore - public String merchantId() { - return merchantId; - } - - @JsonIgnore - public Optional customerId() { - return customerId; - } - - @JsonIgnore - public Optional employeeId() { - return employeeId; - } - - @JsonIgnore - public String locationId() { - return locationId; - } - - @JsonIgnore - public Optional orderTypeId() { - return orderTypeId; - } - - @JsonIgnore - public Optional table() { - return table; - } - - @JsonIgnore - public Optional seat() { - return seat; - } - - @JsonIgnore - public JsonNullable totalAmount() { - return totalAmount; - } - - @JsonIgnore - public JsonNullable totalTip() { - return totalTip; - } - - @JsonIgnore - public JsonNullable totalTax() { - return totalTax; - } - - @JsonIgnore - public JsonNullable totalDiscount() { - return totalDiscount; - } - - @JsonIgnore - public JsonNullable totalRefund() { - return totalRefund; - } - - @JsonIgnore - public JsonNullable totalServiceCharge() { - return totalServiceCharge; - } - - @JsonIgnore - public Optional refunded() { - return refunded; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> customers() { - return (Optional>) customers; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> fulfillments() { - return (Optional>) fulfillments; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> lineItems() { - return (Optional>) lineItems; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> payments() { - return (Optional>) payments; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> serviceCharges() { - return (Optional>) serviceCharges; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> refunds() { - return (Optional>) refunds; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> taxes() { - return (Optional>) taxes; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> discounts() { - return (Optional>) discounts; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> tenders() { - return (Optional>) tenders; - } - - /** - * Source of order. Indicates the way that the order was placed. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable source() { - return (JsonNullable) source; - } - - @JsonIgnore - public Optional voided() { - return voided; - } - - @JsonIgnore - public Optional voidedAt() { - return voidedAt; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable customMappings() { - return (JsonNullable) customMappings; - } - - @JsonIgnore - public JsonNullable version() { - return version; - } - - /** - * The user who last updated the object. - */ - @JsonIgnore - public JsonNullable updatedBy() { - return updatedBy; - } - - /** - * The user who created the object. - */ - @JsonIgnore - public JsonNullable createdBy() { - return createdBy; - } - - /** - * The date and time when the object was last updated. - */ - @JsonIgnore - public JsonNullable updatedAt() { - return updatedAt; - } - - /** - * The date and time when the object was created. - */ - @JsonIgnore - public JsonNullable createdAt() { - return createdAt; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public Order withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Order withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Order withIdempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Order withIdempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public Order withOrderNumber(String orderNumber) { - Utils.checkNotNull(orderNumber, "orderNumber"); - this.orderNumber = Optional.ofNullable(orderNumber); - return this; - } - - public Order withOrderNumber(Optional orderNumber) { - Utils.checkNotNull(orderNumber, "orderNumber"); - this.orderNumber = orderNumber; - return this; - } - - public Order withOrderDate(LocalDate orderDate) { - Utils.checkNotNull(orderDate, "orderDate"); - this.orderDate = JsonNullable.of(orderDate); - return this; - } - - public Order withOrderDate(JsonNullable orderDate) { - Utils.checkNotNull(orderDate, "orderDate"); - this.orderDate = orderDate; - return this; - } - - public Order withClosedDate(LocalDate closedDate) { - Utils.checkNotNull(closedDate, "closedDate"); - this.closedDate = JsonNullable.of(closedDate); - return this; - } - - public Order withClosedDate(JsonNullable closedDate) { - Utils.checkNotNull(closedDate, "closedDate"); - this.closedDate = closedDate; - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public Order withReferenceId(String referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = JsonNullable.of(referenceId); - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public Order withReferenceId(JsonNullable referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = referenceId; - return this; - } - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - public Order withStatus(OrderStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - public Order withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Is this order paid or not? - */ - public Order withPaymentStatus(PosPaymentStatus paymentStatus) { - Utils.checkNotNull(paymentStatus, "paymentStatus"); - this.paymentStatus = Optional.ofNullable(paymentStatus); - return this; - } - - /** - * Is this order paid or not? - */ - public Order withPaymentStatus(Optional paymentStatus) { - Utils.checkNotNull(paymentStatus, "paymentStatus"); - this.paymentStatus = paymentStatus; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Order withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Order withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Order withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Order withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - public Order withNote(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - public Order withNote(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - public Order withMerchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - public Order withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - public Order withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public Order withEmployeeId(String employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = Optional.ofNullable(employeeId); - return this; - } - - public Order withEmployeeId(Optional employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = employeeId; - return this; - } - - public Order withLocationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - public Order withOrderTypeId(String orderTypeId) { - Utils.checkNotNull(orderTypeId, "orderTypeId"); - this.orderTypeId = Optional.ofNullable(orderTypeId); - return this; - } - - public Order withOrderTypeId(Optional orderTypeId) { - Utils.checkNotNull(orderTypeId, "orderTypeId"); - this.orderTypeId = orderTypeId; - return this; - } - - public Order withTable(String table) { - Utils.checkNotNull(table, "table"); - this.table = Optional.ofNullable(table); - return this; - } - - public Order withTable(Optional table) { - Utils.checkNotNull(table, "table"); - this.table = table; - return this; - } - - public Order withSeat(String seat) { - Utils.checkNotNull(seat, "seat"); - this.seat = Optional.ofNullable(seat); - return this; - } - - public Order withSeat(Optional seat) { - Utils.checkNotNull(seat, "seat"); - this.seat = seat; - return this; - } - - public Order withTotalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public Order withTotalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public Order withTotalTip(long totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = JsonNullable.of(totalTip); - return this; - } - - public Order withTotalTip(JsonNullable totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = totalTip; - return this; - } - - public Order withTotalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public Order withTotalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public Order withTotalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public Order withTotalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public Order withTotalRefund(long totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = JsonNullable.of(totalRefund); - return this; - } - - public Order withTotalRefund(JsonNullable totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = totalRefund; - return this; - } - - public Order withTotalServiceCharge(long totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = JsonNullable.of(totalServiceCharge); - return this; - } - - public Order withTotalServiceCharge(JsonNullable totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = totalServiceCharge; - return this; - } - - public Order withRefunded(boolean refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = Optional.ofNullable(refunded); - return this; - } - - public Order withRefunded(Optional refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = refunded; - return this; - } - - public Order withCustomers(List customers) { - Utils.checkNotNull(customers, "customers"); - this.customers = Optional.ofNullable(customers); - return this; - } - - public Order withCustomers(Optional> customers) { - Utils.checkNotNull(customers, "customers"); - this.customers = customers; - return this; - } - - public Order withFulfillments(List fulfillments) { - Utils.checkNotNull(fulfillments, "fulfillments"); - this.fulfillments = Optional.ofNullable(fulfillments); - return this; - } - - public Order withFulfillments(Optional> fulfillments) { - Utils.checkNotNull(fulfillments, "fulfillments"); - this.fulfillments = fulfillments; - return this; - } - - public Order withLineItems(List lineItems) { - Utils.checkNotNull(lineItems, "lineItems"); - this.lineItems = Optional.ofNullable(lineItems); - return this; - } - - public Order withLineItems(Optional> lineItems) { - Utils.checkNotNull(lineItems, "lineItems"); - this.lineItems = lineItems; - return this; - } - - public Order withPayments(List payments) { - Utils.checkNotNull(payments, "payments"); - this.payments = Optional.ofNullable(payments); - return this; - } - - public Order withPayments(Optional> payments) { - Utils.checkNotNull(payments, "payments"); - this.payments = payments; - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public Order withServiceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public Order withServiceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - public Order withRefunds(List refunds) { - Utils.checkNotNull(refunds, "refunds"); - this.refunds = Optional.ofNullable(refunds); - return this; - } - - public Order withRefunds(Optional> refunds) { - Utils.checkNotNull(refunds, "refunds"); - this.refunds = refunds; - return this; - } - - public Order withTaxes(List taxes) { - Utils.checkNotNull(taxes, "taxes"); - this.taxes = Optional.ofNullable(taxes); - return this; - } - - public Order withTaxes(Optional> taxes) { - Utils.checkNotNull(taxes, "taxes"); - this.taxes = taxes; - return this; - } - - public Order withDiscounts(List discounts) { - Utils.checkNotNull(discounts, "discounts"); - this.discounts = Optional.ofNullable(discounts); - return this; - } - - public Order withDiscounts(Optional> discounts) { - Utils.checkNotNull(discounts, "discounts"); - this.discounts = discounts; - return this; - } - - public Order withTenders(List tenders) { - Utils.checkNotNull(tenders, "tenders"); - this.tenders = Optional.ofNullable(tenders); - return this; - } - - public Order withTenders(Optional> tenders) { - Utils.checkNotNull(tenders, "tenders"); - this.tenders = tenders; - return this; - } - - /** - * Source of order. Indicates the way that the order was placed. - */ - public Order withSource(Source source) { - Utils.checkNotNull(source, "source"); - this.source = JsonNullable.of(source); - return this; - } - - /** - * Source of order. Indicates the way that the order was placed. - */ - public Order withSource(JsonNullable source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - public Order withVoided(boolean voided) { - Utils.checkNotNull(voided, "voided"); - this.voided = Optional.ofNullable(voided); - return this; - } - - public Order withVoided(Optional voided) { - Utils.checkNotNull(voided, "voided"); - this.voided = voided; - return this; - } - - public Order withVoidedAt(OffsetDateTime voidedAt) { - Utils.checkNotNull(voidedAt, "voidedAt"); - this.voidedAt = Optional.ofNullable(voidedAt); - return this; - } - - public Order withVoidedAt(Optional voidedAt) { - Utils.checkNotNull(voidedAt, "voidedAt"); - this.voidedAt = voidedAt; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Order withCustomMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Order withCustomMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - public Order withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - public Order withVersion(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - /** - * The user who last updated the object. - */ - public Order withUpdatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Order withUpdatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Order withCreatedBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Order withCreatedBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Order withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Order withUpdatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Order withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Order withCreatedAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Order withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Order withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Order other = (Order) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.idempotencyKey, other.idempotencyKey) && - Objects.deepEquals(this.orderNumber, other.orderNumber) && - Objects.deepEquals(this.orderDate, other.orderDate) && - Objects.deepEquals(this.closedDate, other.closedDate) && - Objects.deepEquals(this.referenceId, other.referenceId) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.paymentStatus, other.paymentStatus) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.title, other.title) && - Objects.deepEquals(this.note, other.note) && - Objects.deepEquals(this.merchantId, other.merchantId) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.employeeId, other.employeeId) && - Objects.deepEquals(this.locationId, other.locationId) && - Objects.deepEquals(this.orderTypeId, other.orderTypeId) && - Objects.deepEquals(this.table, other.table) && - Objects.deepEquals(this.seat, other.seat) && - Objects.deepEquals(this.totalAmount, other.totalAmount) && - Objects.deepEquals(this.totalTip, other.totalTip) && - Objects.deepEquals(this.totalTax, other.totalTax) && - Objects.deepEquals(this.totalDiscount, other.totalDiscount) && - Objects.deepEquals(this.totalRefund, other.totalRefund) && - Objects.deepEquals(this.totalServiceCharge, other.totalServiceCharge) && - Objects.deepEquals(this.refunded, other.refunded) && - Objects.deepEquals(this.customers, other.customers) && - Objects.deepEquals(this.fulfillments, other.fulfillments) && - Objects.deepEquals(this.lineItems, other.lineItems) && - Objects.deepEquals(this.payments, other.payments) && - Objects.deepEquals(this.serviceCharges, other.serviceCharges) && - Objects.deepEquals(this.refunds, other.refunds) && - Objects.deepEquals(this.taxes, other.taxes) && - Objects.deepEquals(this.discounts, other.discounts) && - Objects.deepEquals(this.tenders, other.tenders) && - Objects.deepEquals(this.source, other.source) && - Objects.deepEquals(this.voided, other.voided) && - Objects.deepEquals(this.voidedAt, other.voidedAt) && - Objects.deepEquals(this.customMappings, other.customMappings) && - Objects.deepEquals(this.version, other.version) && - Objects.deepEquals(this.updatedBy, other.updatedBy) && - Objects.deepEquals(this.createdBy, other.createdBy) && - Objects.deepEquals(this.updatedAt, other.updatedAt) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - idempotencyKey, - orderNumber, - orderDate, - closedDate, - referenceId, - status, - paymentStatus, - currency, - title, - note, - merchantId, - customerId, - employeeId, - locationId, - orderTypeId, - table, - seat, - totalAmount, - totalTip, - totalTax, - totalDiscount, - totalRefund, - totalServiceCharge, - refunded, - customers, - fulfillments, - lineItems, - payments, - serviceCharges, - refunds, - taxes, - discounts, - tenders, - source, - voided, - voidedAt, - customMappings, - version, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(Order.class, - "id", id, - "idempotencyKey", idempotencyKey, - "orderNumber", orderNumber, - "orderDate", orderDate, - "closedDate", closedDate, - "referenceId", referenceId, - "status", status, - "paymentStatus", paymentStatus, - "currency", currency, - "title", title, - "note", note, - "merchantId", merchantId, - "customerId", customerId, - "employeeId", employeeId, - "locationId", locationId, - "orderTypeId", orderTypeId, - "table", table, - "seat", seat, - "totalAmount", totalAmount, - "totalTip", totalTip, - "totalTax", totalTax, - "totalDiscount", totalDiscount, - "totalRefund", totalRefund, - "totalServiceCharge", totalServiceCharge, - "refunded", refunded, - "customers", customers, - "fulfillments", fulfillments, - "lineItems", lineItems, - "payments", payments, - "serviceCharges", serviceCharges, - "refunds", refunds, - "taxes", taxes, - "discounts", discounts, - "tenders", tenders, - "source", source, - "voided", voided, - "voidedAt", voidedAt, - "customMappings", customMappings, - "version", version, - "updatedBy", updatedBy, - "createdBy", createdBy, - "updatedAt", updatedAt, - "createdAt", createdAt, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional idempotencyKey = Optional.empty(); - - private Optional orderNumber = Optional.empty(); - - private JsonNullable orderDate = JsonNullable.undefined(); - - private JsonNullable closedDate = JsonNullable.undefined(); - - private JsonNullable referenceId = JsonNullable.undefined(); - - private Optional status = Optional.empty(); - - private Optional paymentStatus = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Optional title = Optional.empty(); - - private Optional note = Optional.empty(); - - private String merchantId; - - private Optional customerId = Optional.empty(); - - private Optional employeeId = Optional.empty(); - - private String locationId; - - private Optional orderTypeId = Optional.empty(); - - private Optional table = Optional.empty(); - - private Optional seat = Optional.empty(); - - private JsonNullable totalAmount = JsonNullable.undefined(); - - private JsonNullable totalTip = JsonNullable.undefined(); - - private JsonNullable totalTax = JsonNullable.undefined(); - - private JsonNullable totalDiscount = JsonNullable.undefined(); - - private JsonNullable totalRefund = JsonNullable.undefined(); - - private JsonNullable totalServiceCharge = JsonNullable.undefined(); - - private Optional refunded = Optional.empty(); - - private Optional> customers = Optional.empty(); - - private Optional> fulfillments = Optional.empty(); - - private Optional> lineItems = Optional.empty(); - - private Optional> payments = Optional.empty(); - - private Optional> serviceCharges = Optional.empty(); - - private Optional> refunds = Optional.empty(); - - private Optional> taxes = Optional.empty(); - - private Optional> discounts = Optional.empty(); - - private Optional> tenders = Optional.empty(); - - private JsonNullable source = JsonNullable.undefined(); - - private Optional voided = Optional.empty(); - - private Optional voidedAt = Optional.empty(); - - private JsonNullable customMappings = JsonNullable.undefined(); - - private JsonNullable version = JsonNullable.undefined(); - - private JsonNullable updatedBy = JsonNullable.undefined(); - - private JsonNullable createdBy = JsonNullable.undefined(); - - private JsonNullable updatedAt = JsonNullable.undefined(); - - private JsonNullable createdAt = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public Builder orderNumber(String orderNumber) { - Utils.checkNotNull(orderNumber, "orderNumber"); - this.orderNumber = Optional.ofNullable(orderNumber); - return this; - } - - public Builder orderNumber(Optional orderNumber) { - Utils.checkNotNull(orderNumber, "orderNumber"); - this.orderNumber = orderNumber; - return this; - } - - public Builder orderDate(LocalDate orderDate) { - Utils.checkNotNull(orderDate, "orderDate"); - this.orderDate = JsonNullable.of(orderDate); - return this; - } - - public Builder orderDate(JsonNullable orderDate) { - Utils.checkNotNull(orderDate, "orderDate"); - this.orderDate = orderDate; - return this; - } - - public Builder closedDate(LocalDate closedDate) { - Utils.checkNotNull(closedDate, "closedDate"); - this.closedDate = JsonNullable.of(closedDate); - return this; - } - - public Builder closedDate(JsonNullable closedDate) { - Utils.checkNotNull(closedDate, "closedDate"); - this.closedDate = closedDate; - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public Builder referenceId(String referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = JsonNullable.of(referenceId); - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public Builder referenceId(JsonNullable referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = referenceId; - return this; - } - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - public Builder status(OrderStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Is this order paid or not? - */ - public Builder paymentStatus(PosPaymentStatus paymentStatus) { - Utils.checkNotNull(paymentStatus, "paymentStatus"); - this.paymentStatus = Optional.ofNullable(paymentStatus); - return this; - } - - /** - * Is this order paid or not? - */ - public Builder paymentStatus(Optional paymentStatus) { - Utils.checkNotNull(paymentStatus, "paymentStatus"); - this.paymentStatus = paymentStatus; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - public Builder note(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - public Builder note(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - public Builder merchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public Builder employeeId(String employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = Optional.ofNullable(employeeId); - return this; - } - - public Builder employeeId(Optional employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = employeeId; - return this; - } - - public Builder locationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - public Builder orderTypeId(String orderTypeId) { - Utils.checkNotNull(orderTypeId, "orderTypeId"); - this.orderTypeId = Optional.ofNullable(orderTypeId); - return this; - } - - public Builder orderTypeId(Optional orderTypeId) { - Utils.checkNotNull(orderTypeId, "orderTypeId"); - this.orderTypeId = orderTypeId; - return this; - } - - public Builder table(String table) { - Utils.checkNotNull(table, "table"); - this.table = Optional.ofNullable(table); - return this; - } - - public Builder table(Optional table) { - Utils.checkNotNull(table, "table"); - this.table = table; - return this; - } - - public Builder seat(String seat) { - Utils.checkNotNull(seat, "seat"); - this.seat = Optional.ofNullable(seat); - return this; - } - - public Builder seat(Optional seat) { - Utils.checkNotNull(seat, "seat"); - this.seat = seat; - return this; - } - - public Builder totalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public Builder totalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public Builder totalTip(long totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = JsonNullable.of(totalTip); - return this; - } - - public Builder totalTip(JsonNullable totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = totalTip; - return this; - } - - public Builder totalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public Builder totalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public Builder totalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public Builder totalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public Builder totalRefund(long totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = JsonNullable.of(totalRefund); - return this; - } - - public Builder totalRefund(JsonNullable totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = totalRefund; - return this; - } - - public Builder totalServiceCharge(long totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = JsonNullable.of(totalServiceCharge); - return this; - } - - public Builder totalServiceCharge(JsonNullable totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = totalServiceCharge; - return this; - } - - public Builder refunded(boolean refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = Optional.ofNullable(refunded); - return this; - } - - public Builder refunded(Optional refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = refunded; - return this; - } - - public Builder customers(List customers) { - Utils.checkNotNull(customers, "customers"); - this.customers = Optional.ofNullable(customers); - return this; - } - - public Builder customers(Optional> customers) { - Utils.checkNotNull(customers, "customers"); - this.customers = customers; - return this; - } - - public Builder fulfillments(List fulfillments) { - Utils.checkNotNull(fulfillments, "fulfillments"); - this.fulfillments = Optional.ofNullable(fulfillments); - return this; - } - - public Builder fulfillments(Optional> fulfillments) { - Utils.checkNotNull(fulfillments, "fulfillments"); - this.fulfillments = fulfillments; - return this; - } - - public Builder lineItems(List lineItems) { - Utils.checkNotNull(lineItems, "lineItems"); - this.lineItems = Optional.ofNullable(lineItems); - return this; - } - - public Builder lineItems(Optional> lineItems) { - Utils.checkNotNull(lineItems, "lineItems"); - this.lineItems = lineItems; - return this; - } - - public Builder payments(List payments) { - Utils.checkNotNull(payments, "payments"); - this.payments = Optional.ofNullable(payments); - return this; - } - - public Builder payments(Optional> payments) { - Utils.checkNotNull(payments, "payments"); - this.payments = payments; - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public Builder serviceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public Builder serviceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - public Builder refunds(List refunds) { - Utils.checkNotNull(refunds, "refunds"); - this.refunds = Optional.ofNullable(refunds); - return this; - } - - public Builder refunds(Optional> refunds) { - Utils.checkNotNull(refunds, "refunds"); - this.refunds = refunds; - return this; - } - - public Builder taxes(List taxes) { - Utils.checkNotNull(taxes, "taxes"); - this.taxes = Optional.ofNullable(taxes); - return this; - } - - public Builder taxes(Optional> taxes) { - Utils.checkNotNull(taxes, "taxes"); - this.taxes = taxes; - return this; - } - - public Builder discounts(List discounts) { - Utils.checkNotNull(discounts, "discounts"); - this.discounts = Optional.ofNullable(discounts); - return this; - } - - public Builder discounts(Optional> discounts) { - Utils.checkNotNull(discounts, "discounts"); - this.discounts = discounts; - return this; - } - - public Builder tenders(List tenders) { - Utils.checkNotNull(tenders, "tenders"); - this.tenders = Optional.ofNullable(tenders); - return this; - } - - public Builder tenders(Optional> tenders) { - Utils.checkNotNull(tenders, "tenders"); - this.tenders = tenders; - return this; - } - - /** - * Source of order. Indicates the way that the order was placed. - */ - public Builder source(Source source) { - Utils.checkNotNull(source, "source"); - this.source = JsonNullable.of(source); - return this; - } - - /** - * Source of order. Indicates the way that the order was placed. - */ - public Builder source(JsonNullable source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - public Builder voided(boolean voided) { - Utils.checkNotNull(voided, "voided"); - this.voided = Optional.ofNullable(voided); - return this; - } - - public Builder voided(Optional voided) { - Utils.checkNotNull(voided, "voided"); - this.voided = voided; - return this; - } - - public Builder voidedAt(OffsetDateTime voidedAt) { - Utils.checkNotNull(voidedAt, "voidedAt"); - this.voidedAt = Optional.ofNullable(voidedAt); - return this; - } - - public Builder voidedAt(Optional voidedAt) { - Utils.checkNotNull(voidedAt, "voidedAt"); - this.voidedAt = voidedAt; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - public Builder version(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public Order build() { - return new Order( - id, - idempotencyKey, - orderNumber, - orderDate, - closedDate, - referenceId, - status, - paymentStatus, - currency, - title, - note, - merchantId, - customerId, - employeeId, - locationId, - orderTypeId, - table, - seat, - totalAmount, - totalTip, - totalTax, - totalDiscount, - totalRefund, - totalServiceCharge, - refunded, - customers, - fulfillments, - lineItems, - payments, - serviceCharges, - refunds, - taxes, - discounts, - tenders, - source, - voided, - voidedAt, - customMappings, - version, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderAppliedDiscounts.java b/src/main/java/com/apideck/unify/models/components/OrderAppliedDiscounts.java deleted file mode 100644 index 1598b32..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderAppliedDiscounts.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class OrderAppliedDiscounts { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("discount_id") - private Optional discountId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonCreator - public OrderAppliedDiscounts( - @JsonProperty("discount_id") Optional discountId, - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency) { - Utils.checkNotNull(discountId, "discountId"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - this.discountId = discountId; - this.amount = amount; - this.currency = currency; - } - - public OrderAppliedDiscounts() { - this(Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - @JsonIgnore - public Optional discountId() { - return discountId; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - public final static Builder builder() { - return new Builder(); - } - - public OrderAppliedDiscounts withDiscountId(String discountId) { - Utils.checkNotNull(discountId, "discountId"); - this.discountId = Optional.ofNullable(discountId); - return this; - } - - public OrderAppliedDiscounts withDiscountId(Optional discountId) { - Utils.checkNotNull(discountId, "discountId"); - this.discountId = discountId; - return this; - } - - public OrderAppliedDiscounts withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public OrderAppliedDiscounts withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderAppliedDiscounts withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderAppliedDiscounts withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderAppliedDiscounts other = (OrderAppliedDiscounts) o; - return - Objects.deepEquals(this.discountId, other.discountId) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency); - } - - @Override - public int hashCode() { - return Objects.hash( - discountId, - amount, - currency); - } - - @Override - public String toString() { - return Utils.toString(OrderAppliedDiscounts.class, - "discountId", discountId, - "amount", amount, - "currency", currency); - } - - public final static class Builder { - - private Optional discountId = Optional.empty(); - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - public Builder discountId(String discountId) { - Utils.checkNotNull(discountId, "discountId"); - this.discountId = Optional.ofNullable(discountId); - return this; - } - - public Builder discountId(Optional discountId) { - Utils.checkNotNull(discountId, "discountId"); - this.discountId = discountId; - return this; - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public OrderAppliedDiscounts build() { - return new OrderAppliedDiscounts( - discountId, - amount, - currency); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderAppliedTaxes.java b/src/main/java/com/apideck/unify/models/components/OrderAppliedTaxes.java deleted file mode 100644 index 129b4fe..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderAppliedTaxes.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class OrderAppliedTaxes { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tax_id") - private Optional taxId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonCreator - public OrderAppliedTaxes( - @JsonProperty("tax_id") Optional taxId, - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency) { - Utils.checkNotNull(taxId, "taxId"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - this.taxId = taxId; - this.amount = amount; - this.currency = currency; - } - - public OrderAppliedTaxes() { - this(Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - @JsonIgnore - public Optional taxId() { - return taxId; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - public final static Builder builder() { - return new Builder(); - } - - public OrderAppliedTaxes withTaxId(String taxId) { - Utils.checkNotNull(taxId, "taxId"); - this.taxId = Optional.ofNullable(taxId); - return this; - } - - public OrderAppliedTaxes withTaxId(Optional taxId) { - Utils.checkNotNull(taxId, "taxId"); - this.taxId = taxId; - return this; - } - - public OrderAppliedTaxes withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public OrderAppliedTaxes withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderAppliedTaxes withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderAppliedTaxes withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderAppliedTaxes other = (OrderAppliedTaxes) o; - return - Objects.deepEquals(this.taxId, other.taxId) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency); - } - - @Override - public int hashCode() { - return Objects.hash( - taxId, - amount, - currency); - } - - @Override - public String toString() { - return Utils.toString(OrderAppliedTaxes.class, - "taxId", taxId, - "amount", amount, - "currency", currency); - } - - public final static class Builder { - - private Optional taxId = Optional.empty(); - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - public Builder taxId(String taxId) { - Utils.checkNotNull(taxId, "taxId"); - this.taxId = Optional.ofNullable(taxId); - return this; - } - - public Builder taxId(Optional taxId) { - Utils.checkNotNull(taxId, "taxId"); - this.taxId = taxId; - return this; - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public OrderAppliedTaxes build() { - return new OrderAppliedTaxes( - taxId, - amount, - currency); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderDiscounts.java b/src/main/java/com/apideck/unify/models/components/OrderDiscounts.java deleted file mode 100644 index 0344a7d..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderDiscounts.java +++ /dev/null @@ -1,288 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class OrderDiscounts { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonProperty("type") - private OrderDiscountsType type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("scope") - private Optional scope; - - @JsonCreator - public OrderDiscounts( - @JsonProperty("name") Optional name, - @JsonProperty("type") OrderDiscountsType type, - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("scope") Optional scope) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(scope, "scope"); - this.name = name; - this.type = type; - this.amount = amount; - this.currency = currency; - this.scope = scope; - } - - public OrderDiscounts( - OrderDiscountsType type) { - this(Optional.empty(), type, Optional.empty(), JsonNullable.undefined(), Optional.empty()); - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public OrderDiscountsType type() { - return type; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional scope() { - return (Optional) scope; - } - - public final static Builder builder() { - return new Builder(); - } - - public OrderDiscounts withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public OrderDiscounts withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public OrderDiscounts withType(OrderDiscountsType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public OrderDiscounts withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public OrderDiscounts withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderDiscounts withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderDiscounts withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public OrderDiscounts withScope(OrderDiscountsScope scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = Optional.ofNullable(scope); - return this; - } - - public OrderDiscounts withScope(Optional scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = scope; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderDiscounts other = (OrderDiscounts) o; - return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.type, other.type) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.scope, other.scope); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - type, - amount, - currency, - scope); - } - - @Override - public String toString() { - return Utils.toString(OrderDiscounts.class, - "name", name, - "type", type, - "amount", amount, - "currency", currency, - "scope", scope); - } - - public final static class Builder { - - private Optional name = Optional.empty(); - - private OrderDiscountsType type; - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Optional scope = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder type(OrderDiscountsType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder scope(OrderDiscountsScope scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = Optional.ofNullable(scope); - return this; - } - - public Builder scope(Optional scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = scope; - return this; - } - - public OrderDiscounts build() { - return new OrderDiscounts( - name, - type, - amount, - currency, - scope); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderDiscountsScope.java b/src/main/java/com/apideck/unify/models/components/OrderDiscountsScope.java deleted file mode 100644 index 6246e64..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderDiscountsScope.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum OrderDiscountsScope { - ORDER("order"), - LINE_ITEM("line_item"); - - @JsonValue - private final String value; - - private OrderDiscountsScope(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/OrderDiscountsType.java b/src/main/java/com/apideck/unify/models/components/OrderDiscountsType.java deleted file mode 100644 index 27d6168..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderDiscountsType.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum OrderDiscountsType { - PERCENTAGE("percentage"), - FLAT_FEE("flat_fee"); - - @JsonValue - private final String value; - - private OrderDiscountsType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/OrderFulfillmentStatus.java b/src/main/java/com/apideck/unify/models/components/OrderFulfillmentStatus.java deleted file mode 100644 index 83b8d81..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderFulfillmentStatus.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * OrderFulfillmentStatus - The state of the fulfillment. - */ -public enum OrderFulfillmentStatus { - PROPOSED("proposed"), - RESERVED("reserved"), - PREPARED("prepared"), - COMPLETED("completed"), - CANCELLED("cancelled"), - FAILED("failed"), - OTHER("other"); - - @JsonValue - private final String value; - - private OrderFulfillmentStatus(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/OrderFulfillments.java b/src/main/java/com/apideck/unify/models/components/OrderFulfillments.java deleted file mode 100644 index 40e43c0..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderFulfillments.java +++ /dev/null @@ -1,300 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; - - -public class OrderFulfillments { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * The state of the fulfillment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pickup_details") - private Optional pickupDetails; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("shipment_details") - private Optional shipmentDetails; - - @JsonCreator - public OrderFulfillments( - @JsonProperty("id") Optional id, - @JsonProperty("status") Optional status, - @JsonProperty("type") Optional type, - @JsonProperty("pickup_details") Optional pickupDetails, - @JsonProperty("shipment_details") Optional shipmentDetails) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(pickupDetails, "pickupDetails"); - Utils.checkNotNull(shipmentDetails, "shipmentDetails"); - this.id = id; - this.status = status; - this.type = type; - this.pickupDetails = pickupDetails; - this.shipmentDetails = shipmentDetails; - } - - public OrderFulfillments() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional id() { - return id; - } - - /** - * The state of the fulfillment. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional pickupDetails() { - return (Optional) pickupDetails; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional shipmentDetails() { - return (Optional) shipmentDetails; - } - - public final static Builder builder() { - return new Builder(); - } - - public OrderFulfillments withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public OrderFulfillments withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The state of the fulfillment. - */ - public OrderFulfillments withStatus(OrderFulfillmentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * The state of the fulfillment. - */ - public OrderFulfillments withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public OrderFulfillments withType(OrderFulfillmentsType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public OrderFulfillments withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public OrderFulfillments withPickupDetails(OrderPickupDetails pickupDetails) { - Utils.checkNotNull(pickupDetails, "pickupDetails"); - this.pickupDetails = Optional.ofNullable(pickupDetails); - return this; - } - - public OrderFulfillments withPickupDetails(Optional pickupDetails) { - Utils.checkNotNull(pickupDetails, "pickupDetails"); - this.pickupDetails = pickupDetails; - return this; - } - - public OrderFulfillments withShipmentDetails(ShipmentDetails shipmentDetails) { - Utils.checkNotNull(shipmentDetails, "shipmentDetails"); - this.shipmentDetails = Optional.ofNullable(shipmentDetails); - return this; - } - - public OrderFulfillments withShipmentDetails(Optional shipmentDetails) { - Utils.checkNotNull(shipmentDetails, "shipmentDetails"); - this.shipmentDetails = shipmentDetails; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderFulfillments other = (OrderFulfillments) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.type, other.type) && - Objects.deepEquals(this.pickupDetails, other.pickupDetails) && - Objects.deepEquals(this.shipmentDetails, other.shipmentDetails); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - status, - type, - pickupDetails, - shipmentDetails); - } - - @Override - public String toString() { - return Utils.toString(OrderFulfillments.class, - "id", id, - "status", status, - "type", type, - "pickupDetails", pickupDetails, - "shipmentDetails", shipmentDetails); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional status = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional pickupDetails = Optional.empty(); - - private Optional shipmentDetails = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The state of the fulfillment. - */ - public Builder status(OrderFulfillmentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * The state of the fulfillment. - */ - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Builder type(OrderFulfillmentsType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder pickupDetails(OrderPickupDetails pickupDetails) { - Utils.checkNotNull(pickupDetails, "pickupDetails"); - this.pickupDetails = Optional.ofNullable(pickupDetails); - return this; - } - - public Builder pickupDetails(Optional pickupDetails) { - Utils.checkNotNull(pickupDetails, "pickupDetails"); - this.pickupDetails = pickupDetails; - return this; - } - - public Builder shipmentDetails(ShipmentDetails shipmentDetails) { - Utils.checkNotNull(shipmentDetails, "shipmentDetails"); - this.shipmentDetails = Optional.ofNullable(shipmentDetails); - return this; - } - - public Builder shipmentDetails(Optional shipmentDetails) { - Utils.checkNotNull(shipmentDetails, "shipmentDetails"); - this.shipmentDetails = shipmentDetails; - return this; - } - - public OrderFulfillments build() { - return new OrderFulfillments( - id, - status, - type, - pickupDetails, - shipmentDetails); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderFulfillmentsType.java b/src/main/java/com/apideck/unify/models/components/OrderFulfillmentsType.java deleted file mode 100644 index a187068..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderFulfillmentsType.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum OrderFulfillmentsType { - PICKUP("pickup"), - SHIPMENT("shipment"); - - @JsonValue - private final String value; - - private OrderFulfillmentsType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/OrderInput.java b/src/main/java/com/apideck/unify/models/components/OrderInput.java deleted file mode 100644 index 1e3e860..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderInput.java +++ /dev/null @@ -1,1718 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.LocalDate; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class OrderInput { - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("idempotency_key") - private Optional idempotencyKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("order_number") - private Optional orderNumber; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("order_date") - private JsonNullable orderDate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("closed_date") - private JsonNullable closedDate; - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference_id") - private JsonNullable referenceId; - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - /** - * Is this order paid or not? - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("payment_status") - private Optional paymentStatus; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("note") - private Optional note; - - @JsonProperty("merchant_id") - private String merchantId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("customer_id") - private Optional customerId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("employee_id") - private Optional employeeId; - - @JsonProperty("location_id") - private String locationId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("order_type_id") - private Optional orderTypeId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("table") - private Optional table; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("seat") - private Optional seat; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_amount") - private JsonNullable totalAmount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_tip") - private JsonNullable totalTip; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_tax") - private JsonNullable totalTax; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_discount") - private JsonNullable totalDiscount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_refund") - private JsonNullable totalRefund; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_service_charge") - private JsonNullable totalServiceCharge; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("refunded") - private Optional refunded; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("customers") - private Optional> customers; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("fulfillments") - private Optional> fulfillments; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("line_items") - private Optional> lineItems; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("payments") - private Optional> payments; - - /** - * Optional service charges or gratuity tip applied to the order. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("service_charges") - private Optional> serviceCharges; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("refunds") - private Optional> refunds; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("taxes") - private Optional> taxes; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("discounts") - private Optional> discounts; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tenders") - private Optional> tenders; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("voided") - private Optional voided; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private JsonNullable version; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public OrderInput( - @JsonProperty("idempotency_key") Optional idempotencyKey, - @JsonProperty("order_number") Optional orderNumber, - @JsonProperty("order_date") JsonNullable orderDate, - @JsonProperty("closed_date") JsonNullable closedDate, - @JsonProperty("reference_id") JsonNullable referenceId, - @JsonProperty("status") Optional status, - @JsonProperty("payment_status") Optional paymentStatus, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("title") Optional title, - @JsonProperty("note") Optional note, - @JsonProperty("merchant_id") String merchantId, - @JsonProperty("customer_id") Optional customerId, - @JsonProperty("employee_id") Optional employeeId, - @JsonProperty("location_id") String locationId, - @JsonProperty("order_type_id") Optional orderTypeId, - @JsonProperty("table") Optional table, - @JsonProperty("seat") Optional seat, - @JsonProperty("total_amount") JsonNullable totalAmount, - @JsonProperty("total_tip") JsonNullable totalTip, - @JsonProperty("total_tax") JsonNullable totalTax, - @JsonProperty("total_discount") JsonNullable totalDiscount, - @JsonProperty("total_refund") JsonNullable totalRefund, - @JsonProperty("total_service_charge") JsonNullable totalServiceCharge, - @JsonProperty("refunded") Optional refunded, - @JsonProperty("customers") Optional> customers, - @JsonProperty("fulfillments") Optional> fulfillments, - @JsonProperty("line_items") Optional> lineItems, - @JsonProperty("payments") Optional> payments, - @JsonProperty("service_charges") Optional> serviceCharges, - @JsonProperty("refunds") Optional> refunds, - @JsonProperty("taxes") Optional> taxes, - @JsonProperty("discounts") Optional> discounts, - @JsonProperty("tenders") Optional> tenders, - @JsonProperty("voided") Optional voided, - @JsonProperty("version") JsonNullable version, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - Utils.checkNotNull(orderNumber, "orderNumber"); - Utils.checkNotNull(orderDate, "orderDate"); - Utils.checkNotNull(closedDate, "closedDate"); - Utils.checkNotNull(referenceId, "referenceId"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(paymentStatus, "paymentStatus"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(note, "note"); - Utils.checkNotNull(merchantId, "merchantId"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(employeeId, "employeeId"); - Utils.checkNotNull(locationId, "locationId"); - Utils.checkNotNull(orderTypeId, "orderTypeId"); - Utils.checkNotNull(table, "table"); - Utils.checkNotNull(seat, "seat"); - Utils.checkNotNull(totalAmount, "totalAmount"); - Utils.checkNotNull(totalTip, "totalTip"); - Utils.checkNotNull(totalTax, "totalTax"); - Utils.checkNotNull(totalDiscount, "totalDiscount"); - Utils.checkNotNull(totalRefund, "totalRefund"); - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - Utils.checkNotNull(refunded, "refunded"); - Utils.checkNotNull(customers, "customers"); - Utils.checkNotNull(fulfillments, "fulfillments"); - Utils.checkNotNull(lineItems, "lineItems"); - Utils.checkNotNull(payments, "payments"); - Utils.checkNotNull(serviceCharges, "serviceCharges"); - Utils.checkNotNull(refunds, "refunds"); - Utils.checkNotNull(taxes, "taxes"); - Utils.checkNotNull(discounts, "discounts"); - Utils.checkNotNull(tenders, "tenders"); - Utils.checkNotNull(voided, "voided"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(passThrough, "passThrough"); - this.idempotencyKey = idempotencyKey; - this.orderNumber = orderNumber; - this.orderDate = orderDate; - this.closedDate = closedDate; - this.referenceId = referenceId; - this.status = status; - this.paymentStatus = paymentStatus; - this.currency = currency; - this.title = title; - this.note = note; - this.merchantId = merchantId; - this.customerId = customerId; - this.employeeId = employeeId; - this.locationId = locationId; - this.orderTypeId = orderTypeId; - this.table = table; - this.seat = seat; - this.totalAmount = totalAmount; - this.totalTip = totalTip; - this.totalTax = totalTax; - this.totalDiscount = totalDiscount; - this.totalRefund = totalRefund; - this.totalServiceCharge = totalServiceCharge; - this.refunded = refunded; - this.customers = customers; - this.fulfillments = fulfillments; - this.lineItems = lineItems; - this.payments = payments; - this.serviceCharges = serviceCharges; - this.refunds = refunds; - this.taxes = taxes; - this.discounts = discounts; - this.tenders = tenders; - this.voided = voided; - this.version = version; - this.passThrough = passThrough; - } - - public OrderInput( - String merchantId, - String locationId) { - this(Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), merchantId, Optional.empty(), Optional.empty(), locationId, Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonIgnore - public Optional idempotencyKey() { - return idempotencyKey; - } - - @JsonIgnore - public Optional orderNumber() { - return orderNumber; - } - - @JsonIgnore - public JsonNullable orderDate() { - return orderDate; - } - - @JsonIgnore - public JsonNullable closedDate() { - return closedDate; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - @JsonIgnore - public JsonNullable referenceId() { - return referenceId; - } - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - /** - * Is this order paid or not? - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional paymentStatus() { - return (Optional) paymentStatus; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public Optional title() { - return title; - } - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - @JsonIgnore - public Optional note() { - return note; - } - - @JsonIgnore - public String merchantId() { - return merchantId; - } - - @JsonIgnore - public Optional customerId() { - return customerId; - } - - @JsonIgnore - public Optional employeeId() { - return employeeId; - } - - @JsonIgnore - public String locationId() { - return locationId; - } - - @JsonIgnore - public Optional orderTypeId() { - return orderTypeId; - } - - @JsonIgnore - public Optional table() { - return table; - } - - @JsonIgnore - public Optional seat() { - return seat; - } - - @JsonIgnore - public JsonNullable totalAmount() { - return totalAmount; - } - - @JsonIgnore - public JsonNullable totalTip() { - return totalTip; - } - - @JsonIgnore - public JsonNullable totalTax() { - return totalTax; - } - - @JsonIgnore - public JsonNullable totalDiscount() { - return totalDiscount; - } - - @JsonIgnore - public JsonNullable totalRefund() { - return totalRefund; - } - - @JsonIgnore - public JsonNullable totalServiceCharge() { - return totalServiceCharge; - } - - @JsonIgnore - public Optional refunded() { - return refunded; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> customers() { - return (Optional>) customers; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> fulfillments() { - return (Optional>) fulfillments; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> lineItems() { - return (Optional>) lineItems; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> payments() { - return (Optional>) payments; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> serviceCharges() { - return (Optional>) serviceCharges; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> refunds() { - return (Optional>) refunds; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> taxes() { - return (Optional>) taxes; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> discounts() { - return (Optional>) discounts; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> tenders() { - return (Optional>) tenders; - } - - @JsonIgnore - public Optional voided() { - return voided; - } - - @JsonIgnore - public JsonNullable version() { - return version; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public OrderInput withIdempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public OrderInput withIdempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public OrderInput withOrderNumber(String orderNumber) { - Utils.checkNotNull(orderNumber, "orderNumber"); - this.orderNumber = Optional.ofNullable(orderNumber); - return this; - } - - public OrderInput withOrderNumber(Optional orderNumber) { - Utils.checkNotNull(orderNumber, "orderNumber"); - this.orderNumber = orderNumber; - return this; - } - - public OrderInput withOrderDate(LocalDate orderDate) { - Utils.checkNotNull(orderDate, "orderDate"); - this.orderDate = JsonNullable.of(orderDate); - return this; - } - - public OrderInput withOrderDate(JsonNullable orderDate) { - Utils.checkNotNull(orderDate, "orderDate"); - this.orderDate = orderDate; - return this; - } - - public OrderInput withClosedDate(LocalDate closedDate) { - Utils.checkNotNull(closedDate, "closedDate"); - this.closedDate = JsonNullable.of(closedDate); - return this; - } - - public OrderInput withClosedDate(JsonNullable closedDate) { - Utils.checkNotNull(closedDate, "closedDate"); - this.closedDate = closedDate; - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public OrderInput withReferenceId(String referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = JsonNullable.of(referenceId); - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public OrderInput withReferenceId(JsonNullable referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = referenceId; - return this; - } - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - public OrderInput withStatus(OrderStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - public OrderInput withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Is this order paid or not? - */ - public OrderInput withPaymentStatus(PosPaymentStatus paymentStatus) { - Utils.checkNotNull(paymentStatus, "paymentStatus"); - this.paymentStatus = Optional.ofNullable(paymentStatus); - return this; - } - - /** - * Is this order paid or not? - */ - public OrderInput withPaymentStatus(Optional paymentStatus) { - Utils.checkNotNull(paymentStatus, "paymentStatus"); - this.paymentStatus = paymentStatus; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderInput withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderInput withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public OrderInput withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public OrderInput withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - public OrderInput withNote(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - public OrderInput withNote(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - public OrderInput withMerchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - public OrderInput withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - public OrderInput withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public OrderInput withEmployeeId(String employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = Optional.ofNullable(employeeId); - return this; - } - - public OrderInput withEmployeeId(Optional employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = employeeId; - return this; - } - - public OrderInput withLocationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - public OrderInput withOrderTypeId(String orderTypeId) { - Utils.checkNotNull(orderTypeId, "orderTypeId"); - this.orderTypeId = Optional.ofNullable(orderTypeId); - return this; - } - - public OrderInput withOrderTypeId(Optional orderTypeId) { - Utils.checkNotNull(orderTypeId, "orderTypeId"); - this.orderTypeId = orderTypeId; - return this; - } - - public OrderInput withTable(String table) { - Utils.checkNotNull(table, "table"); - this.table = Optional.ofNullable(table); - return this; - } - - public OrderInput withTable(Optional table) { - Utils.checkNotNull(table, "table"); - this.table = table; - return this; - } - - public OrderInput withSeat(String seat) { - Utils.checkNotNull(seat, "seat"); - this.seat = Optional.ofNullable(seat); - return this; - } - - public OrderInput withSeat(Optional seat) { - Utils.checkNotNull(seat, "seat"); - this.seat = seat; - return this; - } - - public OrderInput withTotalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public OrderInput withTotalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public OrderInput withTotalTip(long totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = JsonNullable.of(totalTip); - return this; - } - - public OrderInput withTotalTip(JsonNullable totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = totalTip; - return this; - } - - public OrderInput withTotalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public OrderInput withTotalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public OrderInput withTotalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public OrderInput withTotalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public OrderInput withTotalRefund(long totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = JsonNullable.of(totalRefund); - return this; - } - - public OrderInput withTotalRefund(JsonNullable totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = totalRefund; - return this; - } - - public OrderInput withTotalServiceCharge(long totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = JsonNullable.of(totalServiceCharge); - return this; - } - - public OrderInput withTotalServiceCharge(JsonNullable totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = totalServiceCharge; - return this; - } - - public OrderInput withRefunded(boolean refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = Optional.ofNullable(refunded); - return this; - } - - public OrderInput withRefunded(Optional refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = refunded; - return this; - } - - public OrderInput withCustomers(List customers) { - Utils.checkNotNull(customers, "customers"); - this.customers = Optional.ofNullable(customers); - return this; - } - - public OrderInput withCustomers(Optional> customers) { - Utils.checkNotNull(customers, "customers"); - this.customers = customers; - return this; - } - - public OrderInput withFulfillments(List fulfillments) { - Utils.checkNotNull(fulfillments, "fulfillments"); - this.fulfillments = Optional.ofNullable(fulfillments); - return this; - } - - public OrderInput withFulfillments(Optional> fulfillments) { - Utils.checkNotNull(fulfillments, "fulfillments"); - this.fulfillments = fulfillments; - return this; - } - - public OrderInput withLineItems(List lineItems) { - Utils.checkNotNull(lineItems, "lineItems"); - this.lineItems = Optional.ofNullable(lineItems); - return this; - } - - public OrderInput withLineItems(Optional> lineItems) { - Utils.checkNotNull(lineItems, "lineItems"); - this.lineItems = lineItems; - return this; - } - - public OrderInput withPayments(List payments) { - Utils.checkNotNull(payments, "payments"); - this.payments = Optional.ofNullable(payments); - return this; - } - - public OrderInput withPayments(Optional> payments) { - Utils.checkNotNull(payments, "payments"); - this.payments = payments; - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public OrderInput withServiceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public OrderInput withServiceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - public OrderInput withRefunds(List refunds) { - Utils.checkNotNull(refunds, "refunds"); - this.refunds = Optional.ofNullable(refunds); - return this; - } - - public OrderInput withRefunds(Optional> refunds) { - Utils.checkNotNull(refunds, "refunds"); - this.refunds = refunds; - return this; - } - - public OrderInput withTaxes(List taxes) { - Utils.checkNotNull(taxes, "taxes"); - this.taxes = Optional.ofNullable(taxes); - return this; - } - - public OrderInput withTaxes(Optional> taxes) { - Utils.checkNotNull(taxes, "taxes"); - this.taxes = taxes; - return this; - } - - public OrderInput withDiscounts(List discounts) { - Utils.checkNotNull(discounts, "discounts"); - this.discounts = Optional.ofNullable(discounts); - return this; - } - - public OrderInput withDiscounts(Optional> discounts) { - Utils.checkNotNull(discounts, "discounts"); - this.discounts = discounts; - return this; - } - - public OrderInput withTenders(List tenders) { - Utils.checkNotNull(tenders, "tenders"); - this.tenders = Optional.ofNullable(tenders); - return this; - } - - public OrderInput withTenders(Optional> tenders) { - Utils.checkNotNull(tenders, "tenders"); - this.tenders = tenders; - return this; - } - - public OrderInput withVoided(boolean voided) { - Utils.checkNotNull(voided, "voided"); - this.voided = Optional.ofNullable(voided); - return this; - } - - public OrderInput withVoided(Optional voided) { - Utils.checkNotNull(voided, "voided"); - this.voided = voided; - return this; - } - - public OrderInput withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - public OrderInput withVersion(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public OrderInput withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public OrderInput withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderInput other = (OrderInput) o; - return - Objects.deepEquals(this.idempotencyKey, other.idempotencyKey) && - Objects.deepEquals(this.orderNumber, other.orderNumber) && - Objects.deepEquals(this.orderDate, other.orderDate) && - Objects.deepEquals(this.closedDate, other.closedDate) && - Objects.deepEquals(this.referenceId, other.referenceId) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.paymentStatus, other.paymentStatus) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.title, other.title) && - Objects.deepEquals(this.note, other.note) && - Objects.deepEquals(this.merchantId, other.merchantId) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.employeeId, other.employeeId) && - Objects.deepEquals(this.locationId, other.locationId) && - Objects.deepEquals(this.orderTypeId, other.orderTypeId) && - Objects.deepEquals(this.table, other.table) && - Objects.deepEquals(this.seat, other.seat) && - Objects.deepEquals(this.totalAmount, other.totalAmount) && - Objects.deepEquals(this.totalTip, other.totalTip) && - Objects.deepEquals(this.totalTax, other.totalTax) && - Objects.deepEquals(this.totalDiscount, other.totalDiscount) && - Objects.deepEquals(this.totalRefund, other.totalRefund) && - Objects.deepEquals(this.totalServiceCharge, other.totalServiceCharge) && - Objects.deepEquals(this.refunded, other.refunded) && - Objects.deepEquals(this.customers, other.customers) && - Objects.deepEquals(this.fulfillments, other.fulfillments) && - Objects.deepEquals(this.lineItems, other.lineItems) && - Objects.deepEquals(this.payments, other.payments) && - Objects.deepEquals(this.serviceCharges, other.serviceCharges) && - Objects.deepEquals(this.refunds, other.refunds) && - Objects.deepEquals(this.taxes, other.taxes) && - Objects.deepEquals(this.discounts, other.discounts) && - Objects.deepEquals(this.tenders, other.tenders) && - Objects.deepEquals(this.voided, other.voided) && - Objects.deepEquals(this.version, other.version) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - idempotencyKey, - orderNumber, - orderDate, - closedDate, - referenceId, - status, - paymentStatus, - currency, - title, - note, - merchantId, - customerId, - employeeId, - locationId, - orderTypeId, - table, - seat, - totalAmount, - totalTip, - totalTax, - totalDiscount, - totalRefund, - totalServiceCharge, - refunded, - customers, - fulfillments, - lineItems, - payments, - serviceCharges, - refunds, - taxes, - discounts, - tenders, - voided, - version, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(OrderInput.class, - "idempotencyKey", idempotencyKey, - "orderNumber", orderNumber, - "orderDate", orderDate, - "closedDate", closedDate, - "referenceId", referenceId, - "status", status, - "paymentStatus", paymentStatus, - "currency", currency, - "title", title, - "note", note, - "merchantId", merchantId, - "customerId", customerId, - "employeeId", employeeId, - "locationId", locationId, - "orderTypeId", orderTypeId, - "table", table, - "seat", seat, - "totalAmount", totalAmount, - "totalTip", totalTip, - "totalTax", totalTax, - "totalDiscount", totalDiscount, - "totalRefund", totalRefund, - "totalServiceCharge", totalServiceCharge, - "refunded", refunded, - "customers", customers, - "fulfillments", fulfillments, - "lineItems", lineItems, - "payments", payments, - "serviceCharges", serviceCharges, - "refunds", refunds, - "taxes", taxes, - "discounts", discounts, - "tenders", tenders, - "voided", voided, - "version", version, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional idempotencyKey = Optional.empty(); - - private Optional orderNumber = Optional.empty(); - - private JsonNullable orderDate = JsonNullable.undefined(); - - private JsonNullable closedDate = JsonNullable.undefined(); - - private JsonNullable referenceId = JsonNullable.undefined(); - - private Optional status = Optional.empty(); - - private Optional paymentStatus = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Optional title = Optional.empty(); - - private Optional note = Optional.empty(); - - private String merchantId; - - private Optional customerId = Optional.empty(); - - private Optional employeeId = Optional.empty(); - - private String locationId; - - private Optional orderTypeId = Optional.empty(); - - private Optional table = Optional.empty(); - - private Optional seat = Optional.empty(); - - private JsonNullable totalAmount = JsonNullable.undefined(); - - private JsonNullable totalTip = JsonNullable.undefined(); - - private JsonNullable totalTax = JsonNullable.undefined(); - - private JsonNullable totalDiscount = JsonNullable.undefined(); - - private JsonNullable totalRefund = JsonNullable.undefined(); - - private JsonNullable totalServiceCharge = JsonNullable.undefined(); - - private Optional refunded = Optional.empty(); - - private Optional> customers = Optional.empty(); - - private Optional> fulfillments = Optional.empty(); - - private Optional> lineItems = Optional.empty(); - - private Optional> payments = Optional.empty(); - - private Optional> serviceCharges = Optional.empty(); - - private Optional> refunds = Optional.empty(); - - private Optional> taxes = Optional.empty(); - - private Optional> discounts = Optional.empty(); - - private Optional> tenders = Optional.empty(); - - private Optional voided = Optional.empty(); - - private JsonNullable version = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public Builder orderNumber(String orderNumber) { - Utils.checkNotNull(orderNumber, "orderNumber"); - this.orderNumber = Optional.ofNullable(orderNumber); - return this; - } - - public Builder orderNumber(Optional orderNumber) { - Utils.checkNotNull(orderNumber, "orderNumber"); - this.orderNumber = orderNumber; - return this; - } - - public Builder orderDate(LocalDate orderDate) { - Utils.checkNotNull(orderDate, "orderDate"); - this.orderDate = JsonNullable.of(orderDate); - return this; - } - - public Builder orderDate(JsonNullable orderDate) { - Utils.checkNotNull(orderDate, "orderDate"); - this.orderDate = orderDate; - return this; - } - - public Builder closedDate(LocalDate closedDate) { - Utils.checkNotNull(closedDate, "closedDate"); - this.closedDate = JsonNullable.of(closedDate); - return this; - } - - public Builder closedDate(JsonNullable closedDate) { - Utils.checkNotNull(closedDate, "closedDate"); - this.closedDate = closedDate; - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public Builder referenceId(String referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = JsonNullable.of(referenceId); - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public Builder referenceId(JsonNullable referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = referenceId; - return this; - } - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - public Builder status(OrderStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Is this order paid or not? - */ - public Builder paymentStatus(PosPaymentStatus paymentStatus) { - Utils.checkNotNull(paymentStatus, "paymentStatus"); - this.paymentStatus = Optional.ofNullable(paymentStatus); - return this; - } - - /** - * Is this order paid or not? - */ - public Builder paymentStatus(Optional paymentStatus) { - Utils.checkNotNull(paymentStatus, "paymentStatus"); - this.paymentStatus = paymentStatus; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - public Builder note(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - /** - * A note with information about this order, may be printed on the order receipt and displayed in apps - */ - public Builder note(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - public Builder merchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public Builder employeeId(String employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = Optional.ofNullable(employeeId); - return this; - } - - public Builder employeeId(Optional employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = employeeId; - return this; - } - - public Builder locationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - public Builder orderTypeId(String orderTypeId) { - Utils.checkNotNull(orderTypeId, "orderTypeId"); - this.orderTypeId = Optional.ofNullable(orderTypeId); - return this; - } - - public Builder orderTypeId(Optional orderTypeId) { - Utils.checkNotNull(orderTypeId, "orderTypeId"); - this.orderTypeId = orderTypeId; - return this; - } - - public Builder table(String table) { - Utils.checkNotNull(table, "table"); - this.table = Optional.ofNullable(table); - return this; - } - - public Builder table(Optional table) { - Utils.checkNotNull(table, "table"); - this.table = table; - return this; - } - - public Builder seat(String seat) { - Utils.checkNotNull(seat, "seat"); - this.seat = Optional.ofNullable(seat); - return this; - } - - public Builder seat(Optional seat) { - Utils.checkNotNull(seat, "seat"); - this.seat = seat; - return this; - } - - public Builder totalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public Builder totalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public Builder totalTip(long totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = JsonNullable.of(totalTip); - return this; - } - - public Builder totalTip(JsonNullable totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = totalTip; - return this; - } - - public Builder totalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public Builder totalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public Builder totalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public Builder totalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public Builder totalRefund(long totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = JsonNullable.of(totalRefund); - return this; - } - - public Builder totalRefund(JsonNullable totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = totalRefund; - return this; - } - - public Builder totalServiceCharge(long totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = JsonNullable.of(totalServiceCharge); - return this; - } - - public Builder totalServiceCharge(JsonNullable totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = totalServiceCharge; - return this; - } - - public Builder refunded(boolean refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = Optional.ofNullable(refunded); - return this; - } - - public Builder refunded(Optional refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = refunded; - return this; - } - - public Builder customers(List customers) { - Utils.checkNotNull(customers, "customers"); - this.customers = Optional.ofNullable(customers); - return this; - } - - public Builder customers(Optional> customers) { - Utils.checkNotNull(customers, "customers"); - this.customers = customers; - return this; - } - - public Builder fulfillments(List fulfillments) { - Utils.checkNotNull(fulfillments, "fulfillments"); - this.fulfillments = Optional.ofNullable(fulfillments); - return this; - } - - public Builder fulfillments(Optional> fulfillments) { - Utils.checkNotNull(fulfillments, "fulfillments"); - this.fulfillments = fulfillments; - return this; - } - - public Builder lineItems(List lineItems) { - Utils.checkNotNull(lineItems, "lineItems"); - this.lineItems = Optional.ofNullable(lineItems); - return this; - } - - public Builder lineItems(Optional> lineItems) { - Utils.checkNotNull(lineItems, "lineItems"); - this.lineItems = lineItems; - return this; - } - - public Builder payments(List payments) { - Utils.checkNotNull(payments, "payments"); - this.payments = Optional.ofNullable(payments); - return this; - } - - public Builder payments(Optional> payments) { - Utils.checkNotNull(payments, "payments"); - this.payments = payments; - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public Builder serviceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public Builder serviceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - public Builder refunds(List refunds) { - Utils.checkNotNull(refunds, "refunds"); - this.refunds = Optional.ofNullable(refunds); - return this; - } - - public Builder refunds(Optional> refunds) { - Utils.checkNotNull(refunds, "refunds"); - this.refunds = refunds; - return this; - } - - public Builder taxes(List taxes) { - Utils.checkNotNull(taxes, "taxes"); - this.taxes = Optional.ofNullable(taxes); - return this; - } - - public Builder taxes(Optional> taxes) { - Utils.checkNotNull(taxes, "taxes"); - this.taxes = taxes; - return this; - } - - public Builder discounts(List discounts) { - Utils.checkNotNull(discounts, "discounts"); - this.discounts = Optional.ofNullable(discounts); - return this; - } - - public Builder discounts(Optional> discounts) { - Utils.checkNotNull(discounts, "discounts"); - this.discounts = discounts; - return this; - } - - public Builder tenders(List tenders) { - Utils.checkNotNull(tenders, "tenders"); - this.tenders = Optional.ofNullable(tenders); - return this; - } - - public Builder tenders(Optional> tenders) { - Utils.checkNotNull(tenders, "tenders"); - this.tenders = tenders; - return this; - } - - public Builder voided(boolean voided) { - Utils.checkNotNull(voided, "voided"); - this.voided = Optional.ofNullable(voided); - return this; - } - - public Builder voided(Optional voided) { - Utils.checkNotNull(voided, "voided"); - this.voided = voided; - return this; - } - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - public Builder version(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public OrderInput build() { - return new OrderInput( - idempotencyKey, - orderNumber, - orderDate, - closedDate, - referenceId, - status, - paymentStatus, - currency, - title, - note, - merchantId, - customerId, - employeeId, - locationId, - orderTypeId, - table, - seat, - totalAmount, - totalTip, - totalTax, - totalDiscount, - totalRefund, - totalServiceCharge, - refunded, - customers, - fulfillments, - lineItems, - payments, - serviceCharges, - refunds, - taxes, - discounts, - tenders, - voided, - version, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderItem.java b/src/main/java/com/apideck/unify/models/components/OrderItem.java deleted file mode 100644 index f86560c..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderItem.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class OrderItem { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonCreator - public OrderItem( - @JsonProperty("id") Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - } - - public OrderItem() { - this(Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public OrderItem withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public OrderItem withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderItem other = (OrderItem) o; - return - Objects.deepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return Objects.hash( - id); - } - - @Override - public String toString() { - return Utils.toString(OrderItem.class, - "id", id); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public OrderItem build() { - return new OrderItem( - id); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderItemInput.java b/src/main/java/com/apideck/unify/models/components/OrderItemInput.java deleted file mode 100644 index b392434..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderItemInput.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - - -public class OrderItemInput { - - @JsonCreator - public OrderItemInput() { - - - } - - public final static Builder builder() { - return new Builder(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Objects.hash( - ); - } - - @Override - public String toString() { - return Utils.toString(OrderItemInput.class); - } - - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public OrderItemInput build() { - return new OrderItemInput( - ); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderLineItems.java b/src/main/java/com/apideck/unify/models/components/OrderLineItems.java deleted file mode 100644 index 14ce22f..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderLineItems.java +++ /dev/null @@ -1,514 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Double; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class OrderLineItems { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("item") - private Optional item; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_tax") - private JsonNullable totalTax; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_discount") - private JsonNullable totalDiscount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_amount") - private JsonNullable totalAmount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("quantity") - private JsonNullable quantity; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("unit_price") - private JsonNullable unitPrice; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("applied_taxes") - private Optional> appliedTaxes; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("applied_discounts") - private Optional> appliedDiscounts; - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("modifiers") - private Optional> modifiers; - - @JsonCreator - public OrderLineItems( - @JsonProperty("name") Optional name, - @JsonProperty("item") Optional item, - @JsonProperty("total_tax") JsonNullable totalTax, - @JsonProperty("total_discount") JsonNullable totalDiscount, - @JsonProperty("total_amount") JsonNullable totalAmount, - @JsonProperty("quantity") JsonNullable quantity, - @JsonProperty("unit_price") JsonNullable unitPrice, - @JsonProperty("applied_taxes") Optional> appliedTaxes, - @JsonProperty("applied_discounts") Optional> appliedDiscounts, - @JsonProperty("modifiers") Optional> modifiers) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(item, "item"); - Utils.checkNotNull(totalTax, "totalTax"); - Utils.checkNotNull(totalDiscount, "totalDiscount"); - Utils.checkNotNull(totalAmount, "totalAmount"); - Utils.checkNotNull(quantity, "quantity"); - Utils.checkNotNull(unitPrice, "unitPrice"); - Utils.checkNotNull(appliedTaxes, "appliedTaxes"); - Utils.checkNotNull(appliedDiscounts, "appliedDiscounts"); - Utils.checkNotNull(modifiers, "modifiers"); - this.name = name; - this.item = item; - this.totalTax = totalTax; - this.totalDiscount = totalDiscount; - this.totalAmount = totalAmount; - this.quantity = quantity; - this.unitPrice = unitPrice; - this.appliedTaxes = appliedTaxes; - this.appliedDiscounts = appliedDiscounts; - this.modifiers = modifiers; - } - - public OrderLineItems() { - this(Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional item() { - return (Optional) item; - } - - @JsonIgnore - public JsonNullable totalTax() { - return totalTax; - } - - @JsonIgnore - public JsonNullable totalDiscount() { - return totalDiscount; - } - - @JsonIgnore - public JsonNullable totalAmount() { - return totalAmount; - } - - @JsonIgnore - public JsonNullable quantity() { - return quantity; - } - - @JsonIgnore - public JsonNullable unitPrice() { - return unitPrice; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> appliedTaxes() { - return (Optional>) appliedTaxes; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> appliedDiscounts() { - return (Optional>) appliedDiscounts; - } - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> modifiers() { - return (Optional>) modifiers; - } - - public final static Builder builder() { - return new Builder(); - } - - public OrderLineItems withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public OrderLineItems withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public OrderLineItems withItem(OrderItemInput item) { - Utils.checkNotNull(item, "item"); - this.item = Optional.ofNullable(item); - return this; - } - - public OrderLineItems withItem(Optional item) { - Utils.checkNotNull(item, "item"); - this.item = item; - return this; - } - - public OrderLineItems withTotalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public OrderLineItems withTotalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public OrderLineItems withTotalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public OrderLineItems withTotalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public OrderLineItems withTotalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public OrderLineItems withTotalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public OrderLineItems withQuantity(double quantity) { - Utils.checkNotNull(quantity, "quantity"); - this.quantity = JsonNullable.of(quantity); - return this; - } - - public OrderLineItems withQuantity(JsonNullable quantity) { - Utils.checkNotNull(quantity, "quantity"); - this.quantity = quantity; - return this; - } - - public OrderLineItems withUnitPrice(double unitPrice) { - Utils.checkNotNull(unitPrice, "unitPrice"); - this.unitPrice = JsonNullable.of(unitPrice); - return this; - } - - public OrderLineItems withUnitPrice(JsonNullable unitPrice) { - Utils.checkNotNull(unitPrice, "unitPrice"); - this.unitPrice = unitPrice; - return this; - } - - public OrderLineItems withAppliedTaxes(List appliedTaxes) { - Utils.checkNotNull(appliedTaxes, "appliedTaxes"); - this.appliedTaxes = Optional.ofNullable(appliedTaxes); - return this; - } - - public OrderLineItems withAppliedTaxes(Optional> appliedTaxes) { - Utils.checkNotNull(appliedTaxes, "appliedTaxes"); - this.appliedTaxes = appliedTaxes; - return this; - } - - public OrderLineItems withAppliedDiscounts(List appliedDiscounts) { - Utils.checkNotNull(appliedDiscounts, "appliedDiscounts"); - this.appliedDiscounts = Optional.ofNullable(appliedDiscounts); - return this; - } - - public OrderLineItems withAppliedDiscounts(Optional> appliedDiscounts) { - Utils.checkNotNull(appliedDiscounts, "appliedDiscounts"); - this.appliedDiscounts = appliedDiscounts; - return this; - } - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - public OrderLineItems withModifiers(List modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = Optional.ofNullable(modifiers); - return this; - } - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - public OrderLineItems withModifiers(Optional> modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = modifiers; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderLineItems other = (OrderLineItems) o; - return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.item, other.item) && - Objects.deepEquals(this.totalTax, other.totalTax) && - Objects.deepEquals(this.totalDiscount, other.totalDiscount) && - Objects.deepEquals(this.totalAmount, other.totalAmount) && - Objects.deepEquals(this.quantity, other.quantity) && - Objects.deepEquals(this.unitPrice, other.unitPrice) && - Objects.deepEquals(this.appliedTaxes, other.appliedTaxes) && - Objects.deepEquals(this.appliedDiscounts, other.appliedDiscounts) && - Objects.deepEquals(this.modifiers, other.modifiers); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - item, - totalTax, - totalDiscount, - totalAmount, - quantity, - unitPrice, - appliedTaxes, - appliedDiscounts, - modifiers); - } - - @Override - public String toString() { - return Utils.toString(OrderLineItems.class, - "name", name, - "item", item, - "totalTax", totalTax, - "totalDiscount", totalDiscount, - "totalAmount", totalAmount, - "quantity", quantity, - "unitPrice", unitPrice, - "appliedTaxes", appliedTaxes, - "appliedDiscounts", appliedDiscounts, - "modifiers", modifiers); - } - - public final static class Builder { - - private Optional name = Optional.empty(); - - private Optional item = Optional.empty(); - - private JsonNullable totalTax = JsonNullable.undefined(); - - private JsonNullable totalDiscount = JsonNullable.undefined(); - - private JsonNullable totalAmount = JsonNullable.undefined(); - - private JsonNullable quantity = JsonNullable.undefined(); - - private JsonNullable unitPrice = JsonNullable.undefined(); - - private Optional> appliedTaxes = Optional.empty(); - - private Optional> appliedDiscounts = Optional.empty(); - - private Optional> modifiers = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder item(OrderItemInput item) { - Utils.checkNotNull(item, "item"); - this.item = Optional.ofNullable(item); - return this; - } - - public Builder item(Optional item) { - Utils.checkNotNull(item, "item"); - this.item = item; - return this; - } - - public Builder totalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public Builder totalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public Builder totalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public Builder totalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public Builder totalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public Builder totalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public Builder quantity(double quantity) { - Utils.checkNotNull(quantity, "quantity"); - this.quantity = JsonNullable.of(quantity); - return this; - } - - public Builder quantity(JsonNullable quantity) { - Utils.checkNotNull(quantity, "quantity"); - this.quantity = quantity; - return this; - } - - public Builder unitPrice(double unitPrice) { - Utils.checkNotNull(unitPrice, "unitPrice"); - this.unitPrice = JsonNullable.of(unitPrice); - return this; - } - - public Builder unitPrice(JsonNullable unitPrice) { - Utils.checkNotNull(unitPrice, "unitPrice"); - this.unitPrice = unitPrice; - return this; - } - - public Builder appliedTaxes(List appliedTaxes) { - Utils.checkNotNull(appliedTaxes, "appliedTaxes"); - this.appliedTaxes = Optional.ofNullable(appliedTaxes); - return this; - } - - public Builder appliedTaxes(Optional> appliedTaxes) { - Utils.checkNotNull(appliedTaxes, "appliedTaxes"); - this.appliedTaxes = appliedTaxes; - return this; - } - - public Builder appliedDiscounts(List appliedDiscounts) { - Utils.checkNotNull(appliedDiscounts, "appliedDiscounts"); - this.appliedDiscounts = Optional.ofNullable(appliedDiscounts); - return this; - } - - public Builder appliedDiscounts(Optional> appliedDiscounts) { - Utils.checkNotNull(appliedDiscounts, "appliedDiscounts"); - this.appliedDiscounts = appliedDiscounts; - return this; - } - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - public Builder modifiers(List modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = Optional.ofNullable(modifiers); - return this; - } - - /** - * Customizable options – toppings, add-ons, or special requests – create item modifiers. Modifiers that are applied to items will display on your customers’ digital receipts - */ - public Builder modifiers(Optional> modifiers) { - Utils.checkNotNull(modifiers, "modifiers"); - this.modifiers = modifiers; - return this; - } - - public OrderLineItems build() { - return new OrderLineItems( - name, - item, - totalTax, - totalDiscount, - totalAmount, - quantity, - unitPrice, - appliedTaxes, - appliedDiscounts, - modifiers); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderModifiers.java b/src/main/java/com/apideck/unify/models/components/OrderModifiers.java deleted file mode 100644 index 308d615..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderModifiers.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class OrderModifiers { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("alternate_name") - private Optional alternateName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("modifier_group_id") - private Optional modifierGroupId; - - @JsonCreator - public OrderModifiers( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("alternate_name") Optional alternateName, - @JsonProperty("modifier_group_id") Optional modifierGroupId) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(alternateName, "alternateName"); - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.id = id; - this.name = name; - this.amount = amount; - this.currency = currency; - this.alternateName = alternateName; - this.modifierGroupId = modifierGroupId; - } - - public OrderModifiers() { - this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public Optional alternateName() { - return alternateName; - } - - @JsonIgnore - public Optional modifierGroupId() { - return modifierGroupId; - } - - public final static Builder builder() { - return new Builder(); - } - - public OrderModifiers withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public OrderModifiers withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public OrderModifiers withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public OrderModifiers withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public OrderModifiers withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public OrderModifiers withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderModifiers withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderModifiers withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public OrderModifiers withAlternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public OrderModifiers withAlternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public OrderModifiers withModifierGroupId(String modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = Optional.ofNullable(modifierGroupId); - return this; - } - - public OrderModifiers withModifierGroupId(Optional modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = modifierGroupId; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderModifiers other = (OrderModifiers) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.alternateName, other.alternateName) && - Objects.deepEquals(this.modifierGroupId, other.modifierGroupId); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - amount, - currency, - alternateName, - modifierGroupId); - } - - @Override - public String toString() { - return Utils.toString(OrderModifiers.class, - "id", id, - "name", name, - "amount", amount, - "currency", currency, - "alternateName", alternateName, - "modifierGroupId", modifierGroupId); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Optional alternateName = Optional.empty(); - - private Optional modifierGroupId = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder alternateName(String alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = Optional.ofNullable(alternateName); - return this; - } - - public Builder alternateName(Optional alternateName) { - Utils.checkNotNull(alternateName, "alternateName"); - this.alternateName = alternateName; - return this; - } - - public Builder modifierGroupId(String modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = Optional.ofNullable(modifierGroupId); - return this; - } - - public Builder modifierGroupId(Optional modifierGroupId) { - Utils.checkNotNull(modifierGroupId, "modifierGroupId"); - this.modifierGroupId = modifierGroupId; - return this; - } - - public OrderModifiers build() { - return new OrderModifiers( - id, - name, - amount, - currency, - alternateName, - modifierGroupId); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderPayments.java b/src/main/java/com/apideck/unify/models/components/OrderPayments.java deleted file mode 100644 index a81c0aa..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderPayments.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class OrderPayments { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonCreator - public OrderPayments( - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - this.amount = amount; - this.currency = currency; - } - - public OrderPayments() { - this(Optional.empty(), JsonNullable.undefined()); - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - public final static Builder builder() { - return new Builder(); - } - - public OrderPayments withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public OrderPayments withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderPayments withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderPayments withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderPayments other = (OrderPayments) o; - return - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency); - } - - @Override - public int hashCode() { - return Objects.hash( - amount, - currency); - } - - @Override - public String toString() { - return Utils.toString(OrderPayments.class, - "amount", amount, - "currency", currency); - } - - public final static class Builder { - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public OrderPayments build() { - return new OrderPayments( - amount, - currency); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderPickupDetails.java b/src/main/java/com/apideck/unify/models/components/OrderPickupDetails.java deleted file mode 100644 index 2f976ca..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderPickupDetails.java +++ /dev/null @@ -1,1178 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class OrderPickupDetails { - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("auto_complete_duration") - private JsonNullable autoCompleteDuration; - - /** - * A description of why the pickup was canceled. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cancel_reason") - private JsonNullable cancelReason; - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("expires_at") - private Optional expiresAt; - - /** - * The schedule type of the pickup fulfillment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("schedule_type") - private Optional scheduleType; - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pickup_at") - private Optional pickupAt; - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pickup_window_duration") - private Optional pickupWindowDuration; - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("prep_time_duration") - private Optional prepTimeDuration; - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("note") - private Optional note; - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("placed_at") - private Optional placedAt; - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("rejected_at") - private Optional rejectedAt; - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ready_at") - private Optional readyAt; - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("expired_at") - private Optional expiredAt; - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("picked_up_at") - private Optional pickedUpAt; - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("canceled_at") - private Optional canceledAt; - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("is_curbside_pickup") - private Optional isCurbsidePickup; - - /** - * Specific details for curbside pickup. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("curbside_pickup_details") - private Optional curbsidePickupDetails; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("recipient") - private Optional recipient; - - @JsonCreator - public OrderPickupDetails( - @JsonProperty("auto_complete_duration") JsonNullable autoCompleteDuration, - @JsonProperty("cancel_reason") JsonNullable cancelReason, - @JsonProperty("expires_at") Optional expiresAt, - @JsonProperty("schedule_type") Optional scheduleType, - @JsonProperty("pickup_at") Optional pickupAt, - @JsonProperty("pickup_window_duration") Optional pickupWindowDuration, - @JsonProperty("prep_time_duration") Optional prepTimeDuration, - @JsonProperty("note") Optional note, - @JsonProperty("placed_at") Optional placedAt, - @JsonProperty("rejected_at") Optional rejectedAt, - @JsonProperty("ready_at") Optional readyAt, - @JsonProperty("expired_at") Optional expiredAt, - @JsonProperty("picked_up_at") Optional pickedUpAt, - @JsonProperty("canceled_at") Optional canceledAt, - @JsonProperty("is_curbside_pickup") Optional isCurbsidePickup, - @JsonProperty("curbside_pickup_details") Optional curbsidePickupDetails, - @JsonProperty("recipient") Optional recipient) { - Utils.checkNotNull(autoCompleteDuration, "autoCompleteDuration"); - Utils.checkNotNull(cancelReason, "cancelReason"); - Utils.checkNotNull(expiresAt, "expiresAt"); - Utils.checkNotNull(scheduleType, "scheduleType"); - Utils.checkNotNull(pickupAt, "pickupAt"); - Utils.checkNotNull(pickupWindowDuration, "pickupWindowDuration"); - Utils.checkNotNull(prepTimeDuration, "prepTimeDuration"); - Utils.checkNotNull(note, "note"); - Utils.checkNotNull(placedAt, "placedAt"); - Utils.checkNotNull(rejectedAt, "rejectedAt"); - Utils.checkNotNull(readyAt, "readyAt"); - Utils.checkNotNull(expiredAt, "expiredAt"); - Utils.checkNotNull(pickedUpAt, "pickedUpAt"); - Utils.checkNotNull(canceledAt, "canceledAt"); - Utils.checkNotNull(isCurbsidePickup, "isCurbsidePickup"); - Utils.checkNotNull(curbsidePickupDetails, "curbsidePickupDetails"); - Utils.checkNotNull(recipient, "recipient"); - this.autoCompleteDuration = autoCompleteDuration; - this.cancelReason = cancelReason; - this.expiresAt = expiresAt; - this.scheduleType = scheduleType; - this.pickupAt = pickupAt; - this.pickupWindowDuration = pickupWindowDuration; - this.prepTimeDuration = prepTimeDuration; - this.note = note; - this.placedAt = placedAt; - this.rejectedAt = rejectedAt; - this.readyAt = readyAt; - this.expiredAt = expiredAt; - this.pickedUpAt = pickedUpAt; - this.canceledAt = canceledAt; - this.isCurbsidePickup = isCurbsidePickup; - this.curbsidePickupDetails = curbsidePickupDetails; - this.recipient = recipient; - } - - public OrderPickupDetails() { - this(JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - @JsonIgnore - public JsonNullable autoCompleteDuration() { - return autoCompleteDuration; - } - - /** - * A description of why the pickup was canceled. - */ - @JsonIgnore - public JsonNullable cancelReason() { - return cancelReason; - } - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - @JsonIgnore - public Optional expiresAt() { - return expiresAt; - } - - /** - * The schedule type of the pickup fulfillment. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional scheduleType() { - return (Optional) scheduleType; - } - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - @JsonIgnore - public Optional pickupAt() { - return pickupAt; - } - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - @JsonIgnore - public Optional pickupWindowDuration() { - return pickupWindowDuration; - } - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - @JsonIgnore - public Optional prepTimeDuration() { - return prepTimeDuration; - } - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - @JsonIgnore - public Optional note() { - return note; - } - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional placedAt() { - return placedAt; - } - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional rejectedAt() { - return rejectedAt; - } - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional readyAt() { - return readyAt; - } - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional expiredAt() { - return expiredAt; - } - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional pickedUpAt() { - return pickedUpAt; - } - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional canceledAt() { - return canceledAt; - } - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - @JsonIgnore - public Optional isCurbsidePickup() { - return isCurbsidePickup; - } - - /** - * Specific details for curbside pickup. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional curbsidePickupDetails() { - return (Optional) curbsidePickupDetails; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional recipient() { - return (Optional) recipient; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - public OrderPickupDetails withAutoCompleteDuration(String autoCompleteDuration) { - Utils.checkNotNull(autoCompleteDuration, "autoCompleteDuration"); - this.autoCompleteDuration = JsonNullable.of(autoCompleteDuration); - return this; - } - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - public OrderPickupDetails withAutoCompleteDuration(JsonNullable autoCompleteDuration) { - Utils.checkNotNull(autoCompleteDuration, "autoCompleteDuration"); - this.autoCompleteDuration = autoCompleteDuration; - return this; - } - - /** - * A description of why the pickup was canceled. - */ - public OrderPickupDetails withCancelReason(String cancelReason) { - Utils.checkNotNull(cancelReason, "cancelReason"); - this.cancelReason = JsonNullable.of(cancelReason); - return this; - } - - /** - * A description of why the pickup was canceled. - */ - public OrderPickupDetails withCancelReason(JsonNullable cancelReason) { - Utils.checkNotNull(cancelReason, "cancelReason"); - this.cancelReason = cancelReason; - return this; - } - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - public OrderPickupDetails withExpiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = Optional.ofNullable(expiresAt); - return this; - } - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - public OrderPickupDetails withExpiresAt(Optional expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - /** - * The schedule type of the pickup fulfillment. - */ - public OrderPickupDetails withScheduleType(ScheduleType scheduleType) { - Utils.checkNotNull(scheduleType, "scheduleType"); - this.scheduleType = Optional.ofNullable(scheduleType); - return this; - } - - /** - * The schedule type of the pickup fulfillment. - */ - public OrderPickupDetails withScheduleType(Optional scheduleType) { - Utils.checkNotNull(scheduleType, "scheduleType"); - this.scheduleType = scheduleType; - return this; - } - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - public OrderPickupDetails withPickupAt(OffsetDateTime pickupAt) { - Utils.checkNotNull(pickupAt, "pickupAt"); - this.pickupAt = Optional.ofNullable(pickupAt); - return this; - } - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - public OrderPickupDetails withPickupAt(Optional pickupAt) { - Utils.checkNotNull(pickupAt, "pickupAt"); - this.pickupAt = pickupAt; - return this; - } - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - public OrderPickupDetails withPickupWindowDuration(String pickupWindowDuration) { - Utils.checkNotNull(pickupWindowDuration, "pickupWindowDuration"); - this.pickupWindowDuration = Optional.ofNullable(pickupWindowDuration); - return this; - } - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - public OrderPickupDetails withPickupWindowDuration(Optional pickupWindowDuration) { - Utils.checkNotNull(pickupWindowDuration, "pickupWindowDuration"); - this.pickupWindowDuration = pickupWindowDuration; - return this; - } - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - public OrderPickupDetails withPrepTimeDuration(String prepTimeDuration) { - Utils.checkNotNull(prepTimeDuration, "prepTimeDuration"); - this.prepTimeDuration = Optional.ofNullable(prepTimeDuration); - return this; - } - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - public OrderPickupDetails withPrepTimeDuration(Optional prepTimeDuration) { - Utils.checkNotNull(prepTimeDuration, "prepTimeDuration"); - this.prepTimeDuration = prepTimeDuration; - return this; - } - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - public OrderPickupDetails withNote(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - public OrderPickupDetails withNote(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withPlacedAt(OffsetDateTime placedAt) { - Utils.checkNotNull(placedAt, "placedAt"); - this.placedAt = Optional.ofNullable(placedAt); - return this; - } - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withPlacedAt(Optional placedAt) { - Utils.checkNotNull(placedAt, "placedAt"); - this.placedAt = placedAt; - return this; - } - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withRejectedAt(OffsetDateTime rejectedAt) { - Utils.checkNotNull(rejectedAt, "rejectedAt"); - this.rejectedAt = Optional.ofNullable(rejectedAt); - return this; - } - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withRejectedAt(Optional rejectedAt) { - Utils.checkNotNull(rejectedAt, "rejectedAt"); - this.rejectedAt = rejectedAt; - return this; - } - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withReadyAt(OffsetDateTime readyAt) { - Utils.checkNotNull(readyAt, "readyAt"); - this.readyAt = Optional.ofNullable(readyAt); - return this; - } - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withReadyAt(Optional readyAt) { - Utils.checkNotNull(readyAt, "readyAt"); - this.readyAt = readyAt; - return this; - } - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withExpiredAt(OffsetDateTime expiredAt) { - Utils.checkNotNull(expiredAt, "expiredAt"); - this.expiredAt = Optional.ofNullable(expiredAt); - return this; - } - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withExpiredAt(Optional expiredAt) { - Utils.checkNotNull(expiredAt, "expiredAt"); - this.expiredAt = expiredAt; - return this; - } - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withPickedUpAt(OffsetDateTime pickedUpAt) { - Utils.checkNotNull(pickedUpAt, "pickedUpAt"); - this.pickedUpAt = Optional.ofNullable(pickedUpAt); - return this; - } - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withPickedUpAt(Optional pickedUpAt) { - Utils.checkNotNull(pickedUpAt, "pickedUpAt"); - this.pickedUpAt = pickedUpAt; - return this; - } - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withCanceledAt(OffsetDateTime canceledAt) { - Utils.checkNotNull(canceledAt, "canceledAt"); - this.canceledAt = Optional.ofNullable(canceledAt); - return this; - } - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public OrderPickupDetails withCanceledAt(Optional canceledAt) { - Utils.checkNotNull(canceledAt, "canceledAt"); - this.canceledAt = canceledAt; - return this; - } - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - public OrderPickupDetails withIsCurbsidePickup(boolean isCurbsidePickup) { - Utils.checkNotNull(isCurbsidePickup, "isCurbsidePickup"); - this.isCurbsidePickup = Optional.ofNullable(isCurbsidePickup); - return this; - } - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - public OrderPickupDetails withIsCurbsidePickup(Optional isCurbsidePickup) { - Utils.checkNotNull(isCurbsidePickup, "isCurbsidePickup"); - this.isCurbsidePickup = isCurbsidePickup; - return this; - } - - /** - * Specific details for curbside pickup. - */ - public OrderPickupDetails withCurbsidePickupDetails(CurbsidePickupDetails curbsidePickupDetails) { - Utils.checkNotNull(curbsidePickupDetails, "curbsidePickupDetails"); - this.curbsidePickupDetails = Optional.ofNullable(curbsidePickupDetails); - return this; - } - - /** - * Specific details for curbside pickup. - */ - public OrderPickupDetails withCurbsidePickupDetails(Optional curbsidePickupDetails) { - Utils.checkNotNull(curbsidePickupDetails, "curbsidePickupDetails"); - this.curbsidePickupDetails = curbsidePickupDetails; - return this; - } - - public OrderPickupDetails withRecipient(Recipient recipient) { - Utils.checkNotNull(recipient, "recipient"); - this.recipient = Optional.ofNullable(recipient); - return this; - } - - public OrderPickupDetails withRecipient(Optional recipient) { - Utils.checkNotNull(recipient, "recipient"); - this.recipient = recipient; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderPickupDetails other = (OrderPickupDetails) o; - return - Objects.deepEquals(this.autoCompleteDuration, other.autoCompleteDuration) && - Objects.deepEquals(this.cancelReason, other.cancelReason) && - Objects.deepEquals(this.expiresAt, other.expiresAt) && - Objects.deepEquals(this.scheduleType, other.scheduleType) && - Objects.deepEquals(this.pickupAt, other.pickupAt) && - Objects.deepEquals(this.pickupWindowDuration, other.pickupWindowDuration) && - Objects.deepEquals(this.prepTimeDuration, other.prepTimeDuration) && - Objects.deepEquals(this.note, other.note) && - Objects.deepEquals(this.placedAt, other.placedAt) && - Objects.deepEquals(this.rejectedAt, other.rejectedAt) && - Objects.deepEquals(this.readyAt, other.readyAt) && - Objects.deepEquals(this.expiredAt, other.expiredAt) && - Objects.deepEquals(this.pickedUpAt, other.pickedUpAt) && - Objects.deepEquals(this.canceledAt, other.canceledAt) && - Objects.deepEquals(this.isCurbsidePickup, other.isCurbsidePickup) && - Objects.deepEquals(this.curbsidePickupDetails, other.curbsidePickupDetails) && - Objects.deepEquals(this.recipient, other.recipient); - } - - @Override - public int hashCode() { - return Objects.hash( - autoCompleteDuration, - cancelReason, - expiresAt, - scheduleType, - pickupAt, - pickupWindowDuration, - prepTimeDuration, - note, - placedAt, - rejectedAt, - readyAt, - expiredAt, - pickedUpAt, - canceledAt, - isCurbsidePickup, - curbsidePickupDetails, - recipient); - } - - @Override - public String toString() { - return Utils.toString(OrderPickupDetails.class, - "autoCompleteDuration", autoCompleteDuration, - "cancelReason", cancelReason, - "expiresAt", expiresAt, - "scheduleType", scheduleType, - "pickupAt", pickupAt, - "pickupWindowDuration", pickupWindowDuration, - "prepTimeDuration", prepTimeDuration, - "note", note, - "placedAt", placedAt, - "rejectedAt", rejectedAt, - "readyAt", readyAt, - "expiredAt", expiredAt, - "pickedUpAt", pickedUpAt, - "canceledAt", canceledAt, - "isCurbsidePickup", isCurbsidePickup, - "curbsidePickupDetails", curbsidePickupDetails, - "recipient", recipient); - } - - public final static class Builder { - - private JsonNullable autoCompleteDuration = JsonNullable.undefined(); - - private JsonNullable cancelReason = JsonNullable.undefined(); - - private Optional expiresAt = Optional.empty(); - - private Optional scheduleType = Optional.empty(); - - private Optional pickupAt = Optional.empty(); - - private Optional pickupWindowDuration = Optional.empty(); - - private Optional prepTimeDuration = Optional.empty(); - - private Optional note = Optional.empty(); - - private Optional placedAt = Optional.empty(); - - private Optional rejectedAt = Optional.empty(); - - private Optional readyAt = Optional.empty(); - - private Optional expiredAt = Optional.empty(); - - private Optional pickedUpAt = Optional.empty(); - - private Optional canceledAt = Optional.empty(); - - private Optional isCurbsidePickup = Optional.empty(); - - private Optional curbsidePickupDetails = Optional.empty(); - - private Optional recipient = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - public Builder autoCompleteDuration(String autoCompleteDuration) { - Utils.checkNotNull(autoCompleteDuration, "autoCompleteDuration"); - this.autoCompleteDuration = JsonNullable.of(autoCompleteDuration); - return this; - } - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - public Builder autoCompleteDuration(JsonNullable autoCompleteDuration) { - Utils.checkNotNull(autoCompleteDuration, "autoCompleteDuration"); - this.autoCompleteDuration = autoCompleteDuration; - return this; - } - - /** - * A description of why the pickup was canceled. - */ - public Builder cancelReason(String cancelReason) { - Utils.checkNotNull(cancelReason, "cancelReason"); - this.cancelReason = JsonNullable.of(cancelReason); - return this; - } - - /** - * A description of why the pickup was canceled. - */ - public Builder cancelReason(JsonNullable cancelReason) { - Utils.checkNotNull(cancelReason, "cancelReason"); - this.cancelReason = cancelReason; - return this; - } - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - public Builder expiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = Optional.ofNullable(expiresAt); - return this; - } - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - public Builder expiresAt(Optional expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - /** - * The schedule type of the pickup fulfillment. - */ - public Builder scheduleType(ScheduleType scheduleType) { - Utils.checkNotNull(scheduleType, "scheduleType"); - this.scheduleType = Optional.ofNullable(scheduleType); - return this; - } - - /** - * The schedule type of the pickup fulfillment. - */ - public Builder scheduleType(Optional scheduleType) { - Utils.checkNotNull(scheduleType, "scheduleType"); - this.scheduleType = scheduleType; - return this; - } - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - public Builder pickupAt(OffsetDateTime pickupAt) { - Utils.checkNotNull(pickupAt, "pickupAt"); - this.pickupAt = Optional.ofNullable(pickupAt); - return this; - } - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - public Builder pickupAt(Optional pickupAt) { - Utils.checkNotNull(pickupAt, "pickupAt"); - this.pickupAt = pickupAt; - return this; - } - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - public Builder pickupWindowDuration(String pickupWindowDuration) { - Utils.checkNotNull(pickupWindowDuration, "pickupWindowDuration"); - this.pickupWindowDuration = Optional.ofNullable(pickupWindowDuration); - return this; - } - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - public Builder pickupWindowDuration(Optional pickupWindowDuration) { - Utils.checkNotNull(pickupWindowDuration, "pickupWindowDuration"); - this.pickupWindowDuration = pickupWindowDuration; - return this; - } - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - public Builder prepTimeDuration(String prepTimeDuration) { - Utils.checkNotNull(prepTimeDuration, "prepTimeDuration"); - this.prepTimeDuration = Optional.ofNullable(prepTimeDuration); - return this; - } - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - public Builder prepTimeDuration(Optional prepTimeDuration) { - Utils.checkNotNull(prepTimeDuration, "prepTimeDuration"); - this.prepTimeDuration = prepTimeDuration; - return this; - } - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - public Builder note(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - public Builder note(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder placedAt(OffsetDateTime placedAt) { - Utils.checkNotNull(placedAt, "placedAt"); - this.placedAt = Optional.ofNullable(placedAt); - return this; - } - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder placedAt(Optional placedAt) { - Utils.checkNotNull(placedAt, "placedAt"); - this.placedAt = placedAt; - return this; - } - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder rejectedAt(OffsetDateTime rejectedAt) { - Utils.checkNotNull(rejectedAt, "rejectedAt"); - this.rejectedAt = Optional.ofNullable(rejectedAt); - return this; - } - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder rejectedAt(Optional rejectedAt) { - Utils.checkNotNull(rejectedAt, "rejectedAt"); - this.rejectedAt = rejectedAt; - return this; - } - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder readyAt(OffsetDateTime readyAt) { - Utils.checkNotNull(readyAt, "readyAt"); - this.readyAt = Optional.ofNullable(readyAt); - return this; - } - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder readyAt(Optional readyAt) { - Utils.checkNotNull(readyAt, "readyAt"); - this.readyAt = readyAt; - return this; - } - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder expiredAt(OffsetDateTime expiredAt) { - Utils.checkNotNull(expiredAt, "expiredAt"); - this.expiredAt = Optional.ofNullable(expiredAt); - return this; - } - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder expiredAt(Optional expiredAt) { - Utils.checkNotNull(expiredAt, "expiredAt"); - this.expiredAt = expiredAt; - return this; - } - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder pickedUpAt(OffsetDateTime pickedUpAt) { - Utils.checkNotNull(pickedUpAt, "pickedUpAt"); - this.pickedUpAt = Optional.ofNullable(pickedUpAt); - return this; - } - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder pickedUpAt(Optional pickedUpAt) { - Utils.checkNotNull(pickedUpAt, "pickedUpAt"); - this.pickedUpAt = pickedUpAt; - return this; - } - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder canceledAt(OffsetDateTime canceledAt) { - Utils.checkNotNull(canceledAt, "canceledAt"); - this.canceledAt = Optional.ofNullable(canceledAt); - return this; - } - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder canceledAt(Optional canceledAt) { - Utils.checkNotNull(canceledAt, "canceledAt"); - this.canceledAt = canceledAt; - return this; - } - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - public Builder isCurbsidePickup(boolean isCurbsidePickup) { - Utils.checkNotNull(isCurbsidePickup, "isCurbsidePickup"); - this.isCurbsidePickup = Optional.ofNullable(isCurbsidePickup); - return this; - } - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - public Builder isCurbsidePickup(Optional isCurbsidePickup) { - Utils.checkNotNull(isCurbsidePickup, "isCurbsidePickup"); - this.isCurbsidePickup = isCurbsidePickup; - return this; - } - - /** - * Specific details for curbside pickup. - */ - public Builder curbsidePickupDetails(CurbsidePickupDetails curbsidePickupDetails) { - Utils.checkNotNull(curbsidePickupDetails, "curbsidePickupDetails"); - this.curbsidePickupDetails = Optional.ofNullable(curbsidePickupDetails); - return this; - } - - /** - * Specific details for curbside pickup. - */ - public Builder curbsidePickupDetails(Optional curbsidePickupDetails) { - Utils.checkNotNull(curbsidePickupDetails, "curbsidePickupDetails"); - this.curbsidePickupDetails = curbsidePickupDetails; - return this; - } - - public Builder recipient(Recipient recipient) { - Utils.checkNotNull(recipient, "recipient"); - this.recipient = Optional.ofNullable(recipient); - return this; - } - - public Builder recipient(Optional recipient) { - Utils.checkNotNull(recipient, "recipient"); - this.recipient = recipient; - return this; - } - - public OrderPickupDetails build() { - return new OrderPickupDetails( - autoCompleteDuration, - cancelReason, - expiresAt, - scheduleType, - pickupAt, - pickupWindowDuration, - prepTimeDuration, - note, - placedAt, - rejectedAt, - readyAt, - expiredAt, - pickedUpAt, - canceledAt, - isCurbsidePickup, - curbsidePickupDetails, - recipient); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderRefunds.java b/src/main/java/com/apideck/unify/models/components/OrderRefunds.java deleted file mode 100644 index a5f2c95..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderRefunds.java +++ /dev/null @@ -1,258 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class OrderRefunds { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reason") - private Optional reason; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public OrderRefunds( - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("reason") Optional reason, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(reason, "reason"); - Utils.checkNotNull(status, "status"); - this.amount = amount; - this.currency = currency; - this.reason = reason; - this.status = status; - } - - public OrderRefunds() { - this(Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public Optional reason() { - return reason; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public OrderRefunds withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public OrderRefunds withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderRefunds withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderRefunds withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public OrderRefunds withReason(String reason) { - Utils.checkNotNull(reason, "reason"); - this.reason = Optional.ofNullable(reason); - return this; - } - - public OrderRefunds withReason(Optional reason) { - Utils.checkNotNull(reason, "reason"); - this.reason = reason; - return this; - } - - public OrderRefunds withStatus(OrderRefundsStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public OrderRefunds withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderRefunds other = (OrderRefunds) o; - return - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.reason, other.reason) && - Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return Objects.hash( - amount, - currency, - reason, - status); - } - - @Override - public String toString() { - return Utils.toString(OrderRefunds.class, - "amount", amount, - "currency", currency, - "reason", reason, - "status", status); - } - - public final static class Builder { - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Optional reason = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder reason(String reason) { - Utils.checkNotNull(reason, "reason"); - this.reason = Optional.ofNullable(reason); - return this; - } - - public Builder reason(Optional reason) { - Utils.checkNotNull(reason, "reason"); - this.reason = reason; - return this; - } - - public Builder status(OrderRefundsStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public OrderRefunds build() { - return new OrderRefunds( - amount, - currency, - reason, - status); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderRefundsStatus.java b/src/main/java/com/apideck/unify/models/components/OrderRefundsStatus.java deleted file mode 100644 index 42e3931..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderRefundsStatus.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum OrderRefundsStatus { - PENDING("pending"), - APPROVED("approved"), - REJECTED("rejected"), - FAILED("failed"); - - @JsonValue - private final String value; - - private OrderRefundsStatus(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/OrderScope.java b/src/main/java/com/apideck/unify/models/components/OrderScope.java deleted file mode 100644 index c2b3b7e..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderScope.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum OrderScope { - ORDER("order"), - LINE_ITEM("line_item"); - - @JsonValue - private final String value; - - private OrderScope(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/OrderStatus.java b/src/main/java/com/apideck/unify/models/components/OrderStatus.java deleted file mode 100644 index ea50f02..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderStatus.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * OrderStatus - Order status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidden order is not displayed in user interfaces and can only be retrieved by its id. When creating an order via the REST API the value must be manually set to 'open'. More info [https://docs.clover.com/reference/orderupdateorder]() - */ -public enum OrderStatus { - OPEN("open"), - DRAFT("draft"), - DELIVERED("delivered"), - DELAYED("delayed"), - VOIDED("voided"), - COMPLETED("completed"), - HIDDEN("hidden"); - - @JsonValue - private final String value; - - private OrderStatus(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/OrderTaxesType.java b/src/main/java/com/apideck/unify/models/components/OrderTaxesType.java deleted file mode 100644 index ce875a6..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderTaxesType.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum OrderTaxesType { - UNKNOWN("unknown"), - ADDITIVE("additive"), - INCLUSIVE("inclusive"); - - @JsonValue - private final String value; - - private OrderTaxesType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/OrderTenders.java b/src/main/java/com/apideck/unify/models/components/OrderTenders.java deleted file mode 100644 index 9db6c29..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderTenders.java +++ /dev/null @@ -1,940 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Double; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class OrderTenders { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("note") - private Optional note; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("percentage") - private Optional percentage; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_amount") - private JsonNullable totalAmount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_tip") - private JsonNullable totalTip; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_processing_fee") - private JsonNullable totalProcessingFee; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_tax") - private JsonNullable totalTax; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_discount") - private JsonNullable totalDiscount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_refund") - private JsonNullable totalRefund; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_service_charge") - private JsonNullable totalServiceCharge; - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("buyer_tendered_cash_amount") - private JsonNullable buyerTenderedCashAmount; - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("change_back_cash_amount") - private JsonNullable changeBackCashAmount; - - /** - * A card's non-confidential details. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card") - private JsonNullable card; - - /** - * The status of the card. Only applicable when the tender type is card. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card_status") - private JsonNullable cardStatus; - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card_entry_method") - private JsonNullable cardEntryMethod; - - @JsonCreator - public OrderTenders( - @JsonProperty("name") Optional name, - @JsonProperty("type") Optional type, - @JsonProperty("note") Optional note, - @JsonProperty("amount") Optional amount, - @JsonProperty("percentage") Optional percentage, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("total_amount") JsonNullable totalAmount, - @JsonProperty("total_tip") JsonNullable totalTip, - @JsonProperty("total_processing_fee") JsonNullable totalProcessingFee, - @JsonProperty("total_tax") JsonNullable totalTax, - @JsonProperty("total_discount") JsonNullable totalDiscount, - @JsonProperty("total_refund") JsonNullable totalRefund, - @JsonProperty("total_service_charge") JsonNullable totalServiceCharge, - @JsonProperty("buyer_tendered_cash_amount") JsonNullable buyerTenderedCashAmount, - @JsonProperty("change_back_cash_amount") JsonNullable changeBackCashAmount, - @JsonProperty("card") JsonNullable card, - @JsonProperty("card_status") JsonNullable cardStatus, - @JsonProperty("card_entry_method") JsonNullable cardEntryMethod) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(note, "note"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(percentage, "percentage"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(totalAmount, "totalAmount"); - Utils.checkNotNull(totalTip, "totalTip"); - Utils.checkNotNull(totalProcessingFee, "totalProcessingFee"); - Utils.checkNotNull(totalTax, "totalTax"); - Utils.checkNotNull(totalDiscount, "totalDiscount"); - Utils.checkNotNull(totalRefund, "totalRefund"); - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - Utils.checkNotNull(buyerTenderedCashAmount, "buyerTenderedCashAmount"); - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - Utils.checkNotNull(card, "card"); - Utils.checkNotNull(cardStatus, "cardStatus"); - Utils.checkNotNull(cardEntryMethod, "cardEntryMethod"); - this.name = name; - this.type = type; - this.note = note; - this.amount = amount; - this.percentage = percentage; - this.currency = currency; - this.totalAmount = totalAmount; - this.totalTip = totalTip; - this.totalProcessingFee = totalProcessingFee; - this.totalTax = totalTax; - this.totalDiscount = totalDiscount; - this.totalRefund = totalRefund; - this.totalServiceCharge = totalServiceCharge; - this.buyerTenderedCashAmount = buyerTenderedCashAmount; - this.changeBackCashAmount = changeBackCashAmount; - this.card = card; - this.cardStatus = cardStatus; - this.cardEntryMethod = cardEntryMethod; - } - - public OrderTenders() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined()); - } - - @JsonIgnore - public Optional name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @JsonIgnore - public Optional note() { - return note; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - @JsonIgnore - public Optional percentage() { - return percentage; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public JsonNullable totalAmount() { - return totalAmount; - } - - @JsonIgnore - public JsonNullable totalTip() { - return totalTip; - } - - @JsonIgnore - public JsonNullable totalProcessingFee() { - return totalProcessingFee; - } - - @JsonIgnore - public JsonNullable totalTax() { - return totalTax; - } - - @JsonIgnore - public JsonNullable totalDiscount() { - return totalDiscount; - } - - @JsonIgnore - public JsonNullable totalRefund() { - return totalRefund; - } - - @JsonIgnore - public JsonNullable totalServiceCharge() { - return totalServiceCharge; - } - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - @JsonIgnore - public JsonNullable buyerTenderedCashAmount() { - return buyerTenderedCashAmount; - } - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - @JsonIgnore - public JsonNullable changeBackCashAmount() { - return changeBackCashAmount; - } - - /** - * A card's non-confidential details. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable card() { - return (JsonNullable) card; - } - - /** - * The status of the card. Only applicable when the tender type is card. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable cardStatus() { - return (JsonNullable) cardStatus; - } - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable cardEntryMethod() { - return (JsonNullable) cardEntryMethod; - } - - public final static Builder builder() { - return new Builder(); - } - - public OrderTenders withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public OrderTenders withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public OrderTenders withType(OrderTendersType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public OrderTenders withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public OrderTenders withNote(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - public OrderTenders withNote(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - public OrderTenders withAmount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public OrderTenders withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public OrderTenders withPercentage(double percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = Optional.ofNullable(percentage); - return this; - } - - public OrderTenders withPercentage(Optional percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = percentage; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderTenders withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public OrderTenders withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public OrderTenders withTotalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public OrderTenders withTotalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public OrderTenders withTotalTip(long totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = JsonNullable.of(totalTip); - return this; - } - - public OrderTenders withTotalTip(JsonNullable totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = totalTip; - return this; - } - - public OrderTenders withTotalProcessingFee(long totalProcessingFee) { - Utils.checkNotNull(totalProcessingFee, "totalProcessingFee"); - this.totalProcessingFee = JsonNullable.of(totalProcessingFee); - return this; - } - - public OrderTenders withTotalProcessingFee(JsonNullable totalProcessingFee) { - Utils.checkNotNull(totalProcessingFee, "totalProcessingFee"); - this.totalProcessingFee = totalProcessingFee; - return this; - } - - public OrderTenders withTotalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public OrderTenders withTotalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public OrderTenders withTotalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public OrderTenders withTotalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public OrderTenders withTotalRefund(long totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = JsonNullable.of(totalRefund); - return this; - } - - public OrderTenders withTotalRefund(JsonNullable totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = totalRefund; - return this; - } - - public OrderTenders withTotalServiceCharge(long totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = JsonNullable.of(totalServiceCharge); - return this; - } - - public OrderTenders withTotalServiceCharge(JsonNullable totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = totalServiceCharge; - return this; - } - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - public OrderTenders withBuyerTenderedCashAmount(long buyerTenderedCashAmount) { - Utils.checkNotNull(buyerTenderedCashAmount, "buyerTenderedCashAmount"); - this.buyerTenderedCashAmount = JsonNullable.of(buyerTenderedCashAmount); - return this; - } - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - public OrderTenders withBuyerTenderedCashAmount(JsonNullable buyerTenderedCashAmount) { - Utils.checkNotNull(buyerTenderedCashAmount, "buyerTenderedCashAmount"); - this.buyerTenderedCashAmount = buyerTenderedCashAmount; - return this; - } - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - public OrderTenders withChangeBackCashAmount(long changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = JsonNullable.of(changeBackCashAmount); - return this; - } - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - public OrderTenders withChangeBackCashAmount(JsonNullable changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = changeBackCashAmount; - return this; - } - - /** - * A card's non-confidential details. - */ - public OrderTenders withCard(PaymentCardInput card) { - Utils.checkNotNull(card, "card"); - this.card = JsonNullable.of(card); - return this; - } - - /** - * A card's non-confidential details. - */ - public OrderTenders withCard(JsonNullable card) { - Utils.checkNotNull(card, "card"); - this.card = card; - return this; - } - - /** - * The status of the card. Only applicable when the tender type is card. - */ - public OrderTenders withCardStatus(CardStatus cardStatus) { - Utils.checkNotNull(cardStatus, "cardStatus"); - this.cardStatus = JsonNullable.of(cardStatus); - return this; - } - - /** - * The status of the card. Only applicable when the tender type is card. - */ - public OrderTenders withCardStatus(JsonNullable cardStatus) { - Utils.checkNotNull(cardStatus, "cardStatus"); - this.cardStatus = cardStatus; - return this; - } - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - public OrderTenders withCardEntryMethod(CardEntryMethod cardEntryMethod) { - Utils.checkNotNull(cardEntryMethod, "cardEntryMethod"); - this.cardEntryMethod = JsonNullable.of(cardEntryMethod); - return this; - } - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - public OrderTenders withCardEntryMethod(JsonNullable cardEntryMethod) { - Utils.checkNotNull(cardEntryMethod, "cardEntryMethod"); - this.cardEntryMethod = cardEntryMethod; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderTenders other = (OrderTenders) o; - return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.type, other.type) && - Objects.deepEquals(this.note, other.note) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.percentage, other.percentage) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.totalAmount, other.totalAmount) && - Objects.deepEquals(this.totalTip, other.totalTip) && - Objects.deepEquals(this.totalProcessingFee, other.totalProcessingFee) && - Objects.deepEquals(this.totalTax, other.totalTax) && - Objects.deepEquals(this.totalDiscount, other.totalDiscount) && - Objects.deepEquals(this.totalRefund, other.totalRefund) && - Objects.deepEquals(this.totalServiceCharge, other.totalServiceCharge) && - Objects.deepEquals(this.buyerTenderedCashAmount, other.buyerTenderedCashAmount) && - Objects.deepEquals(this.changeBackCashAmount, other.changeBackCashAmount) && - Objects.deepEquals(this.card, other.card) && - Objects.deepEquals(this.cardStatus, other.cardStatus) && - Objects.deepEquals(this.cardEntryMethod, other.cardEntryMethod); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - type, - note, - amount, - percentage, - currency, - totalAmount, - totalTip, - totalProcessingFee, - totalTax, - totalDiscount, - totalRefund, - totalServiceCharge, - buyerTenderedCashAmount, - changeBackCashAmount, - card, - cardStatus, - cardEntryMethod); - } - - @Override - public String toString() { - return Utils.toString(OrderTenders.class, - "name", name, - "type", type, - "note", note, - "amount", amount, - "percentage", percentage, - "currency", currency, - "totalAmount", totalAmount, - "totalTip", totalTip, - "totalProcessingFee", totalProcessingFee, - "totalTax", totalTax, - "totalDiscount", totalDiscount, - "totalRefund", totalRefund, - "totalServiceCharge", totalServiceCharge, - "buyerTenderedCashAmount", buyerTenderedCashAmount, - "changeBackCashAmount", changeBackCashAmount, - "card", card, - "cardStatus", cardStatus, - "cardEntryMethod", cardEntryMethod); - } - - public final static class Builder { - - private Optional name = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional note = Optional.empty(); - - private Optional amount = Optional.empty(); - - private Optional percentage = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private JsonNullable totalAmount = JsonNullable.undefined(); - - private JsonNullable totalTip = JsonNullable.undefined(); - - private JsonNullable totalProcessingFee = JsonNullable.undefined(); - - private JsonNullable totalTax = JsonNullable.undefined(); - - private JsonNullable totalDiscount = JsonNullable.undefined(); - - private JsonNullable totalRefund = JsonNullable.undefined(); - - private JsonNullable totalServiceCharge = JsonNullable.undefined(); - - private JsonNullable buyerTenderedCashAmount = JsonNullable.undefined(); - - private JsonNullable changeBackCashAmount = JsonNullable.undefined(); - - private JsonNullable card = JsonNullable.undefined(); - - private JsonNullable cardStatus = JsonNullable.undefined(); - - private JsonNullable cardEntryMethod = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder type(OrderTendersType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder note(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - public Builder note(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - public Builder amount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public Builder percentage(double percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = Optional.ofNullable(percentage); - return this; - } - - public Builder percentage(Optional percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = percentage; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder totalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public Builder totalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public Builder totalTip(long totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = JsonNullable.of(totalTip); - return this; - } - - public Builder totalTip(JsonNullable totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = totalTip; - return this; - } - - public Builder totalProcessingFee(long totalProcessingFee) { - Utils.checkNotNull(totalProcessingFee, "totalProcessingFee"); - this.totalProcessingFee = JsonNullable.of(totalProcessingFee); - return this; - } - - public Builder totalProcessingFee(JsonNullable totalProcessingFee) { - Utils.checkNotNull(totalProcessingFee, "totalProcessingFee"); - this.totalProcessingFee = totalProcessingFee; - return this; - } - - public Builder totalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public Builder totalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public Builder totalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public Builder totalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public Builder totalRefund(long totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = JsonNullable.of(totalRefund); - return this; - } - - public Builder totalRefund(JsonNullable totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = totalRefund; - return this; - } - - public Builder totalServiceCharge(long totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = JsonNullable.of(totalServiceCharge); - return this; - } - - public Builder totalServiceCharge(JsonNullable totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = totalServiceCharge; - return this; - } - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - public Builder buyerTenderedCashAmount(long buyerTenderedCashAmount) { - Utils.checkNotNull(buyerTenderedCashAmount, "buyerTenderedCashAmount"); - this.buyerTenderedCashAmount = JsonNullable.of(buyerTenderedCashAmount); - return this; - } - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - public Builder buyerTenderedCashAmount(JsonNullable buyerTenderedCashAmount) { - Utils.checkNotNull(buyerTenderedCashAmount, "buyerTenderedCashAmount"); - this.buyerTenderedCashAmount = buyerTenderedCashAmount; - return this; - } - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - public Builder changeBackCashAmount(long changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = JsonNullable.of(changeBackCashAmount); - return this; - } - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - public Builder changeBackCashAmount(JsonNullable changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = changeBackCashAmount; - return this; - } - - /** - * A card's non-confidential details. - */ - public Builder card(PaymentCardInput card) { - Utils.checkNotNull(card, "card"); - this.card = JsonNullable.of(card); - return this; - } - - /** - * A card's non-confidential details. - */ - public Builder card(JsonNullable card) { - Utils.checkNotNull(card, "card"); - this.card = card; - return this; - } - - /** - * The status of the card. Only applicable when the tender type is card. - */ - public Builder cardStatus(CardStatus cardStatus) { - Utils.checkNotNull(cardStatus, "cardStatus"); - this.cardStatus = JsonNullable.of(cardStatus); - return this; - } - - /** - * The status of the card. Only applicable when the tender type is card. - */ - public Builder cardStatus(JsonNullable cardStatus) { - Utils.checkNotNull(cardStatus, "cardStatus"); - this.cardStatus = cardStatus; - return this; - } - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - public Builder cardEntryMethod(CardEntryMethod cardEntryMethod) { - Utils.checkNotNull(cardEntryMethod, "cardEntryMethod"); - this.cardEntryMethod = JsonNullable.of(cardEntryMethod); - return this; - } - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - public Builder cardEntryMethod(JsonNullable cardEntryMethod) { - Utils.checkNotNull(cardEntryMethod, "cardEntryMethod"); - this.cardEntryMethod = cardEntryMethod; - return this; - } - - public OrderTenders build() { - return new OrderTenders( - name, - type, - note, - amount, - percentage, - currency, - totalAmount, - totalTip, - totalProcessingFee, - totalTax, - totalDiscount, - totalRefund, - totalServiceCharge, - buyerTenderedCashAmount, - changeBackCashAmount, - card, - cardStatus, - cardEntryMethod); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderTendersType.java b/src/main/java/com/apideck/unify/models/components/OrderTendersType.java deleted file mode 100644 index 8833044..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderTendersType.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum OrderTendersType { - CASH("cash"), - CARD("card"), - OTHER("other"); - - @JsonValue - private final String value; - - private OrderTendersType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/OrderType.java b/src/main/java/com/apideck/unify/models/components/OrderType.java deleted file mode 100644 index ed9958c..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderType.java +++ /dev/null @@ -1,517 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class OrderType { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("default") - private Optional default_; - - /** - * The user who last updated the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_by") - private JsonNullable updatedBy; - - /** - * The user who created the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_by") - private JsonNullable createdBy; - - /** - * The date and time when the object was last updated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_at") - private JsonNullable updatedAt; - - /** - * The date and time when the object was created. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_at") - private JsonNullable createdAt; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public OrderType( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("default") Optional default_, - @JsonProperty("updated_by") JsonNullable updatedBy, - @JsonProperty("created_by") JsonNullable createdBy, - @JsonProperty("updated_at") JsonNullable updatedAt, - @JsonProperty("created_at") JsonNullable createdAt, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(default_, "default_"); - Utils.checkNotNull(updatedBy, "updatedBy"); - Utils.checkNotNull(createdBy, "createdBy"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(passThrough, "passThrough"); - this.id = id; - this.name = name; - this.default_ = default_; - this.updatedBy = updatedBy; - this.createdBy = createdBy; - this.updatedAt = updatedAt; - this.createdAt = createdAt; - this.passThrough = passThrough; - } - - public OrderType() { - this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional default_() { - return default_; - } - - /** - * The user who last updated the object. - */ - @JsonIgnore - public JsonNullable updatedBy() { - return updatedBy; - } - - /** - * The user who created the object. - */ - @JsonIgnore - public JsonNullable createdBy() { - return createdBy; - } - - /** - * The date and time when the object was last updated. - */ - @JsonIgnore - public JsonNullable updatedAt() { - return updatedAt; - } - - /** - * The date and time when the object was created. - */ - @JsonIgnore - public JsonNullable createdAt() { - return createdAt; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public OrderType withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public OrderType withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public OrderType withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public OrderType withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public OrderType withDefault(boolean default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public OrderType withDefault(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - /** - * The user who last updated the object. - */ - public OrderType withUpdatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public OrderType withUpdatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public OrderType withCreatedBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public OrderType withCreatedBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public OrderType withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public OrderType withUpdatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public OrderType withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public OrderType withCreatedAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public OrderType withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public OrderType withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderType other = (OrderType) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.default_, other.default_) && - Objects.deepEquals(this.updatedBy, other.updatedBy) && - Objects.deepEquals(this.createdBy, other.createdBy) && - Objects.deepEquals(this.updatedAt, other.updatedAt) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - default_, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(OrderType.class, - "id", id, - "name", name, - "default_", default_, - "updatedBy", updatedBy, - "createdBy", createdBy, - "updatedAt", updatedAt, - "createdAt", createdAt, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional default_ = Optional.empty(); - - private JsonNullable updatedBy = JsonNullable.undefined(); - - private JsonNullable createdBy = JsonNullable.undefined(); - - private JsonNullable updatedAt = JsonNullable.undefined(); - - private JsonNullable createdAt = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder default_(boolean default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public Builder default_(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public OrderType build() { - return new OrderType( - id, - name, - default_, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/OrderTypeInput.java b/src/main/java/com/apideck/unify/models/components/OrderTypeInput.java deleted file mode 100644 index b3f2a42..0000000 --- a/src/main/java/com/apideck/unify/models/components/OrderTypeInput.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - - -public class OrderTypeInput { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("default") - private Optional default_; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public OrderTypeInput( - @JsonProperty("name") Optional name, - @JsonProperty("default") Optional default_, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(default_, "default_"); - Utils.checkNotNull(passThrough, "passThrough"); - this.name = name; - this.default_ = default_; - this.passThrough = passThrough; - } - - public OrderTypeInput() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional default_() { - return default_; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - public OrderTypeInput withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public OrderTypeInput withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public OrderTypeInput withDefault(boolean default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public OrderTypeInput withDefault(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public OrderTypeInput withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public OrderTypeInput withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderTypeInput other = (OrderTypeInput) o; - return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.default_, other.default_) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - default_, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(OrderTypeInput.class, - "name", name, - "default_", default_, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional name = Optional.empty(); - - private Optional default_ = Optional.empty(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder default_(boolean default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public Builder default_(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public OrderTypeInput build() { - return new OrderTypeInput( - name, - default_, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/PaymentCard.java b/src/main/java/com/apideck/unify/models/components/PaymentCard.java deleted file mode 100644 index 9dc548c..0000000 --- a/src/main/java/com/apideck/unify/models/components/PaymentCard.java +++ /dev/null @@ -1,876 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * PaymentCard - A card's non-confidential details. - */ - -public class PaymentCard { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bin") - private JsonNullable bin; - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card_brand") - private JsonNullable cardBrand; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card_type") - private JsonNullable cardType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("prepaid_type") - private JsonNullable prepaidType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cardholder_name") - private JsonNullable cardholderName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("customer_id") - private JsonNullable customerId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("merchant_id") - private Optional merchantId; - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("exp_month") - private JsonNullable expMonth; - - /** - * The four-digit year of the card's expiration date. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("exp_year") - private JsonNullable expYear; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("fingerprint") - private JsonNullable fingerprint; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("last_4") - private JsonNullable last4; - - /** - * Indicates whether or not a card can be used for payments. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("enabled") - private JsonNullable enabled; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("billing_address") - private Optional billingAddress; - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference_id") - private JsonNullable referenceId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private JsonNullable version; - - @JsonCreator - public PaymentCard( - @JsonProperty("id") Optional id, - @JsonProperty("bin") JsonNullable bin, - @JsonProperty("card_brand") JsonNullable cardBrand, - @JsonProperty("card_type") JsonNullable cardType, - @JsonProperty("prepaid_type") JsonNullable prepaidType, - @JsonProperty("cardholder_name") JsonNullable cardholderName, - @JsonProperty("customer_id") JsonNullable customerId, - @JsonProperty("merchant_id") Optional merchantId, - @JsonProperty("exp_month") JsonNullable expMonth, - @JsonProperty("exp_year") JsonNullable expYear, - @JsonProperty("fingerprint") JsonNullable fingerprint, - @JsonProperty("last_4") JsonNullable last4, - @JsonProperty("enabled") JsonNullable enabled, - @JsonProperty("billing_address") Optional billingAddress, - @JsonProperty("reference_id") JsonNullable referenceId, - @JsonProperty("version") JsonNullable version) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(bin, "bin"); - Utils.checkNotNull(cardBrand, "cardBrand"); - Utils.checkNotNull(cardType, "cardType"); - Utils.checkNotNull(prepaidType, "prepaidType"); - Utils.checkNotNull(cardholderName, "cardholderName"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(merchantId, "merchantId"); - Utils.checkNotNull(expMonth, "expMonth"); - Utils.checkNotNull(expYear, "expYear"); - Utils.checkNotNull(fingerprint, "fingerprint"); - Utils.checkNotNull(last4, "last4"); - Utils.checkNotNull(enabled, "enabled"); - Utils.checkNotNull(billingAddress, "billingAddress"); - Utils.checkNotNull(referenceId, "referenceId"); - Utils.checkNotNull(version, "version"); - this.id = id; - this.bin = bin; - this.cardBrand = cardBrand; - this.cardType = cardType; - this.prepaidType = prepaidType; - this.cardholderName = cardholderName; - this.customerId = customerId; - this.merchantId = merchantId; - this.expMonth = expMonth; - this.expYear = expYear; - this.fingerprint = fingerprint; - this.last4 = last4; - this.enabled = enabled; - this.billingAddress = billingAddress; - this.referenceId = referenceId; - this.version = version; - } - - public PaymentCard() { - this(Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - @JsonIgnore - public JsonNullable bin() { - return bin; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable cardBrand() { - return (JsonNullable) cardBrand; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable cardType() { - return (JsonNullable) cardType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable prepaidType() { - return (JsonNullable) prepaidType; - } - - @JsonIgnore - public JsonNullable cardholderName() { - return cardholderName; - } - - @JsonIgnore - public JsonNullable customerId() { - return customerId; - } - - @JsonIgnore - public Optional merchantId() { - return merchantId; - } - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - @JsonIgnore - public JsonNullable expMonth() { - return expMonth; - } - - /** - * The four-digit year of the card's expiration date. - */ - @JsonIgnore - public JsonNullable expYear() { - return expYear; - } - - @JsonIgnore - public JsonNullable fingerprint() { - return fingerprint; - } - - @JsonIgnore - public JsonNullable last4() { - return last4; - } - - /** - * Indicates whether or not a card can be used for payments. - */ - @JsonIgnore - public JsonNullable enabled() { - return enabled; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional
billingAddress() { - return (Optional
) billingAddress; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - @JsonIgnore - public JsonNullable referenceId() { - return referenceId; - } - - @JsonIgnore - public JsonNullable version() { - return version; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public PaymentCard withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public PaymentCard withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public PaymentCard withBin(String bin) { - Utils.checkNotNull(bin, "bin"); - this.bin = JsonNullable.of(bin); - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public PaymentCard withBin(JsonNullable bin) { - Utils.checkNotNull(bin, "bin"); - this.bin = bin; - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public PaymentCard withCardBrand(CardBrand cardBrand) { - Utils.checkNotNull(cardBrand, "cardBrand"); - this.cardBrand = JsonNullable.of(cardBrand); - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public PaymentCard withCardBrand(JsonNullable cardBrand) { - Utils.checkNotNull(cardBrand, "cardBrand"); - this.cardBrand = cardBrand; - return this; - } - - public PaymentCard withCardType(CardType cardType) { - Utils.checkNotNull(cardType, "cardType"); - this.cardType = JsonNullable.of(cardType); - return this; - } - - public PaymentCard withCardType(JsonNullable cardType) { - Utils.checkNotNull(cardType, "cardType"); - this.cardType = cardType; - return this; - } - - public PaymentCard withPrepaidType(PrepaidType prepaidType) { - Utils.checkNotNull(prepaidType, "prepaidType"); - this.prepaidType = JsonNullable.of(prepaidType); - return this; - } - - public PaymentCard withPrepaidType(JsonNullable prepaidType) { - Utils.checkNotNull(prepaidType, "prepaidType"); - this.prepaidType = prepaidType; - return this; - } - - public PaymentCard withCardholderName(String cardholderName) { - Utils.checkNotNull(cardholderName, "cardholderName"); - this.cardholderName = JsonNullable.of(cardholderName); - return this; - } - - public PaymentCard withCardholderName(JsonNullable cardholderName) { - Utils.checkNotNull(cardholderName, "cardholderName"); - this.cardholderName = cardholderName; - return this; - } - - public PaymentCard withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = JsonNullable.of(customerId); - return this; - } - - public PaymentCard withCustomerId(JsonNullable customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public PaymentCard withMerchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public PaymentCard withMerchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - public PaymentCard withExpMonth(long expMonth) { - Utils.checkNotNull(expMonth, "expMonth"); - this.expMonth = JsonNullable.of(expMonth); - return this; - } - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - public PaymentCard withExpMonth(JsonNullable expMonth) { - Utils.checkNotNull(expMonth, "expMonth"); - this.expMonth = expMonth; - return this; - } - - /** - * The four-digit year of the card's expiration date. - */ - public PaymentCard withExpYear(long expYear) { - Utils.checkNotNull(expYear, "expYear"); - this.expYear = JsonNullable.of(expYear); - return this; - } - - /** - * The four-digit year of the card's expiration date. - */ - public PaymentCard withExpYear(JsonNullable expYear) { - Utils.checkNotNull(expYear, "expYear"); - this.expYear = expYear; - return this; - } - - public PaymentCard withFingerprint(String fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = JsonNullable.of(fingerprint); - return this; - } - - public PaymentCard withFingerprint(JsonNullable fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = fingerprint; - return this; - } - - public PaymentCard withLast4(String last4) { - Utils.checkNotNull(last4, "last4"); - this.last4 = JsonNullable.of(last4); - return this; - } - - public PaymentCard withLast4(JsonNullable last4) { - Utils.checkNotNull(last4, "last4"); - this.last4 = last4; - return this; - } - - /** - * Indicates whether or not a card can be used for payments. - */ - public PaymentCard withEnabled(boolean enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = JsonNullable.of(enabled); - return this; - } - - /** - * Indicates whether or not a card can be used for payments. - */ - public PaymentCard withEnabled(JsonNullable enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = enabled; - return this; - } - - public PaymentCard withBillingAddress(Address billingAddress) { - Utils.checkNotNull(billingAddress, "billingAddress"); - this.billingAddress = Optional.ofNullable(billingAddress); - return this; - } - - public PaymentCard withBillingAddress(Optional billingAddress) { - Utils.checkNotNull(billingAddress, "billingAddress"); - this.billingAddress = billingAddress; - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public PaymentCard withReferenceId(String referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = JsonNullable.of(referenceId); - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public PaymentCard withReferenceId(JsonNullable referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = referenceId; - return this; - } - - public PaymentCard withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - public PaymentCard withVersion(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentCard other = (PaymentCard) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.bin, other.bin) && - Objects.deepEquals(this.cardBrand, other.cardBrand) && - Objects.deepEquals(this.cardType, other.cardType) && - Objects.deepEquals(this.prepaidType, other.prepaidType) && - Objects.deepEquals(this.cardholderName, other.cardholderName) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.merchantId, other.merchantId) && - Objects.deepEquals(this.expMonth, other.expMonth) && - Objects.deepEquals(this.expYear, other.expYear) && - Objects.deepEquals(this.fingerprint, other.fingerprint) && - Objects.deepEquals(this.last4, other.last4) && - Objects.deepEquals(this.enabled, other.enabled) && - Objects.deepEquals(this.billingAddress, other.billingAddress) && - Objects.deepEquals(this.referenceId, other.referenceId) && - Objects.deepEquals(this.version, other.version); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - bin, - cardBrand, - cardType, - prepaidType, - cardholderName, - customerId, - merchantId, - expMonth, - expYear, - fingerprint, - last4, - enabled, - billingAddress, - referenceId, - version); - } - - @Override - public String toString() { - return Utils.toString(PaymentCard.class, - "id", id, - "bin", bin, - "cardBrand", cardBrand, - "cardType", cardType, - "prepaidType", prepaidType, - "cardholderName", cardholderName, - "customerId", customerId, - "merchantId", merchantId, - "expMonth", expMonth, - "expYear", expYear, - "fingerprint", fingerprint, - "last4", last4, - "enabled", enabled, - "billingAddress", billingAddress, - "referenceId", referenceId, - "version", version); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private JsonNullable bin = JsonNullable.undefined(); - - private JsonNullable cardBrand = JsonNullable.undefined(); - - private JsonNullable cardType = JsonNullable.undefined(); - - private JsonNullable prepaidType = JsonNullable.undefined(); - - private JsonNullable cardholderName = JsonNullable.undefined(); - - private JsonNullable customerId = JsonNullable.undefined(); - - private Optional merchantId = Optional.empty(); - - private JsonNullable expMonth = JsonNullable.undefined(); - - private JsonNullable expYear = JsonNullable.undefined(); - - private JsonNullable fingerprint = JsonNullable.undefined(); - - private JsonNullable last4 = JsonNullable.undefined(); - - private JsonNullable enabled = JsonNullable.undefined(); - - private Optional billingAddress = Optional.empty(); - - private JsonNullable referenceId = JsonNullable.undefined(); - - private JsonNullable version = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public Builder bin(String bin) { - Utils.checkNotNull(bin, "bin"); - this.bin = JsonNullable.of(bin); - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public Builder bin(JsonNullable bin) { - Utils.checkNotNull(bin, "bin"); - this.bin = bin; - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public Builder cardBrand(CardBrand cardBrand) { - Utils.checkNotNull(cardBrand, "cardBrand"); - this.cardBrand = JsonNullable.of(cardBrand); - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public Builder cardBrand(JsonNullable cardBrand) { - Utils.checkNotNull(cardBrand, "cardBrand"); - this.cardBrand = cardBrand; - return this; - } - - public Builder cardType(CardType cardType) { - Utils.checkNotNull(cardType, "cardType"); - this.cardType = JsonNullable.of(cardType); - return this; - } - - public Builder cardType(JsonNullable cardType) { - Utils.checkNotNull(cardType, "cardType"); - this.cardType = cardType; - return this; - } - - public Builder prepaidType(PrepaidType prepaidType) { - Utils.checkNotNull(prepaidType, "prepaidType"); - this.prepaidType = JsonNullable.of(prepaidType); - return this; - } - - public Builder prepaidType(JsonNullable prepaidType) { - Utils.checkNotNull(prepaidType, "prepaidType"); - this.prepaidType = prepaidType; - return this; - } - - public Builder cardholderName(String cardholderName) { - Utils.checkNotNull(cardholderName, "cardholderName"); - this.cardholderName = JsonNullable.of(cardholderName); - return this; - } - - public Builder cardholderName(JsonNullable cardholderName) { - Utils.checkNotNull(cardholderName, "cardholderName"); - this.cardholderName = cardholderName; - return this; - } - - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = JsonNullable.of(customerId); - return this; - } - - public Builder customerId(JsonNullable customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public Builder merchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public Builder merchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - public Builder expMonth(long expMonth) { - Utils.checkNotNull(expMonth, "expMonth"); - this.expMonth = JsonNullable.of(expMonth); - return this; - } - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - public Builder expMonth(JsonNullable expMonth) { - Utils.checkNotNull(expMonth, "expMonth"); - this.expMonth = expMonth; - return this; - } - - /** - * The four-digit year of the card's expiration date. - */ - public Builder expYear(long expYear) { - Utils.checkNotNull(expYear, "expYear"); - this.expYear = JsonNullable.of(expYear); - return this; - } - - /** - * The four-digit year of the card's expiration date. - */ - public Builder expYear(JsonNullable expYear) { - Utils.checkNotNull(expYear, "expYear"); - this.expYear = expYear; - return this; - } - - public Builder fingerprint(String fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = JsonNullable.of(fingerprint); - return this; - } - - public Builder fingerprint(JsonNullable fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = fingerprint; - return this; - } - - public Builder last4(String last4) { - Utils.checkNotNull(last4, "last4"); - this.last4 = JsonNullable.of(last4); - return this; - } - - public Builder last4(JsonNullable last4) { - Utils.checkNotNull(last4, "last4"); - this.last4 = last4; - return this; - } - - /** - * Indicates whether or not a card can be used for payments. - */ - public Builder enabled(boolean enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = JsonNullable.of(enabled); - return this; - } - - /** - * Indicates whether or not a card can be used for payments. - */ - public Builder enabled(JsonNullable enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = enabled; - return this; - } - - public Builder billingAddress(Address billingAddress) { - Utils.checkNotNull(billingAddress, "billingAddress"); - this.billingAddress = Optional.ofNullable(billingAddress); - return this; - } - - public Builder billingAddress(Optional billingAddress) { - Utils.checkNotNull(billingAddress, "billingAddress"); - this.billingAddress = billingAddress; - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public Builder referenceId(String referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = JsonNullable.of(referenceId); - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public Builder referenceId(JsonNullable referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = referenceId; - return this; - } - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - public Builder version(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public PaymentCard build() { - return new PaymentCard( - id, - bin, - cardBrand, - cardType, - prepaidType, - cardholderName, - customerId, - merchantId, - expMonth, - expYear, - fingerprint, - last4, - enabled, - billingAddress, - referenceId, - version); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/PaymentCardInput.java b/src/main/java/com/apideck/unify/models/components/PaymentCardInput.java deleted file mode 100644 index e73583b..0000000 --- a/src/main/java/com/apideck/unify/models/components/PaymentCardInput.java +++ /dev/null @@ -1,816 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * PaymentCardInput - A card's non-confidential details. - */ - -public class PaymentCardInput { - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bin") - private JsonNullable bin; - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card_brand") - private JsonNullable cardBrand; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card_type") - private JsonNullable cardType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("prepaid_type") - private JsonNullable prepaidType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cardholder_name") - private JsonNullable cardholderName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("customer_id") - private JsonNullable customerId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("merchant_id") - private Optional merchantId; - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("exp_month") - private JsonNullable expMonth; - - /** - * The four-digit year of the card's expiration date. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("exp_year") - private JsonNullable expYear; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("fingerprint") - private JsonNullable fingerprint; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("last_4") - private JsonNullable last4; - - /** - * Indicates whether or not a card can be used for payments. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("enabled") - private JsonNullable enabled; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("billing_address") - private Optional billingAddress; - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference_id") - private JsonNullable referenceId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private JsonNullable version; - - @JsonCreator - public PaymentCardInput( - @JsonProperty("bin") JsonNullable bin, - @JsonProperty("card_brand") JsonNullable cardBrand, - @JsonProperty("card_type") JsonNullable cardType, - @JsonProperty("prepaid_type") JsonNullable prepaidType, - @JsonProperty("cardholder_name") JsonNullable cardholderName, - @JsonProperty("customer_id") JsonNullable customerId, - @JsonProperty("merchant_id") Optional merchantId, - @JsonProperty("exp_month") JsonNullable expMonth, - @JsonProperty("exp_year") JsonNullable expYear, - @JsonProperty("fingerprint") JsonNullable fingerprint, - @JsonProperty("last_4") JsonNullable last4, - @JsonProperty("enabled") JsonNullable enabled, - @JsonProperty("billing_address") Optional billingAddress, - @JsonProperty("reference_id") JsonNullable referenceId, - @JsonProperty("version") JsonNullable version) { - Utils.checkNotNull(bin, "bin"); - Utils.checkNotNull(cardBrand, "cardBrand"); - Utils.checkNotNull(cardType, "cardType"); - Utils.checkNotNull(prepaidType, "prepaidType"); - Utils.checkNotNull(cardholderName, "cardholderName"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(merchantId, "merchantId"); - Utils.checkNotNull(expMonth, "expMonth"); - Utils.checkNotNull(expYear, "expYear"); - Utils.checkNotNull(fingerprint, "fingerprint"); - Utils.checkNotNull(last4, "last4"); - Utils.checkNotNull(enabled, "enabled"); - Utils.checkNotNull(billingAddress, "billingAddress"); - Utils.checkNotNull(referenceId, "referenceId"); - Utils.checkNotNull(version, "version"); - this.bin = bin; - this.cardBrand = cardBrand; - this.cardType = cardType; - this.prepaidType = prepaidType; - this.cardholderName = cardholderName; - this.customerId = customerId; - this.merchantId = merchantId; - this.expMonth = expMonth; - this.expYear = expYear; - this.fingerprint = fingerprint; - this.last4 = last4; - this.enabled = enabled; - this.billingAddress = billingAddress; - this.referenceId = referenceId; - this.version = version; - } - - public PaymentCardInput() { - this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined()); - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - @JsonIgnore - public JsonNullable bin() { - return bin; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable cardBrand() { - return (JsonNullable) cardBrand; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable cardType() { - return (JsonNullable) cardType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable prepaidType() { - return (JsonNullable) prepaidType; - } - - @JsonIgnore - public JsonNullable cardholderName() { - return cardholderName; - } - - @JsonIgnore - public JsonNullable customerId() { - return customerId; - } - - @JsonIgnore - public Optional merchantId() { - return merchantId; - } - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - @JsonIgnore - public JsonNullable expMonth() { - return expMonth; - } - - /** - * The four-digit year of the card's expiration date. - */ - @JsonIgnore - public JsonNullable expYear() { - return expYear; - } - - @JsonIgnore - public JsonNullable fingerprint() { - return fingerprint; - } - - @JsonIgnore - public JsonNullable last4() { - return last4; - } - - /** - * Indicates whether or not a card can be used for payments. - */ - @JsonIgnore - public JsonNullable enabled() { - return enabled; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional
billingAddress() { - return (Optional
) billingAddress; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - @JsonIgnore - public JsonNullable referenceId() { - return referenceId; - } - - @JsonIgnore - public JsonNullable version() { - return version; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public PaymentCardInput withBin(String bin) { - Utils.checkNotNull(bin, "bin"); - this.bin = JsonNullable.of(bin); - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public PaymentCardInput withBin(JsonNullable bin) { - Utils.checkNotNull(bin, "bin"); - this.bin = bin; - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public PaymentCardInput withCardBrand(CardBrand cardBrand) { - Utils.checkNotNull(cardBrand, "cardBrand"); - this.cardBrand = JsonNullable.of(cardBrand); - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public PaymentCardInput withCardBrand(JsonNullable cardBrand) { - Utils.checkNotNull(cardBrand, "cardBrand"); - this.cardBrand = cardBrand; - return this; - } - - public PaymentCardInput withCardType(CardType cardType) { - Utils.checkNotNull(cardType, "cardType"); - this.cardType = JsonNullable.of(cardType); - return this; - } - - public PaymentCardInput withCardType(JsonNullable cardType) { - Utils.checkNotNull(cardType, "cardType"); - this.cardType = cardType; - return this; - } - - public PaymentCardInput withPrepaidType(PrepaidType prepaidType) { - Utils.checkNotNull(prepaidType, "prepaidType"); - this.prepaidType = JsonNullable.of(prepaidType); - return this; - } - - public PaymentCardInput withPrepaidType(JsonNullable prepaidType) { - Utils.checkNotNull(prepaidType, "prepaidType"); - this.prepaidType = prepaidType; - return this; - } - - public PaymentCardInput withCardholderName(String cardholderName) { - Utils.checkNotNull(cardholderName, "cardholderName"); - this.cardholderName = JsonNullable.of(cardholderName); - return this; - } - - public PaymentCardInput withCardholderName(JsonNullable cardholderName) { - Utils.checkNotNull(cardholderName, "cardholderName"); - this.cardholderName = cardholderName; - return this; - } - - public PaymentCardInput withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = JsonNullable.of(customerId); - return this; - } - - public PaymentCardInput withCustomerId(JsonNullable customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public PaymentCardInput withMerchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public PaymentCardInput withMerchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - public PaymentCardInput withExpMonth(long expMonth) { - Utils.checkNotNull(expMonth, "expMonth"); - this.expMonth = JsonNullable.of(expMonth); - return this; - } - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - public PaymentCardInput withExpMonth(JsonNullable expMonth) { - Utils.checkNotNull(expMonth, "expMonth"); - this.expMonth = expMonth; - return this; - } - - /** - * The four-digit year of the card's expiration date. - */ - public PaymentCardInput withExpYear(long expYear) { - Utils.checkNotNull(expYear, "expYear"); - this.expYear = JsonNullable.of(expYear); - return this; - } - - /** - * The four-digit year of the card's expiration date. - */ - public PaymentCardInput withExpYear(JsonNullable expYear) { - Utils.checkNotNull(expYear, "expYear"); - this.expYear = expYear; - return this; - } - - public PaymentCardInput withFingerprint(String fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = JsonNullable.of(fingerprint); - return this; - } - - public PaymentCardInput withFingerprint(JsonNullable fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = fingerprint; - return this; - } - - public PaymentCardInput withLast4(String last4) { - Utils.checkNotNull(last4, "last4"); - this.last4 = JsonNullable.of(last4); - return this; - } - - public PaymentCardInput withLast4(JsonNullable last4) { - Utils.checkNotNull(last4, "last4"); - this.last4 = last4; - return this; - } - - /** - * Indicates whether or not a card can be used for payments. - */ - public PaymentCardInput withEnabled(boolean enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = JsonNullable.of(enabled); - return this; - } - - /** - * Indicates whether or not a card can be used for payments. - */ - public PaymentCardInput withEnabled(JsonNullable enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = enabled; - return this; - } - - public PaymentCardInput withBillingAddress(Address billingAddress) { - Utils.checkNotNull(billingAddress, "billingAddress"); - this.billingAddress = Optional.ofNullable(billingAddress); - return this; - } - - public PaymentCardInput withBillingAddress(Optional billingAddress) { - Utils.checkNotNull(billingAddress, "billingAddress"); - this.billingAddress = billingAddress; - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public PaymentCardInput withReferenceId(String referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = JsonNullable.of(referenceId); - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public PaymentCardInput withReferenceId(JsonNullable referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = referenceId; - return this; - } - - public PaymentCardInput withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - public PaymentCardInput withVersion(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentCardInput other = (PaymentCardInput) o; - return - Objects.deepEquals(this.bin, other.bin) && - Objects.deepEquals(this.cardBrand, other.cardBrand) && - Objects.deepEquals(this.cardType, other.cardType) && - Objects.deepEquals(this.prepaidType, other.prepaidType) && - Objects.deepEquals(this.cardholderName, other.cardholderName) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.merchantId, other.merchantId) && - Objects.deepEquals(this.expMonth, other.expMonth) && - Objects.deepEquals(this.expYear, other.expYear) && - Objects.deepEquals(this.fingerprint, other.fingerprint) && - Objects.deepEquals(this.last4, other.last4) && - Objects.deepEquals(this.enabled, other.enabled) && - Objects.deepEquals(this.billingAddress, other.billingAddress) && - Objects.deepEquals(this.referenceId, other.referenceId) && - Objects.deepEquals(this.version, other.version); - } - - @Override - public int hashCode() { - return Objects.hash( - bin, - cardBrand, - cardType, - prepaidType, - cardholderName, - customerId, - merchantId, - expMonth, - expYear, - fingerprint, - last4, - enabled, - billingAddress, - referenceId, - version); - } - - @Override - public String toString() { - return Utils.toString(PaymentCardInput.class, - "bin", bin, - "cardBrand", cardBrand, - "cardType", cardType, - "prepaidType", prepaidType, - "cardholderName", cardholderName, - "customerId", customerId, - "merchantId", merchantId, - "expMonth", expMonth, - "expYear", expYear, - "fingerprint", fingerprint, - "last4", last4, - "enabled", enabled, - "billingAddress", billingAddress, - "referenceId", referenceId, - "version", version); - } - - public final static class Builder { - - private JsonNullable bin = JsonNullable.undefined(); - - private JsonNullable cardBrand = JsonNullable.undefined(); - - private JsonNullable cardType = JsonNullable.undefined(); - - private JsonNullable prepaidType = JsonNullable.undefined(); - - private JsonNullable cardholderName = JsonNullable.undefined(); - - private JsonNullable customerId = JsonNullable.undefined(); - - private Optional merchantId = Optional.empty(); - - private JsonNullable expMonth = JsonNullable.undefined(); - - private JsonNullable expYear = JsonNullable.undefined(); - - private JsonNullable fingerprint = JsonNullable.undefined(); - - private JsonNullable last4 = JsonNullable.undefined(); - - private JsonNullable enabled = JsonNullable.undefined(); - - private Optional billingAddress = Optional.empty(); - - private JsonNullable referenceId = JsonNullable.undefined(); - - private JsonNullable version = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public Builder bin(String bin) { - Utils.checkNotNull(bin, "bin"); - this.bin = JsonNullable.of(bin); - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public Builder bin(JsonNullable bin) { - Utils.checkNotNull(bin, "bin"); - this.bin = bin; - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public Builder cardBrand(CardBrand cardBrand) { - Utils.checkNotNull(cardBrand, "cardBrand"); - this.cardBrand = JsonNullable.of(cardBrand); - return this; - } - - /** - * The first six digits of the card number, known as the Bank Identification Number (BIN). - */ - public Builder cardBrand(JsonNullable cardBrand) { - Utils.checkNotNull(cardBrand, "cardBrand"); - this.cardBrand = cardBrand; - return this; - } - - public Builder cardType(CardType cardType) { - Utils.checkNotNull(cardType, "cardType"); - this.cardType = JsonNullable.of(cardType); - return this; - } - - public Builder cardType(JsonNullable cardType) { - Utils.checkNotNull(cardType, "cardType"); - this.cardType = cardType; - return this; - } - - public Builder prepaidType(PrepaidType prepaidType) { - Utils.checkNotNull(prepaidType, "prepaidType"); - this.prepaidType = JsonNullable.of(prepaidType); - return this; - } - - public Builder prepaidType(JsonNullable prepaidType) { - Utils.checkNotNull(prepaidType, "prepaidType"); - this.prepaidType = prepaidType; - return this; - } - - public Builder cardholderName(String cardholderName) { - Utils.checkNotNull(cardholderName, "cardholderName"); - this.cardholderName = JsonNullable.of(cardholderName); - return this; - } - - public Builder cardholderName(JsonNullable cardholderName) { - Utils.checkNotNull(cardholderName, "cardholderName"); - this.cardholderName = cardholderName; - return this; - } - - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = JsonNullable.of(customerId); - return this; - } - - public Builder customerId(JsonNullable customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public Builder merchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public Builder merchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - public Builder expMonth(long expMonth) { - Utils.checkNotNull(expMonth, "expMonth"); - this.expMonth = JsonNullable.of(expMonth); - return this; - } - - /** - * The expiration month of the associated card as an integer between 1 and 12. - */ - public Builder expMonth(JsonNullable expMonth) { - Utils.checkNotNull(expMonth, "expMonth"); - this.expMonth = expMonth; - return this; - } - - /** - * The four-digit year of the card's expiration date. - */ - public Builder expYear(long expYear) { - Utils.checkNotNull(expYear, "expYear"); - this.expYear = JsonNullable.of(expYear); - return this; - } - - /** - * The four-digit year of the card's expiration date. - */ - public Builder expYear(JsonNullable expYear) { - Utils.checkNotNull(expYear, "expYear"); - this.expYear = expYear; - return this; - } - - public Builder fingerprint(String fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = JsonNullable.of(fingerprint); - return this; - } - - public Builder fingerprint(JsonNullable fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = fingerprint; - return this; - } - - public Builder last4(String last4) { - Utils.checkNotNull(last4, "last4"); - this.last4 = JsonNullable.of(last4); - return this; - } - - public Builder last4(JsonNullable last4) { - Utils.checkNotNull(last4, "last4"); - this.last4 = last4; - return this; - } - - /** - * Indicates whether or not a card can be used for payments. - */ - public Builder enabled(boolean enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = JsonNullable.of(enabled); - return this; - } - - /** - * Indicates whether or not a card can be used for payments. - */ - public Builder enabled(JsonNullable enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = enabled; - return this; - } - - public Builder billingAddress(Address billingAddress) { - Utils.checkNotNull(billingAddress, "billingAddress"); - this.billingAddress = Optional.ofNullable(billingAddress); - return this; - } - - public Builder billingAddress(Optional billingAddress) { - Utils.checkNotNull(billingAddress, "billingAddress"); - this.billingAddress = billingAddress; - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public Builder referenceId(String referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = JsonNullable.of(referenceId); - return this; - } - - /** - * An optional user-defined reference ID that associates this record with another entity in an external system. For example, a customer ID from an external customer management system. - */ - public Builder referenceId(JsonNullable referenceId) { - Utils.checkNotNull(referenceId, "referenceId"); - this.referenceId = referenceId; - return this; - } - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - public Builder version(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public PaymentCardInput build() { - return new PaymentCardInput( - bin, - cardBrand, - cardType, - prepaidType, - cardholderName, - customerId, - merchantId, - expMonth, - expYear, - fingerprint, - last4, - enabled, - billingAddress, - referenceId, - version); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Payments.java b/src/main/java/com/apideck/unify/models/components/Payments.java deleted file mode 100644 index b4802a7..0000000 --- a/src/main/java/com/apideck/unify/models/components/Payments.java +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Payments { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonCreator - public Payments( - @JsonProperty("id") Optional id, - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - this.id = id; - this.amount = amount; - this.currency = currency; - } - - public Payments() { - this(Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public Payments withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Payments withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Payments withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Payments withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Payments withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Payments withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Payments other = (Payments) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - amount, - currency); - } - - @Override - public String toString() { - return Utils.toString(Payments.class, - "id", id, - "amount", amount, - "currency", currency); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Payments build() { - return new Payments( - id, - amount, - currency); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ScheduleType.java b/src/main/java/com/apideck/unify/models/components/PeriodType.java similarity index 62% rename from src/main/java/com/apideck/unify/models/components/ScheduleType.java rename to src/main/java/com/apideck/unify/models/components/PeriodType.java index 1ef3762..83467f0 100644 --- a/src/main/java/com/apideck/unify/models/components/ScheduleType.java +++ b/src/main/java/com/apideck/unify/models/components/PeriodType.java @@ -8,15 +8,17 @@ import java.lang.String; /** - * ScheduleType - The schedule type of the pickup fulfillment. + * PeriodType - The type of period to include in the resource: month, quarter, year. */ -public enum ScheduleType { - SCHEDULED("scheduled"); +public enum PeriodType { + MONTH("month"), + QUARTER("quarter"), + YEAR("year"); @JsonValue private final String value; - private ScheduleType(String value) { + private PeriodType(String value) { this.value = value; } diff --git a/src/main/java/com/apideck/unify/models/components/PickupDetails.java b/src/main/java/com/apideck/unify/models/components/PickupDetails.java deleted file mode 100644 index cb449ee..0000000 --- a/src/main/java/com/apideck/unify/models/components/PickupDetails.java +++ /dev/null @@ -1,1220 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PickupDetails { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("accepted_at") - private JsonNullable acceptedAt; - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("auto_complete_duration") - private JsonNullable autoCompleteDuration; - - /** - * A description of why the pickup was canceled. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cancel_reason") - private JsonNullable cancelReason; - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("expires_at") - private Optional expiresAt; - - /** - * The schedule type of the pickup fulfillment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("schedule_type") - private Optional scheduleType; - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pickup_at") - private Optional pickupAt; - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pickup_window_duration") - private Optional pickupWindowDuration; - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("prep_time_duration") - private Optional prepTimeDuration; - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("note") - private Optional note; - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("placed_at") - private Optional placedAt; - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("rejected_at") - private Optional rejectedAt; - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ready_at") - private Optional readyAt; - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("expired_at") - private Optional expiredAt; - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("picked_up_at") - private Optional pickedUpAt; - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("canceled_at") - private Optional canceledAt; - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("is_curbside_pickup") - private Optional isCurbsidePickup; - - /** - * Specific details for curbside pickup. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("curbside_pickup_details") - private Optional curbsidePickupDetails; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("recipient") - private Optional recipient; - - @JsonCreator - public PickupDetails( - @JsonProperty("accepted_at") JsonNullable acceptedAt, - @JsonProperty("auto_complete_duration") JsonNullable autoCompleteDuration, - @JsonProperty("cancel_reason") JsonNullable cancelReason, - @JsonProperty("expires_at") Optional expiresAt, - @JsonProperty("schedule_type") Optional scheduleType, - @JsonProperty("pickup_at") Optional pickupAt, - @JsonProperty("pickup_window_duration") Optional pickupWindowDuration, - @JsonProperty("prep_time_duration") Optional prepTimeDuration, - @JsonProperty("note") Optional note, - @JsonProperty("placed_at") Optional placedAt, - @JsonProperty("rejected_at") Optional rejectedAt, - @JsonProperty("ready_at") Optional readyAt, - @JsonProperty("expired_at") Optional expiredAt, - @JsonProperty("picked_up_at") Optional pickedUpAt, - @JsonProperty("canceled_at") Optional canceledAt, - @JsonProperty("is_curbside_pickup") Optional isCurbsidePickup, - @JsonProperty("curbside_pickup_details") Optional curbsidePickupDetails, - @JsonProperty("recipient") Optional recipient) { - Utils.checkNotNull(acceptedAt, "acceptedAt"); - Utils.checkNotNull(autoCompleteDuration, "autoCompleteDuration"); - Utils.checkNotNull(cancelReason, "cancelReason"); - Utils.checkNotNull(expiresAt, "expiresAt"); - Utils.checkNotNull(scheduleType, "scheduleType"); - Utils.checkNotNull(pickupAt, "pickupAt"); - Utils.checkNotNull(pickupWindowDuration, "pickupWindowDuration"); - Utils.checkNotNull(prepTimeDuration, "prepTimeDuration"); - Utils.checkNotNull(note, "note"); - Utils.checkNotNull(placedAt, "placedAt"); - Utils.checkNotNull(rejectedAt, "rejectedAt"); - Utils.checkNotNull(readyAt, "readyAt"); - Utils.checkNotNull(expiredAt, "expiredAt"); - Utils.checkNotNull(pickedUpAt, "pickedUpAt"); - Utils.checkNotNull(canceledAt, "canceledAt"); - Utils.checkNotNull(isCurbsidePickup, "isCurbsidePickup"); - Utils.checkNotNull(curbsidePickupDetails, "curbsidePickupDetails"); - Utils.checkNotNull(recipient, "recipient"); - this.acceptedAt = acceptedAt; - this.autoCompleteDuration = autoCompleteDuration; - this.cancelReason = cancelReason; - this.expiresAt = expiresAt; - this.scheduleType = scheduleType; - this.pickupAt = pickupAt; - this.pickupWindowDuration = pickupWindowDuration; - this.prepTimeDuration = prepTimeDuration; - this.note = note; - this.placedAt = placedAt; - this.rejectedAt = rejectedAt; - this.readyAt = readyAt; - this.expiredAt = expiredAt; - this.pickedUpAt = pickedUpAt; - this.canceledAt = canceledAt; - this.isCurbsidePickup = isCurbsidePickup; - this.curbsidePickupDetails = curbsidePickupDetails; - this.recipient = recipient; - } - - public PickupDetails() { - this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public JsonNullable acceptedAt() { - return acceptedAt; - } - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - @JsonIgnore - public JsonNullable autoCompleteDuration() { - return autoCompleteDuration; - } - - /** - * A description of why the pickup was canceled. - */ - @JsonIgnore - public JsonNullable cancelReason() { - return cancelReason; - } - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - @JsonIgnore - public Optional expiresAt() { - return expiresAt; - } - - /** - * The schedule type of the pickup fulfillment. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional scheduleType() { - return (Optional) scheduleType; - } - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - @JsonIgnore - public Optional pickupAt() { - return pickupAt; - } - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - @JsonIgnore - public Optional pickupWindowDuration() { - return pickupWindowDuration; - } - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - @JsonIgnore - public Optional prepTimeDuration() { - return prepTimeDuration; - } - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - @JsonIgnore - public Optional note() { - return note; - } - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional placedAt() { - return placedAt; - } - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional rejectedAt() { - return rejectedAt; - } - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional readyAt() { - return readyAt; - } - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional expiredAt() { - return expiredAt; - } - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional pickedUpAt() { - return pickedUpAt; - } - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - @JsonIgnore - public Optional canceledAt() { - return canceledAt; - } - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - @JsonIgnore - public Optional isCurbsidePickup() { - return isCurbsidePickup; - } - - /** - * Specific details for curbside pickup. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional curbsidePickupDetails() { - return (Optional) curbsidePickupDetails; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional recipient() { - return (Optional) recipient; - } - - public final static Builder builder() { - return new Builder(); - } - - public PickupDetails withAcceptedAt(OffsetDateTime acceptedAt) { - Utils.checkNotNull(acceptedAt, "acceptedAt"); - this.acceptedAt = JsonNullable.of(acceptedAt); - return this; - } - - public PickupDetails withAcceptedAt(JsonNullable acceptedAt) { - Utils.checkNotNull(acceptedAt, "acceptedAt"); - this.acceptedAt = acceptedAt; - return this; - } - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - public PickupDetails withAutoCompleteDuration(String autoCompleteDuration) { - Utils.checkNotNull(autoCompleteDuration, "autoCompleteDuration"); - this.autoCompleteDuration = JsonNullable.of(autoCompleteDuration); - return this; - } - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - public PickupDetails withAutoCompleteDuration(JsonNullable autoCompleteDuration) { - Utils.checkNotNull(autoCompleteDuration, "autoCompleteDuration"); - this.autoCompleteDuration = autoCompleteDuration; - return this; - } - - /** - * A description of why the pickup was canceled. - */ - public PickupDetails withCancelReason(String cancelReason) { - Utils.checkNotNull(cancelReason, "cancelReason"); - this.cancelReason = JsonNullable.of(cancelReason); - return this; - } - - /** - * A description of why the pickup was canceled. - */ - public PickupDetails withCancelReason(JsonNullable cancelReason) { - Utils.checkNotNull(cancelReason, "cancelReason"); - this.cancelReason = cancelReason; - return this; - } - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - public PickupDetails withExpiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = Optional.ofNullable(expiresAt); - return this; - } - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - public PickupDetails withExpiresAt(Optional expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - /** - * The schedule type of the pickup fulfillment. - */ - public PickupDetails withScheduleType(ScheduleType scheduleType) { - Utils.checkNotNull(scheduleType, "scheduleType"); - this.scheduleType = Optional.ofNullable(scheduleType); - return this; - } - - /** - * The schedule type of the pickup fulfillment. - */ - public PickupDetails withScheduleType(Optional scheduleType) { - Utils.checkNotNull(scheduleType, "scheduleType"); - this.scheduleType = scheduleType; - return this; - } - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - public PickupDetails withPickupAt(OffsetDateTime pickupAt) { - Utils.checkNotNull(pickupAt, "pickupAt"); - this.pickupAt = Optional.ofNullable(pickupAt); - return this; - } - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - public PickupDetails withPickupAt(Optional pickupAt) { - Utils.checkNotNull(pickupAt, "pickupAt"); - this.pickupAt = pickupAt; - return this; - } - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - public PickupDetails withPickupWindowDuration(String pickupWindowDuration) { - Utils.checkNotNull(pickupWindowDuration, "pickupWindowDuration"); - this.pickupWindowDuration = Optional.ofNullable(pickupWindowDuration); - return this; - } - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - public PickupDetails withPickupWindowDuration(Optional pickupWindowDuration) { - Utils.checkNotNull(pickupWindowDuration, "pickupWindowDuration"); - this.pickupWindowDuration = pickupWindowDuration; - return this; - } - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - public PickupDetails withPrepTimeDuration(String prepTimeDuration) { - Utils.checkNotNull(prepTimeDuration, "prepTimeDuration"); - this.prepTimeDuration = Optional.ofNullable(prepTimeDuration); - return this; - } - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - public PickupDetails withPrepTimeDuration(Optional prepTimeDuration) { - Utils.checkNotNull(prepTimeDuration, "prepTimeDuration"); - this.prepTimeDuration = prepTimeDuration; - return this; - } - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - public PickupDetails withNote(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - public PickupDetails withNote(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withPlacedAt(OffsetDateTime placedAt) { - Utils.checkNotNull(placedAt, "placedAt"); - this.placedAt = Optional.ofNullable(placedAt); - return this; - } - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withPlacedAt(Optional placedAt) { - Utils.checkNotNull(placedAt, "placedAt"); - this.placedAt = placedAt; - return this; - } - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withRejectedAt(OffsetDateTime rejectedAt) { - Utils.checkNotNull(rejectedAt, "rejectedAt"); - this.rejectedAt = Optional.ofNullable(rejectedAt); - return this; - } - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withRejectedAt(Optional rejectedAt) { - Utils.checkNotNull(rejectedAt, "rejectedAt"); - this.rejectedAt = rejectedAt; - return this; - } - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withReadyAt(OffsetDateTime readyAt) { - Utils.checkNotNull(readyAt, "readyAt"); - this.readyAt = Optional.ofNullable(readyAt); - return this; - } - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withReadyAt(Optional readyAt) { - Utils.checkNotNull(readyAt, "readyAt"); - this.readyAt = readyAt; - return this; - } - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withExpiredAt(OffsetDateTime expiredAt) { - Utils.checkNotNull(expiredAt, "expiredAt"); - this.expiredAt = Optional.ofNullable(expiredAt); - return this; - } - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withExpiredAt(Optional expiredAt) { - Utils.checkNotNull(expiredAt, "expiredAt"); - this.expiredAt = expiredAt; - return this; - } - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withPickedUpAt(OffsetDateTime pickedUpAt) { - Utils.checkNotNull(pickedUpAt, "pickedUpAt"); - this.pickedUpAt = Optional.ofNullable(pickedUpAt); - return this; - } - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withPickedUpAt(Optional pickedUpAt) { - Utils.checkNotNull(pickedUpAt, "pickedUpAt"); - this.pickedUpAt = pickedUpAt; - return this; - } - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withCanceledAt(OffsetDateTime canceledAt) { - Utils.checkNotNull(canceledAt, "canceledAt"); - this.canceledAt = Optional.ofNullable(canceledAt); - return this; - } - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public PickupDetails withCanceledAt(Optional canceledAt) { - Utils.checkNotNull(canceledAt, "canceledAt"); - this.canceledAt = canceledAt; - return this; - } - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - public PickupDetails withIsCurbsidePickup(boolean isCurbsidePickup) { - Utils.checkNotNull(isCurbsidePickup, "isCurbsidePickup"); - this.isCurbsidePickup = Optional.ofNullable(isCurbsidePickup); - return this; - } - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - public PickupDetails withIsCurbsidePickup(Optional isCurbsidePickup) { - Utils.checkNotNull(isCurbsidePickup, "isCurbsidePickup"); - this.isCurbsidePickup = isCurbsidePickup; - return this; - } - - /** - * Specific details for curbside pickup. - */ - public PickupDetails withCurbsidePickupDetails(CurbsidePickupDetails curbsidePickupDetails) { - Utils.checkNotNull(curbsidePickupDetails, "curbsidePickupDetails"); - this.curbsidePickupDetails = Optional.ofNullable(curbsidePickupDetails); - return this; - } - - /** - * Specific details for curbside pickup. - */ - public PickupDetails withCurbsidePickupDetails(Optional curbsidePickupDetails) { - Utils.checkNotNull(curbsidePickupDetails, "curbsidePickupDetails"); - this.curbsidePickupDetails = curbsidePickupDetails; - return this; - } - - public PickupDetails withRecipient(Recipient recipient) { - Utils.checkNotNull(recipient, "recipient"); - this.recipient = Optional.ofNullable(recipient); - return this; - } - - public PickupDetails withRecipient(Optional recipient) { - Utils.checkNotNull(recipient, "recipient"); - this.recipient = recipient; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PickupDetails other = (PickupDetails) o; - return - Objects.deepEquals(this.acceptedAt, other.acceptedAt) && - Objects.deepEquals(this.autoCompleteDuration, other.autoCompleteDuration) && - Objects.deepEquals(this.cancelReason, other.cancelReason) && - Objects.deepEquals(this.expiresAt, other.expiresAt) && - Objects.deepEquals(this.scheduleType, other.scheduleType) && - Objects.deepEquals(this.pickupAt, other.pickupAt) && - Objects.deepEquals(this.pickupWindowDuration, other.pickupWindowDuration) && - Objects.deepEquals(this.prepTimeDuration, other.prepTimeDuration) && - Objects.deepEquals(this.note, other.note) && - Objects.deepEquals(this.placedAt, other.placedAt) && - Objects.deepEquals(this.rejectedAt, other.rejectedAt) && - Objects.deepEquals(this.readyAt, other.readyAt) && - Objects.deepEquals(this.expiredAt, other.expiredAt) && - Objects.deepEquals(this.pickedUpAt, other.pickedUpAt) && - Objects.deepEquals(this.canceledAt, other.canceledAt) && - Objects.deepEquals(this.isCurbsidePickup, other.isCurbsidePickup) && - Objects.deepEquals(this.curbsidePickupDetails, other.curbsidePickupDetails) && - Objects.deepEquals(this.recipient, other.recipient); - } - - @Override - public int hashCode() { - return Objects.hash( - acceptedAt, - autoCompleteDuration, - cancelReason, - expiresAt, - scheduleType, - pickupAt, - pickupWindowDuration, - prepTimeDuration, - note, - placedAt, - rejectedAt, - readyAt, - expiredAt, - pickedUpAt, - canceledAt, - isCurbsidePickup, - curbsidePickupDetails, - recipient); - } - - @Override - public String toString() { - return Utils.toString(PickupDetails.class, - "acceptedAt", acceptedAt, - "autoCompleteDuration", autoCompleteDuration, - "cancelReason", cancelReason, - "expiresAt", expiresAt, - "scheduleType", scheduleType, - "pickupAt", pickupAt, - "pickupWindowDuration", pickupWindowDuration, - "prepTimeDuration", prepTimeDuration, - "note", note, - "placedAt", placedAt, - "rejectedAt", rejectedAt, - "readyAt", readyAt, - "expiredAt", expiredAt, - "pickedUpAt", pickedUpAt, - "canceledAt", canceledAt, - "isCurbsidePickup", isCurbsidePickup, - "curbsidePickupDetails", curbsidePickupDetails, - "recipient", recipient); - } - - public final static class Builder { - - private JsonNullable acceptedAt = JsonNullable.undefined(); - - private JsonNullable autoCompleteDuration = JsonNullable.undefined(); - - private JsonNullable cancelReason = JsonNullable.undefined(); - - private Optional expiresAt = Optional.empty(); - - private Optional scheduleType = Optional.empty(); - - private Optional pickupAt = Optional.empty(); - - private Optional pickupWindowDuration = Optional.empty(); - - private Optional prepTimeDuration = Optional.empty(); - - private Optional note = Optional.empty(); - - private Optional placedAt = Optional.empty(); - - private Optional rejectedAt = Optional.empty(); - - private Optional readyAt = Optional.empty(); - - private Optional expiredAt = Optional.empty(); - - private Optional pickedUpAt = Optional.empty(); - - private Optional canceledAt = Optional.empty(); - - private Optional isCurbsidePickup = Optional.empty(); - - private Optional curbsidePickupDetails = Optional.empty(); - - private Optional recipient = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder acceptedAt(OffsetDateTime acceptedAt) { - Utils.checkNotNull(acceptedAt, "acceptedAt"); - this.acceptedAt = JsonNullable.of(acceptedAt); - return this; - } - - public Builder acceptedAt(JsonNullable acceptedAt) { - Utils.checkNotNull(acceptedAt, "acceptedAt"); - this.acceptedAt = acceptedAt; - return this; - } - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - public Builder autoCompleteDuration(String autoCompleteDuration) { - Utils.checkNotNull(autoCompleteDuration, "autoCompleteDuration"); - this.autoCompleteDuration = JsonNullable.of(autoCompleteDuration); - return this; - } - - /** - * The duration of time after which an open and accepted pickup fulfillment is automatically moved to the COMPLETED state. The duration must be in RFC 3339 format (for example, 'P1W3D'). - */ - public Builder autoCompleteDuration(JsonNullable autoCompleteDuration) { - Utils.checkNotNull(autoCompleteDuration, "autoCompleteDuration"); - this.autoCompleteDuration = autoCompleteDuration; - return this; - } - - /** - * A description of why the pickup was canceled. - */ - public Builder cancelReason(String cancelReason) { - Utils.checkNotNull(cancelReason, "cancelReason"); - this.cancelReason = JsonNullable.of(cancelReason); - return this; - } - - /** - * A description of why the pickup was canceled. - */ - public Builder cancelReason(JsonNullable cancelReason) { - Utils.checkNotNull(cancelReason, "cancelReason"); - this.cancelReason = cancelReason; - return this; - } - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - public Builder expiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = Optional.ofNullable(expiresAt); - return this; - } - - /** - * Indicating when this fulfillment expires if it is not accepted. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. - * If `expires_at` is not set, this pickup fulfillment is automatically accepted when - * placed. - */ - public Builder expiresAt(Optional expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - /** - * The schedule type of the pickup fulfillment. - */ - public Builder scheduleType(ScheduleType scheduleType) { - Utils.checkNotNull(scheduleType, "scheduleType"); - this.scheduleType = Optional.ofNullable(scheduleType); - return this; - } - - /** - * The schedule type of the pickup fulfillment. - */ - public Builder scheduleType(Optional scheduleType) { - Utils.checkNotNull(scheduleType, "scheduleType"); - this.scheduleType = scheduleType; - return this; - } - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - public Builder pickupAt(OffsetDateTime pickupAt) { - Utils.checkNotNull(pickupAt, "pickupAt"); - this.pickupAt = Optional.ofNullable(pickupAt); - return this; - } - - /** - * The timestamp that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., - * "2016-09-04T23:59:33.123Z". - * - * For fulfillments with the schedule type `ASAP`, this is automatically set - * to the current time plus the expected duration to prepare the fulfillment. - */ - public Builder pickupAt(Optional pickupAt) { - Utils.checkNotNull(pickupAt, "pickupAt"); - this.pickupAt = pickupAt; - return this; - } - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - public Builder pickupWindowDuration(String pickupWindowDuration) { - Utils.checkNotNull(pickupWindowDuration, "pickupWindowDuration"); - this.pickupWindowDuration = Optional.ofNullable(pickupWindowDuration); - return this; - } - - /** - * The window of time in which the order should be picked up after the `pickup_at` timestamp. - * Must be in RFC 3339 duration format, e.g., "P1W3D". Can be used as an - * informational guideline for merchants. - */ - public Builder pickupWindowDuration(Optional pickupWindowDuration) { - Utils.checkNotNull(pickupWindowDuration, "pickupWindowDuration"); - this.pickupWindowDuration = pickupWindowDuration; - return this; - } - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - public Builder prepTimeDuration(String prepTimeDuration) { - Utils.checkNotNull(prepTimeDuration, "prepTimeDuration"); - this.prepTimeDuration = Optional.ofNullable(prepTimeDuration); - return this; - } - - /** - * The duration of time it takes to prepare this fulfillment. - * The duration must be in RFC 3339 format (for example, "P1W3D"). - */ - public Builder prepTimeDuration(Optional prepTimeDuration) { - Utils.checkNotNull(prepTimeDuration, "prepTimeDuration"); - this.prepTimeDuration = prepTimeDuration; - return this; - } - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - public Builder note(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - /** - * A note meant to provide additional instructions about the pickup - * fulfillment displayed in the Square Point of Sale application and set by the API. - */ - public Builder note(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder placedAt(OffsetDateTime placedAt) { - Utils.checkNotNull(placedAt, "placedAt"); - this.placedAt = Optional.ofNullable(placedAt); - return this; - } - - /** - * Indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder placedAt(Optional placedAt) { - Utils.checkNotNull(placedAt, "placedAt"); - this.placedAt = placedAt; - return this; - } - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder rejectedAt(OffsetDateTime rejectedAt) { - Utils.checkNotNull(rejectedAt, "rejectedAt"); - this.rejectedAt = Optional.ofNullable(rejectedAt); - return this; - } - - /** - * Indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder rejectedAt(Optional rejectedAt) { - Utils.checkNotNull(rejectedAt, "rejectedAt"); - this.rejectedAt = rejectedAt; - return this; - } - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder readyAt(OffsetDateTime readyAt) { - Utils.checkNotNull(readyAt, "readyAt"); - this.readyAt = Optional.ofNullable(readyAt); - return this; - } - - /** - * Indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder readyAt(Optional readyAt) { - Utils.checkNotNull(readyAt, "readyAt"); - this.readyAt = readyAt; - return this; - } - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder expiredAt(OffsetDateTime expiredAt) { - Utils.checkNotNull(expiredAt, "expiredAt"); - this.expiredAt = Optional.ofNullable(expiredAt); - return this; - } - - /** - * Indicating when the fulfillment expired. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder expiredAt(Optional expiredAt) { - Utils.checkNotNull(expiredAt, "expiredAt"); - this.expiredAt = expiredAt; - return this; - } - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder pickedUpAt(OffsetDateTime pickedUpAt) { - Utils.checkNotNull(pickedUpAt, "pickedUpAt"); - this.pickedUpAt = Optional.ofNullable(pickedUpAt); - return this; - } - - /** - * Indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder pickedUpAt(Optional pickedUpAt) { - Utils.checkNotNull(pickedUpAt, "pickedUpAt"); - this.pickedUpAt = pickedUpAt; - return this; - } - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder canceledAt(OffsetDateTime canceledAt) { - Utils.checkNotNull(canceledAt, "canceledAt"); - this.canceledAt = Optional.ofNullable(canceledAt); - return this; - } - - /** - * Indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format - * (for example, "2016-09-04T23:59:33.123Z"). - */ - public Builder canceledAt(Optional canceledAt) { - Utils.checkNotNull(canceledAt, "canceledAt"); - this.canceledAt = canceledAt; - return this; - } - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - public Builder isCurbsidePickup(boolean isCurbsidePickup) { - Utils.checkNotNull(isCurbsidePickup, "isCurbsidePickup"); - this.isCurbsidePickup = Optional.ofNullable(isCurbsidePickup); - return this; - } - - /** - * If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. - */ - public Builder isCurbsidePickup(Optional isCurbsidePickup) { - Utils.checkNotNull(isCurbsidePickup, "isCurbsidePickup"); - this.isCurbsidePickup = isCurbsidePickup; - return this; - } - - /** - * Specific details for curbside pickup. - */ - public Builder curbsidePickupDetails(CurbsidePickupDetails curbsidePickupDetails) { - Utils.checkNotNull(curbsidePickupDetails, "curbsidePickupDetails"); - this.curbsidePickupDetails = Optional.ofNullable(curbsidePickupDetails); - return this; - } - - /** - * Specific details for curbside pickup. - */ - public Builder curbsidePickupDetails(Optional curbsidePickupDetails) { - Utils.checkNotNull(curbsidePickupDetails, "curbsidePickupDetails"); - this.curbsidePickupDetails = curbsidePickupDetails; - return this; - } - - public Builder recipient(Recipient recipient) { - Utils.checkNotNull(recipient, "recipient"); - this.recipient = Optional.ofNullable(recipient); - return this; - } - - public Builder recipient(Optional recipient) { - Utils.checkNotNull(recipient, "recipient"); - this.recipient = recipient; - return this; - } - - public PickupDetails build() { - return new PickupDetails( - acceptedAt, - autoCompleteDuration, - cancelReason, - expiresAt, - scheduleType, - pickupAt, - pickupWindowDuration, - prepTimeDuration, - note, - placedAt, - rejectedAt, - readyAt, - expiredAt, - pickedUpAt, - canceledAt, - isCurbsidePickup, - curbsidePickupDetails, - recipient); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/PosBankAccount.java b/src/main/java/com/apideck/unify/models/components/PosBankAccount.java deleted file mode 100644 index dc49c08..0000000 --- a/src/main/java/com/apideck/unify/models/components/PosBankAccount.java +++ /dev/null @@ -1,505 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * PosBankAccount - Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - -public class PosBankAccount { - - /** - * The name of the bank associated with the bank account. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bank_name") - private Optional bankName; - - /** - * The type of the bank transfer. The type can be `ACH` or `UNKNOWN`. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transfer_type") - private Optional transferType; - - /** - * The ownership type of the bank account performing the transfer. - * The type can be `INDIVIDUAL`, `COMPANY`, or `UNKNOWN`. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("account_ownership_type") - private Optional accountOwnershipType; - - /** - * Uniquely identifies the bank account for this seller and can be used - * to determine if payments are from the same bank account. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("fingerprint") - private Optional fingerprint; - - /** - * Country code according to ISO 3166-1 alpha-2. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("country") - private JsonNullable country; - - /** - * The statement description as sent to the bank. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("statement_description") - private Optional statementDescription; - - /** - * ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ach_details") - private Optional achDetails; - - @JsonCreator - public PosBankAccount( - @JsonProperty("bank_name") Optional bankName, - @JsonProperty("transfer_type") Optional transferType, - @JsonProperty("account_ownership_type") Optional accountOwnershipType, - @JsonProperty("fingerprint") Optional fingerprint, - @JsonProperty("country") JsonNullable country, - @JsonProperty("statement_description") Optional statementDescription, - @JsonProperty("ach_details") Optional achDetails) { - Utils.checkNotNull(bankName, "bankName"); - Utils.checkNotNull(transferType, "transferType"); - Utils.checkNotNull(accountOwnershipType, "accountOwnershipType"); - Utils.checkNotNull(fingerprint, "fingerprint"); - Utils.checkNotNull(country, "country"); - Utils.checkNotNull(statementDescription, "statementDescription"); - Utils.checkNotNull(achDetails, "achDetails"); - this.bankName = bankName; - this.transferType = transferType; - this.accountOwnershipType = accountOwnershipType; - this.fingerprint = fingerprint; - this.country = country; - this.statementDescription = statementDescription; - this.achDetails = achDetails; - } - - public PosBankAccount() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty()); - } - - /** - * The name of the bank associated with the bank account. - */ - @JsonIgnore - public Optional bankName() { - return bankName; - } - - /** - * The type of the bank transfer. The type can be `ACH` or `UNKNOWN`. - */ - @JsonIgnore - public Optional transferType() { - return transferType; - } - - /** - * The ownership type of the bank account performing the transfer. - * The type can be `INDIVIDUAL`, `COMPANY`, or `UNKNOWN`. - */ - @JsonIgnore - public Optional accountOwnershipType() { - return accountOwnershipType; - } - - /** - * Uniquely identifies the bank account for this seller and can be used - * to determine if payments are from the same bank account. - */ - @JsonIgnore - public Optional fingerprint() { - return fingerprint; - } - - /** - * Country code according to ISO 3166-1 alpha-2. - */ - @JsonIgnore - public JsonNullable country() { - return country; - } - - /** - * The statement description as sent to the bank. - */ - @JsonIgnore - public Optional statementDescription() { - return statementDescription; - } - - /** - * ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional achDetails() { - return (Optional) achDetails; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The name of the bank associated with the bank account. - */ - public PosBankAccount withBankName(String bankName) { - Utils.checkNotNull(bankName, "bankName"); - this.bankName = Optional.ofNullable(bankName); - return this; - } - - /** - * The name of the bank associated with the bank account. - */ - public PosBankAccount withBankName(Optional bankName) { - Utils.checkNotNull(bankName, "bankName"); - this.bankName = bankName; - return this; - } - - /** - * The type of the bank transfer. The type can be `ACH` or `UNKNOWN`. - */ - public PosBankAccount withTransferType(String transferType) { - Utils.checkNotNull(transferType, "transferType"); - this.transferType = Optional.ofNullable(transferType); - return this; - } - - /** - * The type of the bank transfer. The type can be `ACH` or `UNKNOWN`. - */ - public PosBankAccount withTransferType(Optional transferType) { - Utils.checkNotNull(transferType, "transferType"); - this.transferType = transferType; - return this; - } - - /** - * The ownership type of the bank account performing the transfer. - * The type can be `INDIVIDUAL`, `COMPANY`, or `UNKNOWN`. - */ - public PosBankAccount withAccountOwnershipType(String accountOwnershipType) { - Utils.checkNotNull(accountOwnershipType, "accountOwnershipType"); - this.accountOwnershipType = Optional.ofNullable(accountOwnershipType); - return this; - } - - /** - * The ownership type of the bank account performing the transfer. - * The type can be `INDIVIDUAL`, `COMPANY`, or `UNKNOWN`. - */ - public PosBankAccount withAccountOwnershipType(Optional accountOwnershipType) { - Utils.checkNotNull(accountOwnershipType, "accountOwnershipType"); - this.accountOwnershipType = accountOwnershipType; - return this; - } - - /** - * Uniquely identifies the bank account for this seller and can be used - * to determine if payments are from the same bank account. - */ - public PosBankAccount withFingerprint(String fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = Optional.ofNullable(fingerprint); - return this; - } - - /** - * Uniquely identifies the bank account for this seller and can be used - * to determine if payments are from the same bank account. - */ - public PosBankAccount withFingerprint(Optional fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = fingerprint; - return this; - } - - /** - * Country code according to ISO 3166-1 alpha-2. - */ - public PosBankAccount withCountry(String country) { - Utils.checkNotNull(country, "country"); - this.country = JsonNullable.of(country); - return this; - } - - /** - * Country code according to ISO 3166-1 alpha-2. - */ - public PosBankAccount withCountry(JsonNullable country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - /** - * The statement description as sent to the bank. - */ - public PosBankAccount withStatementDescription(String statementDescription) { - Utils.checkNotNull(statementDescription, "statementDescription"); - this.statementDescription = Optional.ofNullable(statementDescription); - return this; - } - - /** - * The statement description as sent to the bank. - */ - public PosBankAccount withStatementDescription(Optional statementDescription) { - Utils.checkNotNull(statementDescription, "statementDescription"); - this.statementDescription = statementDescription; - return this; - } - - /** - * ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`. - */ - public PosBankAccount withAchDetails(AchDetails achDetails) { - Utils.checkNotNull(achDetails, "achDetails"); - this.achDetails = Optional.ofNullable(achDetails); - return this; - } - - /** - * ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`. - */ - public PosBankAccount withAchDetails(Optional achDetails) { - Utils.checkNotNull(achDetails, "achDetails"); - this.achDetails = achDetails; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosBankAccount other = (PosBankAccount) o; - return - Objects.deepEquals(this.bankName, other.bankName) && - Objects.deepEquals(this.transferType, other.transferType) && - Objects.deepEquals(this.accountOwnershipType, other.accountOwnershipType) && - Objects.deepEquals(this.fingerprint, other.fingerprint) && - Objects.deepEquals(this.country, other.country) && - Objects.deepEquals(this.statementDescription, other.statementDescription) && - Objects.deepEquals(this.achDetails, other.achDetails); - } - - @Override - public int hashCode() { - return Objects.hash( - bankName, - transferType, - accountOwnershipType, - fingerprint, - country, - statementDescription, - achDetails); - } - - @Override - public String toString() { - return Utils.toString(PosBankAccount.class, - "bankName", bankName, - "transferType", transferType, - "accountOwnershipType", accountOwnershipType, - "fingerprint", fingerprint, - "country", country, - "statementDescription", statementDescription, - "achDetails", achDetails); - } - - public final static class Builder { - - private Optional bankName = Optional.empty(); - - private Optional transferType = Optional.empty(); - - private Optional accountOwnershipType = Optional.empty(); - - private Optional fingerprint = Optional.empty(); - - private JsonNullable country = JsonNullable.undefined(); - - private Optional statementDescription = Optional.empty(); - - private Optional achDetails = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The name of the bank associated with the bank account. - */ - public Builder bankName(String bankName) { - Utils.checkNotNull(bankName, "bankName"); - this.bankName = Optional.ofNullable(bankName); - return this; - } - - /** - * The name of the bank associated with the bank account. - */ - public Builder bankName(Optional bankName) { - Utils.checkNotNull(bankName, "bankName"); - this.bankName = bankName; - return this; - } - - /** - * The type of the bank transfer. The type can be `ACH` or `UNKNOWN`. - */ - public Builder transferType(String transferType) { - Utils.checkNotNull(transferType, "transferType"); - this.transferType = Optional.ofNullable(transferType); - return this; - } - - /** - * The type of the bank transfer. The type can be `ACH` or `UNKNOWN`. - */ - public Builder transferType(Optional transferType) { - Utils.checkNotNull(transferType, "transferType"); - this.transferType = transferType; - return this; - } - - /** - * The ownership type of the bank account performing the transfer. - * The type can be `INDIVIDUAL`, `COMPANY`, or `UNKNOWN`. - */ - public Builder accountOwnershipType(String accountOwnershipType) { - Utils.checkNotNull(accountOwnershipType, "accountOwnershipType"); - this.accountOwnershipType = Optional.ofNullable(accountOwnershipType); - return this; - } - - /** - * The ownership type of the bank account performing the transfer. - * The type can be `INDIVIDUAL`, `COMPANY`, or `UNKNOWN`. - */ - public Builder accountOwnershipType(Optional accountOwnershipType) { - Utils.checkNotNull(accountOwnershipType, "accountOwnershipType"); - this.accountOwnershipType = accountOwnershipType; - return this; - } - - /** - * Uniquely identifies the bank account for this seller and can be used - * to determine if payments are from the same bank account. - */ - public Builder fingerprint(String fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = Optional.ofNullable(fingerprint); - return this; - } - - /** - * Uniquely identifies the bank account for this seller and can be used - * to determine if payments are from the same bank account. - */ - public Builder fingerprint(Optional fingerprint) { - Utils.checkNotNull(fingerprint, "fingerprint"); - this.fingerprint = fingerprint; - return this; - } - - /** - * Country code according to ISO 3166-1 alpha-2. - */ - public Builder country(String country) { - Utils.checkNotNull(country, "country"); - this.country = JsonNullable.of(country); - return this; - } - - /** - * Country code according to ISO 3166-1 alpha-2. - */ - public Builder country(JsonNullable country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - /** - * The statement description as sent to the bank. - */ - public Builder statementDescription(String statementDescription) { - Utils.checkNotNull(statementDescription, "statementDescription"); - this.statementDescription = Optional.ofNullable(statementDescription); - return this; - } - - /** - * The statement description as sent to the bank. - */ - public Builder statementDescription(Optional statementDescription) { - Utils.checkNotNull(statementDescription, "statementDescription"); - this.statementDescription = statementDescription; - return this; - } - - /** - * ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`. - */ - public Builder achDetails(AchDetails achDetails) { - Utils.checkNotNull(achDetails, "achDetails"); - this.achDetails = Optional.ofNullable(achDetails); - return this; - } - - /** - * ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`. - */ - public Builder achDetails(Optional achDetails) { - Utils.checkNotNull(achDetails, "achDetails"); - this.achDetails = achDetails; - return this; - } - - public PosBankAccount build() { - return new PosBankAccount( - bankName, - transferType, - accountOwnershipType, - fingerprint, - country, - statementDescription, - achDetails); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/PosPayment.java b/src/main/java/com/apideck/unify/models/components/PosPayment.java deleted file mode 100644 index c1ab252..0000000 --- a/src/main/java/com/apideck/unify/models/components/PosPayment.java +++ /dev/null @@ -1,1848 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosPayment { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * The ID for the source of funds for this payment. Square-only: This can be a payment token (card nonce) generated by the payment form or a card on file made linked to the customer. if recording a payment that the seller received outside of Square, specify either `CASH` or `EXTERNAL`. - */ - @JsonProperty("source_id") - private String sourceId; - - @JsonProperty("order_id") - private String orderId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("merchant_id") - private Optional merchantId; - - @JsonProperty("customer_id") - private String customerId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("employee_id") - private Optional employeeId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("location_id") - private Optional locationId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("device_id") - private Optional deviceId; - - @JsonProperty("tender_id") - private String tenderId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("external_payment_id") - private Optional externalPaymentId; - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("idempotency_key") - private Optional idempotencyKey; - - @JsonProperty("amount") - private double amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.ALWAYS) - @JsonProperty("currency") - private Optional currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tip") - private Optional tip; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tax") - private Optional tax; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total") - private Optional total; - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("app_fee") - private Optional appFee; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("change_back_cash_amount") - private Optional changeBackCashAmount; - - /** - * The initial amount of money approved for this payment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("approved") - private Optional approved; - - /** - * The initial amount of money approved for this payment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("refunded") - private Optional refunded; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("processing_fees") - private Optional> processingFees; - - /** - * Source of this payment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("source") - private Optional source; - - /** - * Status of this payment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - /** - * Cash details for this payment - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cash") - private Optional cash; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card_details") - private Optional cardDetails; - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bank_account") - private Optional bankAccount; - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("wallet") - private Optional wallet; - - /** - * Details about an external payment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("external_details") - private Optional externalDetails; - - /** - * Optional service charges or gratuity tip applied to the order. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("service_charges") - private Optional> serviceCharges; - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("custom_mappings") - private JsonNullable customMappings; - - /** - * The user who last updated the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_by") - private JsonNullable updatedBy; - - /** - * The user who created the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_by") - private JsonNullable createdBy; - - /** - * The date and time when the object was last updated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_at") - private JsonNullable updatedAt; - - /** - * The date and time when the object was created. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_at") - private JsonNullable createdAt; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public PosPayment( - @JsonProperty("id") Optional id, - @JsonProperty("source_id") String sourceId, - @JsonProperty("order_id") String orderId, - @JsonProperty("merchant_id") Optional merchantId, - @JsonProperty("customer_id") String customerId, - @JsonProperty("employee_id") Optional employeeId, - @JsonProperty("location_id") Optional locationId, - @JsonProperty("device_id") Optional deviceId, - @JsonProperty("tender_id") String tenderId, - @JsonProperty("external_payment_id") Optional externalPaymentId, - @JsonProperty("idempotency_key") Optional idempotencyKey, - @JsonProperty("amount") double amount, - @JsonProperty("currency") Optional currency, - @JsonProperty("tip") Optional tip, - @JsonProperty("tax") Optional tax, - @JsonProperty("total") Optional total, - @JsonProperty("app_fee") Optional appFee, - @JsonProperty("change_back_cash_amount") Optional changeBackCashAmount, - @JsonProperty("approved") Optional approved, - @JsonProperty("refunded") Optional refunded, - @JsonProperty("processing_fees") Optional> processingFees, - @JsonProperty("source") Optional source, - @JsonProperty("status") Optional status, - @JsonProperty("cash") Optional cash, - @JsonProperty("card_details") Optional cardDetails, - @JsonProperty("bank_account") Optional bankAccount, - @JsonProperty("wallet") Optional wallet, - @JsonProperty("external_details") Optional externalDetails, - @JsonProperty("service_charges") Optional> serviceCharges, - @JsonProperty("custom_mappings") JsonNullable customMappings, - @JsonProperty("updated_by") JsonNullable updatedBy, - @JsonProperty("created_by") JsonNullable createdBy, - @JsonProperty("updated_at") JsonNullable updatedAt, - @JsonProperty("created_at") JsonNullable createdAt, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(sourceId, "sourceId"); - Utils.checkNotNull(orderId, "orderId"); - Utils.checkNotNull(merchantId, "merchantId"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(employeeId, "employeeId"); - Utils.checkNotNull(locationId, "locationId"); - Utils.checkNotNull(deviceId, "deviceId"); - Utils.checkNotNull(tenderId, "tenderId"); - Utils.checkNotNull(externalPaymentId, "externalPaymentId"); - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(tip, "tip"); - Utils.checkNotNull(tax, "tax"); - Utils.checkNotNull(total, "total"); - Utils.checkNotNull(appFee, "appFee"); - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - Utils.checkNotNull(approved, "approved"); - Utils.checkNotNull(refunded, "refunded"); - Utils.checkNotNull(processingFees, "processingFees"); - Utils.checkNotNull(source, "source"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(cash, "cash"); - Utils.checkNotNull(cardDetails, "cardDetails"); - Utils.checkNotNull(bankAccount, "bankAccount"); - Utils.checkNotNull(wallet, "wallet"); - Utils.checkNotNull(externalDetails, "externalDetails"); - Utils.checkNotNull(serviceCharges, "serviceCharges"); - Utils.checkNotNull(customMappings, "customMappings"); - Utils.checkNotNull(updatedBy, "updatedBy"); - Utils.checkNotNull(createdBy, "createdBy"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(passThrough, "passThrough"); - this.id = id; - this.sourceId = sourceId; - this.orderId = orderId; - this.merchantId = merchantId; - this.customerId = customerId; - this.employeeId = employeeId; - this.locationId = locationId; - this.deviceId = deviceId; - this.tenderId = tenderId; - this.externalPaymentId = externalPaymentId; - this.idempotencyKey = idempotencyKey; - this.amount = amount; - this.currency = currency; - this.tip = tip; - this.tax = tax; - this.total = total; - this.appFee = appFee; - this.changeBackCashAmount = changeBackCashAmount; - this.approved = approved; - this.refunded = refunded; - this.processingFees = processingFees; - this.source = source; - this.status = status; - this.cash = cash; - this.cardDetails = cardDetails; - this.bankAccount = bankAccount; - this.wallet = wallet; - this.externalDetails = externalDetails; - this.serviceCharges = serviceCharges; - this.customMappings = customMappings; - this.updatedBy = updatedBy; - this.createdBy = createdBy; - this.updatedAt = updatedAt; - this.createdAt = createdAt; - this.passThrough = passThrough; - } - - public PosPayment( - String sourceId, - String orderId, - String customerId, - String tenderId, - double amount) { - this(Optional.empty(), sourceId, orderId, Optional.empty(), customerId, Optional.empty(), Optional.empty(), Optional.empty(), tenderId, Optional.empty(), Optional.empty(), amount, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - /** - * The ID for the source of funds for this payment. Square-only: This can be a payment token (card nonce) generated by the payment form or a card on file made linked to the customer. if recording a payment that the seller received outside of Square, specify either `CASH` or `EXTERNAL`. - */ - @JsonIgnore - public String sourceId() { - return sourceId; - } - - @JsonIgnore - public String orderId() { - return orderId; - } - - @JsonIgnore - public Optional merchantId() { - return merchantId; - } - - @JsonIgnore - public String customerId() { - return customerId; - } - - @JsonIgnore - public Optional employeeId() { - return employeeId; - } - - @JsonIgnore - public Optional locationId() { - return locationId; - } - - @JsonIgnore - public Optional deviceId() { - return deviceId; - } - - @JsonIgnore - public String tenderId() { - return tenderId; - } - - @JsonIgnore - public Optional externalPaymentId() { - return externalPaymentId; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonIgnore - public Optional idempotencyKey() { - return idempotencyKey; - } - - @JsonIgnore - public double amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional currency() { - return (Optional) currency; - } - - @JsonIgnore - public Optional tip() { - return tip; - } - - @JsonIgnore - public Optional tax() { - return tax; - } - - @JsonIgnore - public Optional total() { - return total; - } - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - @JsonIgnore - public Optional appFee() { - return appFee; - } - - @JsonIgnore - public Optional changeBackCashAmount() { - return changeBackCashAmount; - } - - /** - * The initial amount of money approved for this payment. - */ - @JsonIgnore - public Optional approved() { - return approved; - } - - /** - * The initial amount of money approved for this payment. - */ - @JsonIgnore - public Optional refunded() { - return refunded; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> processingFees() { - return (Optional>) processingFees; - } - - /** - * Source of this payment. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional source() { - return (Optional) source; - } - - /** - * Status of this payment. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - /** - * Cash details for this payment - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional cash() { - return (Optional) cash; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional cardDetails() { - return (Optional) cardDetails; - } - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bankAccount() { - return (Optional) bankAccount; - } - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional wallet() { - return (Optional) wallet; - } - - /** - * Details about an external payment. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional externalDetails() { - return (Optional) externalDetails; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> serviceCharges() { - return (Optional>) serviceCharges; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable customMappings() { - return (JsonNullable) customMappings; - } - - /** - * The user who last updated the object. - */ - @JsonIgnore - public JsonNullable updatedBy() { - return updatedBy; - } - - /** - * The user who created the object. - */ - @JsonIgnore - public JsonNullable createdBy() { - return createdBy; - } - - /** - * The date and time when the object was last updated. - */ - @JsonIgnore - public JsonNullable updatedAt() { - return updatedAt; - } - - /** - * The date and time when the object was created. - */ - @JsonIgnore - public JsonNullable createdAt() { - return createdAt; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public PosPayment withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public PosPayment withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The ID for the source of funds for this payment. Square-only: This can be a payment token (card nonce) generated by the payment form or a card on file made linked to the customer. if recording a payment that the seller received outside of Square, specify either `CASH` or `EXTERNAL`. - */ - public PosPayment withSourceId(String sourceId) { - Utils.checkNotNull(sourceId, "sourceId"); - this.sourceId = sourceId; - return this; - } - - public PosPayment withOrderId(String orderId) { - Utils.checkNotNull(orderId, "orderId"); - this.orderId = orderId; - return this; - } - - public PosPayment withMerchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public PosPayment withMerchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - public PosPayment withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public PosPayment withEmployeeId(String employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = Optional.ofNullable(employeeId); - return this; - } - - public PosPayment withEmployeeId(Optional employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = employeeId; - return this; - } - - public PosPayment withLocationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = Optional.ofNullable(locationId); - return this; - } - - public PosPayment withLocationId(Optional locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - public PosPayment withDeviceId(String deviceId) { - Utils.checkNotNull(deviceId, "deviceId"); - this.deviceId = Optional.ofNullable(deviceId); - return this; - } - - public PosPayment withDeviceId(Optional deviceId) { - Utils.checkNotNull(deviceId, "deviceId"); - this.deviceId = deviceId; - return this; - } - - public PosPayment withTenderId(String tenderId) { - Utils.checkNotNull(tenderId, "tenderId"); - this.tenderId = tenderId; - return this; - } - - public PosPayment withExternalPaymentId(String externalPaymentId) { - Utils.checkNotNull(externalPaymentId, "externalPaymentId"); - this.externalPaymentId = Optional.ofNullable(externalPaymentId); - return this; - } - - public PosPayment withExternalPaymentId(Optional externalPaymentId) { - Utils.checkNotNull(externalPaymentId, "externalPaymentId"); - this.externalPaymentId = externalPaymentId; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public PosPayment withIdempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public PosPayment withIdempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public PosPayment withAmount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public PosPayment withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = Optional.ofNullable(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public PosPayment withCurrency(Optional currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public PosPayment withTip(double tip) { - Utils.checkNotNull(tip, "tip"); - this.tip = Optional.ofNullable(tip); - return this; - } - - public PosPayment withTip(Optional tip) { - Utils.checkNotNull(tip, "tip"); - this.tip = tip; - return this; - } - - public PosPayment withTax(double tax) { - Utils.checkNotNull(tax, "tax"); - this.tax = Optional.ofNullable(tax); - return this; - } - - public PosPayment withTax(Optional tax) { - Utils.checkNotNull(tax, "tax"); - this.tax = tax; - return this; - } - - public PosPayment withTotal(double total) { - Utils.checkNotNull(total, "total"); - this.total = Optional.ofNullable(total); - return this; - } - - public PosPayment withTotal(Optional total) { - Utils.checkNotNull(total, "total"); - this.total = total; - return this; - } - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - public PosPayment withAppFee(double appFee) { - Utils.checkNotNull(appFee, "appFee"); - this.appFee = Optional.ofNullable(appFee); - return this; - } - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - public PosPayment withAppFee(Optional appFee) { - Utils.checkNotNull(appFee, "appFee"); - this.appFee = appFee; - return this; - } - - public PosPayment withChangeBackCashAmount(double changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = Optional.ofNullable(changeBackCashAmount); - return this; - } - - public PosPayment withChangeBackCashAmount(Optional changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = changeBackCashAmount; - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public PosPayment withApproved(double approved) { - Utils.checkNotNull(approved, "approved"); - this.approved = Optional.ofNullable(approved); - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public PosPayment withApproved(Optional approved) { - Utils.checkNotNull(approved, "approved"); - this.approved = approved; - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public PosPayment withRefunded(double refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = Optional.ofNullable(refunded); - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public PosPayment withRefunded(Optional refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = refunded; - return this; - } - - public PosPayment withProcessingFees(List processingFees) { - Utils.checkNotNull(processingFees, "processingFees"); - this.processingFees = Optional.ofNullable(processingFees); - return this; - } - - public PosPayment withProcessingFees(Optional> processingFees) { - Utils.checkNotNull(processingFees, "processingFees"); - this.processingFees = processingFees; - return this; - } - - /** - * Source of this payment. - */ - public PosPayment withSource(PosPaymentSource source) { - Utils.checkNotNull(source, "source"); - this.source = Optional.ofNullable(source); - return this; - } - - /** - * Source of this payment. - */ - public PosPayment withSource(Optional source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - /** - * Status of this payment. - */ - public PosPayment withStatus(PosPaymentStatusStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * Status of this payment. - */ - public PosPayment withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Cash details for this payment - */ - public PosPayment withCash(CashDetails cash) { - Utils.checkNotNull(cash, "cash"); - this.cash = Optional.ofNullable(cash); - return this; - } - - /** - * Cash details for this payment - */ - public PosPayment withCash(Optional cash) { - Utils.checkNotNull(cash, "cash"); - this.cash = cash; - return this; - } - - public PosPayment withCardDetails(CardDetails cardDetails) { - Utils.checkNotNull(cardDetails, "cardDetails"); - this.cardDetails = Optional.ofNullable(cardDetails); - return this; - } - - public PosPayment withCardDetails(Optional cardDetails) { - Utils.checkNotNull(cardDetails, "cardDetails"); - this.cardDetails = cardDetails; - return this; - } - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public PosPayment withBankAccount(PosBankAccount bankAccount) { - Utils.checkNotNull(bankAccount, "bankAccount"); - this.bankAccount = Optional.ofNullable(bankAccount); - return this; - } - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public PosPayment withBankAccount(Optional bankAccount) { - Utils.checkNotNull(bankAccount, "bankAccount"); - this.bankAccount = bankAccount; - return this; - } - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public PosPayment withWallet(WalletDetails wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public PosPayment withWallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - /** - * Details about an external payment. - */ - public PosPayment withExternalDetails(ExternalDetails externalDetails) { - Utils.checkNotNull(externalDetails, "externalDetails"); - this.externalDetails = Optional.ofNullable(externalDetails); - return this; - } - - /** - * Details about an external payment. - */ - public PosPayment withExternalDetails(Optional externalDetails) { - Utils.checkNotNull(externalDetails, "externalDetails"); - this.externalDetails = externalDetails; - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public PosPayment withServiceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public PosPayment withServiceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public PosPayment withCustomMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public PosPayment withCustomMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * The user who last updated the object. - */ - public PosPayment withUpdatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public PosPayment withUpdatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public PosPayment withCreatedBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public PosPayment withCreatedBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public PosPayment withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public PosPayment withUpdatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public PosPayment withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public PosPayment withCreatedAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public PosPayment withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public PosPayment withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPayment other = (PosPayment) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.sourceId, other.sourceId) && - Objects.deepEquals(this.orderId, other.orderId) && - Objects.deepEquals(this.merchantId, other.merchantId) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.employeeId, other.employeeId) && - Objects.deepEquals(this.locationId, other.locationId) && - Objects.deepEquals(this.deviceId, other.deviceId) && - Objects.deepEquals(this.tenderId, other.tenderId) && - Objects.deepEquals(this.externalPaymentId, other.externalPaymentId) && - Objects.deepEquals(this.idempotencyKey, other.idempotencyKey) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.tip, other.tip) && - Objects.deepEquals(this.tax, other.tax) && - Objects.deepEquals(this.total, other.total) && - Objects.deepEquals(this.appFee, other.appFee) && - Objects.deepEquals(this.changeBackCashAmount, other.changeBackCashAmount) && - Objects.deepEquals(this.approved, other.approved) && - Objects.deepEquals(this.refunded, other.refunded) && - Objects.deepEquals(this.processingFees, other.processingFees) && - Objects.deepEquals(this.source, other.source) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.cash, other.cash) && - Objects.deepEquals(this.cardDetails, other.cardDetails) && - Objects.deepEquals(this.bankAccount, other.bankAccount) && - Objects.deepEquals(this.wallet, other.wallet) && - Objects.deepEquals(this.externalDetails, other.externalDetails) && - Objects.deepEquals(this.serviceCharges, other.serviceCharges) && - Objects.deepEquals(this.customMappings, other.customMappings) && - Objects.deepEquals(this.updatedBy, other.updatedBy) && - Objects.deepEquals(this.createdBy, other.createdBy) && - Objects.deepEquals(this.updatedAt, other.updatedAt) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - sourceId, - orderId, - merchantId, - customerId, - employeeId, - locationId, - deviceId, - tenderId, - externalPaymentId, - idempotencyKey, - amount, - currency, - tip, - tax, - total, - appFee, - changeBackCashAmount, - approved, - refunded, - processingFees, - source, - status, - cash, - cardDetails, - bankAccount, - wallet, - externalDetails, - serviceCharges, - customMappings, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(PosPayment.class, - "id", id, - "sourceId", sourceId, - "orderId", orderId, - "merchantId", merchantId, - "customerId", customerId, - "employeeId", employeeId, - "locationId", locationId, - "deviceId", deviceId, - "tenderId", tenderId, - "externalPaymentId", externalPaymentId, - "idempotencyKey", idempotencyKey, - "amount", amount, - "currency", currency, - "tip", tip, - "tax", tax, - "total", total, - "appFee", appFee, - "changeBackCashAmount", changeBackCashAmount, - "approved", approved, - "refunded", refunded, - "processingFees", processingFees, - "source", source, - "status", status, - "cash", cash, - "cardDetails", cardDetails, - "bankAccount", bankAccount, - "wallet", wallet, - "externalDetails", externalDetails, - "serviceCharges", serviceCharges, - "customMappings", customMappings, - "updatedBy", updatedBy, - "createdBy", createdBy, - "updatedAt", updatedAt, - "createdAt", createdAt, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private String sourceId; - - private String orderId; - - private Optional merchantId = Optional.empty(); - - private String customerId; - - private Optional employeeId = Optional.empty(); - - private Optional locationId = Optional.empty(); - - private Optional deviceId = Optional.empty(); - - private String tenderId; - - private Optional externalPaymentId = Optional.empty(); - - private Optional idempotencyKey = Optional.empty(); - - private Double amount; - - private Optional currency = Optional.empty(); - - private Optional tip = Optional.empty(); - - private Optional tax = Optional.empty(); - - private Optional total = Optional.empty(); - - private Optional appFee = Optional.empty(); - - private Optional changeBackCashAmount = Optional.empty(); - - private Optional approved = Optional.empty(); - - private Optional refunded = Optional.empty(); - - private Optional> processingFees = Optional.empty(); - - private Optional source = Optional.empty(); - - private Optional status = Optional.empty(); - - private Optional cash = Optional.empty(); - - private Optional cardDetails = Optional.empty(); - - private Optional bankAccount = Optional.empty(); - - private Optional wallet = Optional.empty(); - - private Optional externalDetails = Optional.empty(); - - private Optional> serviceCharges = Optional.empty(); - - private JsonNullable customMappings = JsonNullable.undefined(); - - private JsonNullable updatedBy = JsonNullable.undefined(); - - private JsonNullable createdBy = JsonNullable.undefined(); - - private JsonNullable updatedAt = JsonNullable.undefined(); - - private JsonNullable createdAt = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The ID for the source of funds for this payment. Square-only: This can be a payment token (card nonce) generated by the payment form or a card on file made linked to the customer. if recording a payment that the seller received outside of Square, specify either `CASH` or `EXTERNAL`. - */ - public Builder sourceId(String sourceId) { - Utils.checkNotNull(sourceId, "sourceId"); - this.sourceId = sourceId; - return this; - } - - public Builder orderId(String orderId) { - Utils.checkNotNull(orderId, "orderId"); - this.orderId = orderId; - return this; - } - - public Builder merchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public Builder merchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public Builder employeeId(String employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = Optional.ofNullable(employeeId); - return this; - } - - public Builder employeeId(Optional employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = employeeId; - return this; - } - - public Builder locationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = Optional.ofNullable(locationId); - return this; - } - - public Builder locationId(Optional locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - public Builder deviceId(String deviceId) { - Utils.checkNotNull(deviceId, "deviceId"); - this.deviceId = Optional.ofNullable(deviceId); - return this; - } - - public Builder deviceId(Optional deviceId) { - Utils.checkNotNull(deviceId, "deviceId"); - this.deviceId = deviceId; - return this; - } - - public Builder tenderId(String tenderId) { - Utils.checkNotNull(tenderId, "tenderId"); - this.tenderId = tenderId; - return this; - } - - public Builder externalPaymentId(String externalPaymentId) { - Utils.checkNotNull(externalPaymentId, "externalPaymentId"); - this.externalPaymentId = Optional.ofNullable(externalPaymentId); - return this; - } - - public Builder externalPaymentId(Optional externalPaymentId) { - Utils.checkNotNull(externalPaymentId, "externalPaymentId"); - this.externalPaymentId = externalPaymentId; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public Builder amount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = Optional.ofNullable(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Optional currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder tip(double tip) { - Utils.checkNotNull(tip, "tip"); - this.tip = Optional.ofNullable(tip); - return this; - } - - public Builder tip(Optional tip) { - Utils.checkNotNull(tip, "tip"); - this.tip = tip; - return this; - } - - public Builder tax(double tax) { - Utils.checkNotNull(tax, "tax"); - this.tax = Optional.ofNullable(tax); - return this; - } - - public Builder tax(Optional tax) { - Utils.checkNotNull(tax, "tax"); - this.tax = tax; - return this; - } - - public Builder total(double total) { - Utils.checkNotNull(total, "total"); - this.total = Optional.ofNullable(total); - return this; - } - - public Builder total(Optional total) { - Utils.checkNotNull(total, "total"); - this.total = total; - return this; - } - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - public Builder appFee(double appFee) { - Utils.checkNotNull(appFee, "appFee"); - this.appFee = Optional.ofNullable(appFee); - return this; - } - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - public Builder appFee(Optional appFee) { - Utils.checkNotNull(appFee, "appFee"); - this.appFee = appFee; - return this; - } - - public Builder changeBackCashAmount(double changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = Optional.ofNullable(changeBackCashAmount); - return this; - } - - public Builder changeBackCashAmount(Optional changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = changeBackCashAmount; - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public Builder approved(double approved) { - Utils.checkNotNull(approved, "approved"); - this.approved = Optional.ofNullable(approved); - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public Builder approved(Optional approved) { - Utils.checkNotNull(approved, "approved"); - this.approved = approved; - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public Builder refunded(double refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = Optional.ofNullable(refunded); - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public Builder refunded(Optional refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = refunded; - return this; - } - - public Builder processingFees(List processingFees) { - Utils.checkNotNull(processingFees, "processingFees"); - this.processingFees = Optional.ofNullable(processingFees); - return this; - } - - public Builder processingFees(Optional> processingFees) { - Utils.checkNotNull(processingFees, "processingFees"); - this.processingFees = processingFees; - return this; - } - - /** - * Source of this payment. - */ - public Builder source(PosPaymentSource source) { - Utils.checkNotNull(source, "source"); - this.source = Optional.ofNullable(source); - return this; - } - - /** - * Source of this payment. - */ - public Builder source(Optional source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - /** - * Status of this payment. - */ - public Builder status(PosPaymentStatusStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * Status of this payment. - */ - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Cash details for this payment - */ - public Builder cash(CashDetails cash) { - Utils.checkNotNull(cash, "cash"); - this.cash = Optional.ofNullable(cash); - return this; - } - - /** - * Cash details for this payment - */ - public Builder cash(Optional cash) { - Utils.checkNotNull(cash, "cash"); - this.cash = cash; - return this; - } - - public Builder cardDetails(CardDetails cardDetails) { - Utils.checkNotNull(cardDetails, "cardDetails"); - this.cardDetails = Optional.ofNullable(cardDetails); - return this; - } - - public Builder cardDetails(Optional cardDetails) { - Utils.checkNotNull(cardDetails, "cardDetails"); - this.cardDetails = cardDetails; - return this; - } - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public Builder bankAccount(PosBankAccount bankAccount) { - Utils.checkNotNull(bankAccount, "bankAccount"); - this.bankAccount = Optional.ofNullable(bankAccount); - return this; - } - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public Builder bankAccount(Optional bankAccount) { - Utils.checkNotNull(bankAccount, "bankAccount"); - this.bankAccount = bankAccount; - return this; - } - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public Builder wallet(WalletDetails wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public Builder wallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - /** - * Details about an external payment. - */ - public Builder externalDetails(ExternalDetails externalDetails) { - Utils.checkNotNull(externalDetails, "externalDetails"); - this.externalDetails = Optional.ofNullable(externalDetails); - return this; - } - - /** - * Details about an external payment. - */ - public Builder externalDetails(Optional externalDetails) { - Utils.checkNotNull(externalDetails, "externalDetails"); - this.externalDetails = externalDetails; - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public Builder serviceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public Builder serviceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public PosPayment build() { - return new PosPayment( - id, - sourceId, - orderId, - merchantId, - customerId, - employeeId, - locationId, - deviceId, - tenderId, - externalPaymentId, - idempotencyKey, - amount, - currency, - tip, - tax, - total, - appFee, - changeBackCashAmount, - approved, - refunded, - processingFees, - source, - status, - cash, - cardDetails, - bankAccount, - wallet, - externalDetails, - serviceCharges, - customMappings, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/PosPaymentCardDetails.java b/src/main/java/com/apideck/unify/models/components/PosPaymentCardDetails.java deleted file mode 100644 index e2d7735..0000000 --- a/src/main/java/com/apideck/unify/models/components/PosPaymentCardDetails.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosPaymentCardDetails { - - /** - * A card's non-confidential details. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card") - private JsonNullable card; - - @JsonCreator - public PosPaymentCardDetails( - @JsonProperty("card") JsonNullable card) { - Utils.checkNotNull(card, "card"); - this.card = card; - } - - public PosPaymentCardDetails() { - this(JsonNullable.undefined()); - } - - /** - * A card's non-confidential details. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable card() { - return (JsonNullable) card; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A card's non-confidential details. - */ - public PosPaymentCardDetails withCard(PaymentCardInput card) { - Utils.checkNotNull(card, "card"); - this.card = JsonNullable.of(card); - return this; - } - - /** - * A card's non-confidential details. - */ - public PosPaymentCardDetails withCard(JsonNullable card) { - Utils.checkNotNull(card, "card"); - this.card = card; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentCardDetails other = (PosPaymentCardDetails) o; - return - Objects.deepEquals(this.card, other.card); - } - - @Override - public int hashCode() { - return Objects.hash( - card); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentCardDetails.class, - "card", card); - } - - public final static class Builder { - - private JsonNullable card = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * A card's non-confidential details. - */ - public Builder card(PaymentCardInput card) { - Utils.checkNotNull(card, "card"); - this.card = JsonNullable.of(card); - return this; - } - - /** - * A card's non-confidential details. - */ - public Builder card(JsonNullable card) { - Utils.checkNotNull(card, "card"); - this.card = card; - return this; - } - - public PosPaymentCardDetails build() { - return new PosPaymentCardDetails( - card); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/PosPaymentInput.java b/src/main/java/com/apideck/unify/models/components/PosPaymentInput.java deleted file mode 100644 index 80863ea..0000000 --- a/src/main/java/com/apideck/unify/models/components/PosPaymentInput.java +++ /dev/null @@ -1,1485 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - - -public class PosPaymentInput { - - /** - * The ID for the source of funds for this payment. Square-only: This can be a payment token (card nonce) generated by the payment form or a card on file made linked to the customer. if recording a payment that the seller received outside of Square, specify either `CASH` or `EXTERNAL`. - */ - @JsonProperty("source_id") - private String sourceId; - - @JsonProperty("order_id") - private String orderId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("merchant_id") - private Optional merchantId; - - @JsonProperty("customer_id") - private String customerId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("employee_id") - private Optional employeeId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("location_id") - private Optional locationId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("device_id") - private Optional deviceId; - - @JsonProperty("tender_id") - private String tenderId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("external_payment_id") - private Optional externalPaymentId; - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("idempotency_key") - private Optional idempotencyKey; - - @JsonProperty("amount") - private double amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.ALWAYS) - @JsonProperty("currency") - private Optional currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tip") - private Optional tip; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tax") - private Optional tax; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total") - private Optional total; - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("app_fee") - private Optional appFee; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("change_back_cash_amount") - private Optional changeBackCashAmount; - - /** - * The initial amount of money approved for this payment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("approved") - private Optional approved; - - /** - * The initial amount of money approved for this payment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("refunded") - private Optional refunded; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("processing_fees") - private Optional> processingFees; - - /** - * Source of this payment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("source") - private Optional source; - - /** - * Status of this payment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - /** - * Cash details for this payment - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cash") - private Optional cash; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card_details") - private Optional cardDetails; - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bank_account") - private Optional bankAccount; - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("wallet") - private Optional wallet; - - /** - * Details about an external payment. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("external_details") - private Optional externalDetails; - - /** - * Optional service charges or gratuity tip applied to the order. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("service_charges") - private Optional> serviceCharges; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public PosPaymentInput( - @JsonProperty("source_id") String sourceId, - @JsonProperty("order_id") String orderId, - @JsonProperty("merchant_id") Optional merchantId, - @JsonProperty("customer_id") String customerId, - @JsonProperty("employee_id") Optional employeeId, - @JsonProperty("location_id") Optional locationId, - @JsonProperty("device_id") Optional deviceId, - @JsonProperty("tender_id") String tenderId, - @JsonProperty("external_payment_id") Optional externalPaymentId, - @JsonProperty("idempotency_key") Optional idempotencyKey, - @JsonProperty("amount") double amount, - @JsonProperty("currency") Optional currency, - @JsonProperty("tip") Optional tip, - @JsonProperty("tax") Optional tax, - @JsonProperty("total") Optional total, - @JsonProperty("app_fee") Optional appFee, - @JsonProperty("change_back_cash_amount") Optional changeBackCashAmount, - @JsonProperty("approved") Optional approved, - @JsonProperty("refunded") Optional refunded, - @JsonProperty("processing_fees") Optional> processingFees, - @JsonProperty("source") Optional source, - @JsonProperty("status") Optional status, - @JsonProperty("cash") Optional cash, - @JsonProperty("card_details") Optional cardDetails, - @JsonProperty("bank_account") Optional bankAccount, - @JsonProperty("wallet") Optional wallet, - @JsonProperty("external_details") Optional externalDetails, - @JsonProperty("service_charges") Optional> serviceCharges, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(sourceId, "sourceId"); - Utils.checkNotNull(orderId, "orderId"); - Utils.checkNotNull(merchantId, "merchantId"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(employeeId, "employeeId"); - Utils.checkNotNull(locationId, "locationId"); - Utils.checkNotNull(deviceId, "deviceId"); - Utils.checkNotNull(tenderId, "tenderId"); - Utils.checkNotNull(externalPaymentId, "externalPaymentId"); - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(tip, "tip"); - Utils.checkNotNull(tax, "tax"); - Utils.checkNotNull(total, "total"); - Utils.checkNotNull(appFee, "appFee"); - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - Utils.checkNotNull(approved, "approved"); - Utils.checkNotNull(refunded, "refunded"); - Utils.checkNotNull(processingFees, "processingFees"); - Utils.checkNotNull(source, "source"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(cash, "cash"); - Utils.checkNotNull(cardDetails, "cardDetails"); - Utils.checkNotNull(bankAccount, "bankAccount"); - Utils.checkNotNull(wallet, "wallet"); - Utils.checkNotNull(externalDetails, "externalDetails"); - Utils.checkNotNull(serviceCharges, "serviceCharges"); - Utils.checkNotNull(passThrough, "passThrough"); - this.sourceId = sourceId; - this.orderId = orderId; - this.merchantId = merchantId; - this.customerId = customerId; - this.employeeId = employeeId; - this.locationId = locationId; - this.deviceId = deviceId; - this.tenderId = tenderId; - this.externalPaymentId = externalPaymentId; - this.idempotencyKey = idempotencyKey; - this.amount = amount; - this.currency = currency; - this.tip = tip; - this.tax = tax; - this.total = total; - this.appFee = appFee; - this.changeBackCashAmount = changeBackCashAmount; - this.approved = approved; - this.refunded = refunded; - this.processingFees = processingFees; - this.source = source; - this.status = status; - this.cash = cash; - this.cardDetails = cardDetails; - this.bankAccount = bankAccount; - this.wallet = wallet; - this.externalDetails = externalDetails; - this.serviceCharges = serviceCharges; - this.passThrough = passThrough; - } - - public PosPaymentInput( - String sourceId, - String orderId, - String customerId, - String tenderId, - double amount) { - this(sourceId, orderId, Optional.empty(), customerId, Optional.empty(), Optional.empty(), Optional.empty(), tenderId, Optional.empty(), Optional.empty(), amount, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * The ID for the source of funds for this payment. Square-only: This can be a payment token (card nonce) generated by the payment form or a card on file made linked to the customer. if recording a payment that the seller received outside of Square, specify either `CASH` or `EXTERNAL`. - */ - @JsonIgnore - public String sourceId() { - return sourceId; - } - - @JsonIgnore - public String orderId() { - return orderId; - } - - @JsonIgnore - public Optional merchantId() { - return merchantId; - } - - @JsonIgnore - public String customerId() { - return customerId; - } - - @JsonIgnore - public Optional employeeId() { - return employeeId; - } - - @JsonIgnore - public Optional locationId() { - return locationId; - } - - @JsonIgnore - public Optional deviceId() { - return deviceId; - } - - @JsonIgnore - public String tenderId() { - return tenderId; - } - - @JsonIgnore - public Optional externalPaymentId() { - return externalPaymentId; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - @JsonIgnore - public Optional idempotencyKey() { - return idempotencyKey; - } - - @JsonIgnore - public double amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional currency() { - return (Optional) currency; - } - - @JsonIgnore - public Optional tip() { - return tip; - } - - @JsonIgnore - public Optional tax() { - return tax; - } - - @JsonIgnore - public Optional total() { - return total; - } - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - @JsonIgnore - public Optional appFee() { - return appFee; - } - - @JsonIgnore - public Optional changeBackCashAmount() { - return changeBackCashAmount; - } - - /** - * The initial amount of money approved for this payment. - */ - @JsonIgnore - public Optional approved() { - return approved; - } - - /** - * The initial amount of money approved for this payment. - */ - @JsonIgnore - public Optional refunded() { - return refunded; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> processingFees() { - return (Optional>) processingFees; - } - - /** - * Source of this payment. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional source() { - return (Optional) source; - } - - /** - * Status of this payment. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - /** - * Cash details for this payment - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional cash() { - return (Optional) cash; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional cardDetails() { - return (Optional) cardDetails; - } - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bankAccount() { - return (Optional) bankAccount; - } - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional wallet() { - return (Optional) wallet; - } - - /** - * Details about an external payment. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional externalDetails() { - return (Optional) externalDetails; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> serviceCharges() { - return (Optional>) serviceCharges; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The ID for the source of funds for this payment. Square-only: This can be a payment token (card nonce) generated by the payment form or a card on file made linked to the customer. if recording a payment that the seller received outside of Square, specify either `CASH` or `EXTERNAL`. - */ - public PosPaymentInput withSourceId(String sourceId) { - Utils.checkNotNull(sourceId, "sourceId"); - this.sourceId = sourceId; - return this; - } - - public PosPaymentInput withOrderId(String orderId) { - Utils.checkNotNull(orderId, "orderId"); - this.orderId = orderId; - return this; - } - - public PosPaymentInput withMerchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public PosPaymentInput withMerchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - public PosPaymentInput withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public PosPaymentInput withEmployeeId(String employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = Optional.ofNullable(employeeId); - return this; - } - - public PosPaymentInput withEmployeeId(Optional employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = employeeId; - return this; - } - - public PosPaymentInput withLocationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = Optional.ofNullable(locationId); - return this; - } - - public PosPaymentInput withLocationId(Optional locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - public PosPaymentInput withDeviceId(String deviceId) { - Utils.checkNotNull(deviceId, "deviceId"); - this.deviceId = Optional.ofNullable(deviceId); - return this; - } - - public PosPaymentInput withDeviceId(Optional deviceId) { - Utils.checkNotNull(deviceId, "deviceId"); - this.deviceId = deviceId; - return this; - } - - public PosPaymentInput withTenderId(String tenderId) { - Utils.checkNotNull(tenderId, "tenderId"); - this.tenderId = tenderId; - return this; - } - - public PosPaymentInput withExternalPaymentId(String externalPaymentId) { - Utils.checkNotNull(externalPaymentId, "externalPaymentId"); - this.externalPaymentId = Optional.ofNullable(externalPaymentId); - return this; - } - - public PosPaymentInput withExternalPaymentId(Optional externalPaymentId) { - Utils.checkNotNull(externalPaymentId, "externalPaymentId"); - this.externalPaymentId = externalPaymentId; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public PosPaymentInput withIdempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public PosPaymentInput withIdempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public PosPaymentInput withAmount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public PosPaymentInput withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = Optional.ofNullable(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public PosPaymentInput withCurrency(Optional currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public PosPaymentInput withTip(double tip) { - Utils.checkNotNull(tip, "tip"); - this.tip = Optional.ofNullable(tip); - return this; - } - - public PosPaymentInput withTip(Optional tip) { - Utils.checkNotNull(tip, "tip"); - this.tip = tip; - return this; - } - - public PosPaymentInput withTax(double tax) { - Utils.checkNotNull(tax, "tax"); - this.tax = Optional.ofNullable(tax); - return this; - } - - public PosPaymentInput withTax(Optional tax) { - Utils.checkNotNull(tax, "tax"); - this.tax = tax; - return this; - } - - public PosPaymentInput withTotal(double total) { - Utils.checkNotNull(total, "total"); - this.total = Optional.ofNullable(total); - return this; - } - - public PosPaymentInput withTotal(Optional total) { - Utils.checkNotNull(total, "total"); - this.total = total; - return this; - } - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - public PosPaymentInput withAppFee(double appFee) { - Utils.checkNotNull(appFee, "appFee"); - this.appFee = Optional.ofNullable(appFee); - return this; - } - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - public PosPaymentInput withAppFee(Optional appFee) { - Utils.checkNotNull(appFee, "appFee"); - this.appFee = appFee; - return this; - } - - public PosPaymentInput withChangeBackCashAmount(double changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = Optional.ofNullable(changeBackCashAmount); - return this; - } - - public PosPaymentInput withChangeBackCashAmount(Optional changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = changeBackCashAmount; - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public PosPaymentInput withApproved(double approved) { - Utils.checkNotNull(approved, "approved"); - this.approved = Optional.ofNullable(approved); - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public PosPaymentInput withApproved(Optional approved) { - Utils.checkNotNull(approved, "approved"); - this.approved = approved; - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public PosPaymentInput withRefunded(double refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = Optional.ofNullable(refunded); - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public PosPaymentInput withRefunded(Optional refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = refunded; - return this; - } - - public PosPaymentInput withProcessingFees(List processingFees) { - Utils.checkNotNull(processingFees, "processingFees"); - this.processingFees = Optional.ofNullable(processingFees); - return this; - } - - public PosPaymentInput withProcessingFees(Optional> processingFees) { - Utils.checkNotNull(processingFees, "processingFees"); - this.processingFees = processingFees; - return this; - } - - /** - * Source of this payment. - */ - public PosPaymentInput withSource(PosPaymentSource source) { - Utils.checkNotNull(source, "source"); - this.source = Optional.ofNullable(source); - return this; - } - - /** - * Source of this payment. - */ - public PosPaymentInput withSource(Optional source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - /** - * Status of this payment. - */ - public PosPaymentInput withStatus(PosPaymentStatusStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * Status of this payment. - */ - public PosPaymentInput withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Cash details for this payment - */ - public PosPaymentInput withCash(CashDetails cash) { - Utils.checkNotNull(cash, "cash"); - this.cash = Optional.ofNullable(cash); - return this; - } - - /** - * Cash details for this payment - */ - public PosPaymentInput withCash(Optional cash) { - Utils.checkNotNull(cash, "cash"); - this.cash = cash; - return this; - } - - public PosPaymentInput withCardDetails(PosPaymentCardDetails cardDetails) { - Utils.checkNotNull(cardDetails, "cardDetails"); - this.cardDetails = Optional.ofNullable(cardDetails); - return this; - } - - public PosPaymentInput withCardDetails(Optional cardDetails) { - Utils.checkNotNull(cardDetails, "cardDetails"); - this.cardDetails = cardDetails; - return this; - } - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public PosPaymentInput withBankAccount(PosBankAccount bankAccount) { - Utils.checkNotNull(bankAccount, "bankAccount"); - this.bankAccount = Optional.ofNullable(bankAccount); - return this; - } - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public PosPaymentInput withBankAccount(Optional bankAccount) { - Utils.checkNotNull(bankAccount, "bankAccount"); - this.bankAccount = bankAccount; - return this; - } - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public PosPaymentInput withWallet(WalletDetails wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public PosPaymentInput withWallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - /** - * Details about an external payment. - */ - public PosPaymentInput withExternalDetails(ExternalDetails externalDetails) { - Utils.checkNotNull(externalDetails, "externalDetails"); - this.externalDetails = Optional.ofNullable(externalDetails); - return this; - } - - /** - * Details about an external payment. - */ - public PosPaymentInput withExternalDetails(Optional externalDetails) { - Utils.checkNotNull(externalDetails, "externalDetails"); - this.externalDetails = externalDetails; - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public PosPaymentInput withServiceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public PosPaymentInput withServiceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public PosPaymentInput withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public PosPaymentInput withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentInput other = (PosPaymentInput) o; - return - Objects.deepEquals(this.sourceId, other.sourceId) && - Objects.deepEquals(this.orderId, other.orderId) && - Objects.deepEquals(this.merchantId, other.merchantId) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.employeeId, other.employeeId) && - Objects.deepEquals(this.locationId, other.locationId) && - Objects.deepEquals(this.deviceId, other.deviceId) && - Objects.deepEquals(this.tenderId, other.tenderId) && - Objects.deepEquals(this.externalPaymentId, other.externalPaymentId) && - Objects.deepEquals(this.idempotencyKey, other.idempotencyKey) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.tip, other.tip) && - Objects.deepEquals(this.tax, other.tax) && - Objects.deepEquals(this.total, other.total) && - Objects.deepEquals(this.appFee, other.appFee) && - Objects.deepEquals(this.changeBackCashAmount, other.changeBackCashAmount) && - Objects.deepEquals(this.approved, other.approved) && - Objects.deepEquals(this.refunded, other.refunded) && - Objects.deepEquals(this.processingFees, other.processingFees) && - Objects.deepEquals(this.source, other.source) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.cash, other.cash) && - Objects.deepEquals(this.cardDetails, other.cardDetails) && - Objects.deepEquals(this.bankAccount, other.bankAccount) && - Objects.deepEquals(this.wallet, other.wallet) && - Objects.deepEquals(this.externalDetails, other.externalDetails) && - Objects.deepEquals(this.serviceCharges, other.serviceCharges) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - sourceId, - orderId, - merchantId, - customerId, - employeeId, - locationId, - deviceId, - tenderId, - externalPaymentId, - idempotencyKey, - amount, - currency, - tip, - tax, - total, - appFee, - changeBackCashAmount, - approved, - refunded, - processingFees, - source, - status, - cash, - cardDetails, - bankAccount, - wallet, - externalDetails, - serviceCharges, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentInput.class, - "sourceId", sourceId, - "orderId", orderId, - "merchantId", merchantId, - "customerId", customerId, - "employeeId", employeeId, - "locationId", locationId, - "deviceId", deviceId, - "tenderId", tenderId, - "externalPaymentId", externalPaymentId, - "idempotencyKey", idempotencyKey, - "amount", amount, - "currency", currency, - "tip", tip, - "tax", tax, - "total", total, - "appFee", appFee, - "changeBackCashAmount", changeBackCashAmount, - "approved", approved, - "refunded", refunded, - "processingFees", processingFees, - "source", source, - "status", status, - "cash", cash, - "cardDetails", cardDetails, - "bankAccount", bankAccount, - "wallet", wallet, - "externalDetails", externalDetails, - "serviceCharges", serviceCharges, - "passThrough", passThrough); - } - - public final static class Builder { - - private String sourceId; - - private String orderId; - - private Optional merchantId = Optional.empty(); - - private String customerId; - - private Optional employeeId = Optional.empty(); - - private Optional locationId = Optional.empty(); - - private Optional deviceId = Optional.empty(); - - private String tenderId; - - private Optional externalPaymentId = Optional.empty(); - - private Optional idempotencyKey = Optional.empty(); - - private Double amount; - - private Optional currency = Optional.empty(); - - private Optional tip = Optional.empty(); - - private Optional tax = Optional.empty(); - - private Optional total = Optional.empty(); - - private Optional appFee = Optional.empty(); - - private Optional changeBackCashAmount = Optional.empty(); - - private Optional approved = Optional.empty(); - - private Optional refunded = Optional.empty(); - - private Optional> processingFees = Optional.empty(); - - private Optional source = Optional.empty(); - - private Optional status = Optional.empty(); - - private Optional cash = Optional.empty(); - - private Optional cardDetails = Optional.empty(); - - private Optional bankAccount = Optional.empty(); - - private Optional wallet = Optional.empty(); - - private Optional externalDetails = Optional.empty(); - - private Optional> serviceCharges = Optional.empty(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The ID for the source of funds for this payment. Square-only: This can be a payment token (card nonce) generated by the payment form or a card on file made linked to the customer. if recording a payment that the seller received outside of Square, specify either `CASH` or `EXTERNAL`. - */ - public Builder sourceId(String sourceId) { - Utils.checkNotNull(sourceId, "sourceId"); - this.sourceId = sourceId; - return this; - } - - public Builder orderId(String orderId) { - Utils.checkNotNull(orderId, "orderId"); - this.orderId = orderId; - return this; - } - - public Builder merchantId(String merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = Optional.ofNullable(merchantId); - return this; - } - - public Builder merchantId(Optional merchantId) { - Utils.checkNotNull(merchantId, "merchantId"); - this.merchantId = merchantId; - return this; - } - - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public Builder employeeId(String employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = Optional.ofNullable(employeeId); - return this; - } - - public Builder employeeId(Optional employeeId) { - Utils.checkNotNull(employeeId, "employeeId"); - this.employeeId = employeeId; - return this; - } - - public Builder locationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = Optional.ofNullable(locationId); - return this; - } - - public Builder locationId(Optional locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - public Builder deviceId(String deviceId) { - Utils.checkNotNull(deviceId, "deviceId"); - this.deviceId = Optional.ofNullable(deviceId); - return this; - } - - public Builder deviceId(Optional deviceId) { - Utils.checkNotNull(deviceId, "deviceId"); - this.deviceId = deviceId; - return this; - } - - public Builder tenderId(String tenderId) { - Utils.checkNotNull(tenderId, "tenderId"); - this.tenderId = tenderId; - return this; - } - - public Builder externalPaymentId(String externalPaymentId) { - Utils.checkNotNull(externalPaymentId, "externalPaymentId"); - this.externalPaymentId = Optional.ofNullable(externalPaymentId); - return this; - } - - public Builder externalPaymentId(Optional externalPaymentId) { - Utils.checkNotNull(externalPaymentId, "externalPaymentId"); - this.externalPaymentId = externalPaymentId; - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(String idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = Optional.ofNullable(idempotencyKey); - return this; - } - - /** - * A value you specify that uniquely identifies this request among requests you have sent. - */ - public Builder idempotencyKey(Optional idempotencyKey) { - Utils.checkNotNull(idempotencyKey, "idempotencyKey"); - this.idempotencyKey = idempotencyKey; - return this; - } - - public Builder amount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = Optional.ofNullable(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Optional currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder tip(double tip) { - Utils.checkNotNull(tip, "tip"); - this.tip = Optional.ofNullable(tip); - return this; - } - - public Builder tip(Optional tip) { - Utils.checkNotNull(tip, "tip"); - this.tip = tip; - return this; - } - - public Builder tax(double tax) { - Utils.checkNotNull(tax, "tax"); - this.tax = Optional.ofNullable(tax); - return this; - } - - public Builder tax(Optional tax) { - Utils.checkNotNull(tax, "tax"); - this.tax = tax; - return this; - } - - public Builder total(double total) { - Utils.checkNotNull(total, "total"); - this.total = Optional.ofNullable(total); - return this; - } - - public Builder total(Optional total) { - Utils.checkNotNull(total, "total"); - this.total = total; - return this; - } - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - public Builder appFee(double appFee) { - Utils.checkNotNull(appFee, "appFee"); - this.appFee = Optional.ofNullable(appFee); - return this; - } - - /** - * The amount the developer is taking as a fee for facilitating the payment on behalf of the seller. - */ - public Builder appFee(Optional appFee) { - Utils.checkNotNull(appFee, "appFee"); - this.appFee = appFee; - return this; - } - - public Builder changeBackCashAmount(double changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = Optional.ofNullable(changeBackCashAmount); - return this; - } - - public Builder changeBackCashAmount(Optional changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = changeBackCashAmount; - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public Builder approved(double approved) { - Utils.checkNotNull(approved, "approved"); - this.approved = Optional.ofNullable(approved); - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public Builder approved(Optional approved) { - Utils.checkNotNull(approved, "approved"); - this.approved = approved; - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public Builder refunded(double refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = Optional.ofNullable(refunded); - return this; - } - - /** - * The initial amount of money approved for this payment. - */ - public Builder refunded(Optional refunded) { - Utils.checkNotNull(refunded, "refunded"); - this.refunded = refunded; - return this; - } - - public Builder processingFees(List processingFees) { - Utils.checkNotNull(processingFees, "processingFees"); - this.processingFees = Optional.ofNullable(processingFees); - return this; - } - - public Builder processingFees(Optional> processingFees) { - Utils.checkNotNull(processingFees, "processingFees"); - this.processingFees = processingFees; - return this; - } - - /** - * Source of this payment. - */ - public Builder source(PosPaymentSource source) { - Utils.checkNotNull(source, "source"); - this.source = Optional.ofNullable(source); - return this; - } - - /** - * Source of this payment. - */ - public Builder source(Optional source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - /** - * Status of this payment. - */ - public Builder status(PosPaymentStatusStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * Status of this payment. - */ - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Cash details for this payment - */ - public Builder cash(CashDetails cash) { - Utils.checkNotNull(cash, "cash"); - this.cash = Optional.ofNullable(cash); - return this; - } - - /** - * Cash details for this payment - */ - public Builder cash(Optional cash) { - Utils.checkNotNull(cash, "cash"); - this.cash = cash; - return this; - } - - public Builder cardDetails(PosPaymentCardDetails cardDetails) { - Utils.checkNotNull(cardDetails, "cardDetails"); - this.cardDetails = Optional.ofNullable(cardDetails); - return this; - } - - public Builder cardDetails(Optional cardDetails) { - Utils.checkNotNull(cardDetails, "cardDetails"); - this.cardDetails = cardDetails; - return this; - } - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public Builder bankAccount(PosBankAccount bankAccount) { - Utils.checkNotNull(bankAccount, "bankAccount"); - this.bankAccount = Optional.ofNullable(bankAccount); - return this; - } - - /** - * Card details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public Builder bankAccount(Optional bankAccount) { - Utils.checkNotNull(bankAccount, "bankAccount"); - this.bankAccount = bankAccount; - return this; - } - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public Builder wallet(WalletDetails wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - /** - * Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - public Builder wallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - /** - * Details about an external payment. - */ - public Builder externalDetails(ExternalDetails externalDetails) { - Utils.checkNotNull(externalDetails, "externalDetails"); - this.externalDetails = Optional.ofNullable(externalDetails); - return this; - } - - /** - * Details about an external payment. - */ - public Builder externalDetails(Optional externalDetails) { - Utils.checkNotNull(externalDetails, "externalDetails"); - this.externalDetails = externalDetails; - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public Builder serviceCharges(List serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = Optional.ofNullable(serviceCharges); - return this; - } - - /** - * Optional service charges or gratuity tip applied to the order. - */ - public Builder serviceCharges(Optional> serviceCharges) { - Utils.checkNotNull(serviceCharges, "serviceCharges"); - this.serviceCharges = serviceCharges; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public PosPaymentInput build() { - return new PosPaymentInput( - sourceId, - orderId, - merchantId, - customerId, - employeeId, - locationId, - deviceId, - tenderId, - externalPaymentId, - idempotencyKey, - amount, - currency, - tip, - tax, - total, - appFee, - changeBackCashAmount, - approved, - refunded, - processingFees, - source, - status, - cash, - cardDetails, - bankAccount, - wallet, - externalDetails, - serviceCharges, - passThrough); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/PosPaymentProcessingFeesType.java b/src/main/java/com/apideck/unify/models/components/PosPaymentProcessingFeesType.java deleted file mode 100644 index e32e3c1..0000000 --- a/src/main/java/com/apideck/unify/models/components/PosPaymentProcessingFeesType.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum PosPaymentProcessingFeesType { - INITIAL("initial"), - ADJUSTMENT("adjustment"); - - @JsonValue - private final String value; - - private PosPaymentProcessingFeesType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/PosPaymentSource.java b/src/main/java/com/apideck/unify/models/components/PosPaymentSource.java deleted file mode 100644 index d4003ab..0000000 --- a/src/main/java/com/apideck/unify/models/components/PosPaymentSource.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * PosPaymentSource - Source of this payment. - */ -public enum PosPaymentSource { - CARD("card"), - BANK_ACCOUNT("bank_account"), - WALLET("wallet"), - BNPL("bnpl"), - CASH("cash"), - EXTERNAL("external"), - OTHER("other"); - - @JsonValue - private final String value; - - private PosPaymentSource(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/PosPaymentStatus.java b/src/main/java/com/apideck/unify/models/components/PosPaymentStatus.java deleted file mode 100644 index 57a26fd..0000000 --- a/src/main/java/com/apideck/unify/models/components/PosPaymentStatus.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * PosPaymentStatus - Is this order paid or not? - */ -public enum PosPaymentStatus { - OPEN("open"), - PAID("paid"), - REFUNDED("refunded"), - CREDITED("credited"), - PARTIALLY_PAID("partially_paid"), - PARTIALLY_REFUNDED("partially_refunded"), - UNKNOWN("unknown"); - - @JsonValue - private final String value; - - private PosPaymentStatus(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/PosPaymentStatusStatus.java b/src/main/java/com/apideck/unify/models/components/PosPaymentStatusStatus.java deleted file mode 100644 index 15d507c..0000000 --- a/src/main/java/com/apideck/unify/models/components/PosPaymentStatusStatus.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * PosPaymentStatusStatus - Status of this payment. - */ -public enum PosPaymentStatusStatus { - APPROVED("approved"), - PENDING("pending"), - COMPLETED("completed"), - CANCELED("canceled"), - FAILED("failed"), - OTHER("other"); - - @JsonValue - private final String value; - - private PosPaymentStatusStatus(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/PosPaymentType.java b/src/main/java/com/apideck/unify/models/components/PosPaymentType.java deleted file mode 100644 index 57435ef..0000000 --- a/src/main/java/com/apideck/unify/models/components/PosPaymentType.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * PosPaymentType - The type of external payment the seller received. It can be one of the following: - * - CHECK - Paid using a physical check. - * - BANK_TRANSFER - Paid using external bank transfer. - * - OTHER\_GIFT\_CARD - Paid using a non-Square gift card. - * - CRYPTO - Paid using a crypto currency. - * - SQUARE_CASH - Paid using Square Cash App. - * - SOCIAL - Paid using peer-to-peer payment applications. - * - EXTERNAL - A third-party application gathered this payment outside of Square. - * - EMONEY - Paid using an E-money provider. - * - CARD - A credit or debit card that Square does not support. - * - STORED_BALANCE - Use for house accounts, store credit, and so forth. - * - FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals - * - OTHER - A type not listed here. - */ -public enum PosPaymentType { - CHECK("check"), - BANK_TRANSFER("bank_transfer"), - OTHER_GIFT_CARD("other_gift_card"), - CRYPTO("crypto"), - SQUARE_CASH("square_cash"), - SOCIAL("social"), - EXTERNAL("external"), - EMONEY("emoney"), - CARD("card"), - STORED_BALANCE("stored_balance"), - FOOD_VOUCHER("food_voucher"), - OTHER("other"); - - @JsonValue - private final String value; - - private PosPaymentType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/PosPaymentWalletStatus.java b/src/main/java/com/apideck/unify/models/components/PosPaymentWalletStatus.java deleted file mode 100644 index fbdbfd0..0000000 --- a/src/main/java/com/apideck/unify/models/components/PosPaymentWalletStatus.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * PosPaymentWalletStatus - The status of the wallet payment. The status can be AUTHORIZED, CAPTURED, VOIDED, or FAILED. - */ -public enum PosPaymentWalletStatus { - AUTHORIZED("authorized"), - CAPTURED("captured"), - VOIDED("voided"), - FAILED("failed"), - OTHER("other"); - - @JsonValue - private final String value; - - private PosPaymentWalletStatus(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/PrepaidType.java b/src/main/java/com/apideck/unify/models/components/PrepaidType.java deleted file mode 100644 index 115204b..0000000 --- a/src/main/java/com/apideck/unify/models/components/PrepaidType.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum PrepaidType { - NON_PREPAID("non-prepaid"), - PREPAID("prepaid"), - UNKNOWN("unknown"); - - @JsonValue - private final String value; - - private PrepaidType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/PricingType.java b/src/main/java/com/apideck/unify/models/components/PricingType.java deleted file mode 100644 index 386c6ff..0000000 --- a/src/main/java/com/apideck/unify/models/components/PricingType.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum PricingType { - FIXED("fixed"), - VARIABLE("variable"), - PER_UNIT("per_unit"), - OTHER("other"); - - @JsonValue - private final String value; - - private PricingType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/ProcessingFees.java b/src/main/java/com/apideck/unify/models/components/ProcessingFees.java deleted file mode 100644 index 8213c99..0000000 --- a/src/main/java/com/apideck/unify/models/components/ProcessingFees.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Objects; -import java.util.Optional; - - -public class ProcessingFees { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("effective_at") - private Optional effectiveAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("processing_type") - private Optional processingType; - - @JsonCreator - public ProcessingFees( - @JsonProperty("amount") Optional amount, - @JsonProperty("effective_at") Optional effectiveAt, - @JsonProperty("processing_type") Optional processingType) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(effectiveAt, "effectiveAt"); - Utils.checkNotNull(processingType, "processingType"); - this.amount = amount; - this.effectiveAt = effectiveAt; - this.processingType = processingType; - } - - public ProcessingFees() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - @JsonIgnore - public Optional effectiveAt() { - return effectiveAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional processingType() { - return (Optional) processingType; - } - - public final static Builder builder() { - return new Builder(); - } - - public ProcessingFees withAmount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public ProcessingFees withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public ProcessingFees withEffectiveAt(OffsetDateTime effectiveAt) { - Utils.checkNotNull(effectiveAt, "effectiveAt"); - this.effectiveAt = Optional.ofNullable(effectiveAt); - return this; - } - - public ProcessingFees withEffectiveAt(Optional effectiveAt) { - Utils.checkNotNull(effectiveAt, "effectiveAt"); - this.effectiveAt = effectiveAt; - return this; - } - - public ProcessingFees withProcessingType(PosPaymentProcessingFeesType processingType) { - Utils.checkNotNull(processingType, "processingType"); - this.processingType = Optional.ofNullable(processingType); - return this; - } - - public ProcessingFees withProcessingType(Optional processingType) { - Utils.checkNotNull(processingType, "processingType"); - this.processingType = processingType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ProcessingFees other = (ProcessingFees) o; - return - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.effectiveAt, other.effectiveAt) && - Objects.deepEquals(this.processingType, other.processingType); - } - - @Override - public int hashCode() { - return Objects.hash( - amount, - effectiveAt, - processingType); - } - - @Override - public String toString() { - return Utils.toString(ProcessingFees.class, - "amount", amount, - "effectiveAt", effectiveAt, - "processingType", processingType); - } - - public final static class Builder { - - private Optional amount = Optional.empty(); - - private Optional effectiveAt = Optional.empty(); - - private Optional processingType = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder amount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public Builder effectiveAt(OffsetDateTime effectiveAt) { - Utils.checkNotNull(effectiveAt, "effectiveAt"); - this.effectiveAt = Optional.ofNullable(effectiveAt); - return this; - } - - public Builder effectiveAt(Optional effectiveAt) { - Utils.checkNotNull(effectiveAt, "effectiveAt"); - this.effectiveAt = effectiveAt; - return this; - } - - public Builder processingType(PosPaymentProcessingFeesType processingType) { - Utils.checkNotNull(processingType, "processingType"); - this.processingType = Optional.ofNullable(processingType); - return this; - } - - public Builder processingType(Optional processingType) { - Utils.checkNotNull(processingType, "processingType"); - this.processingType = processingType; - return this; - } - - public ProcessingFees build() { - return new ProcessingFees( - amount, - effectiveAt, - processingType); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ProductType.java b/src/main/java/com/apideck/unify/models/components/ProductType.java deleted file mode 100644 index 967ee24..0000000 --- a/src/main/java/com/apideck/unify/models/components/ProductType.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum ProductType { - REGULAR("regular"), - OTHER("other"); - - @JsonValue - private final String value; - - private ProductType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/Recipient.java b/src/main/java/com/apideck/unify/models/components/Recipient.java deleted file mode 100644 index 8855254..0000000 --- a/src/main/java/com/apideck/unify/models/components/Recipient.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; - - -public class Recipient { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("customer_id") - private Optional customerId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("display_name") - private Optional displayName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("address") - private Optional address; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("phone_number") - private Optional phoneNumber; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("email") - private Optional email; - - @JsonCreator - public Recipient( - @JsonProperty("customer_id") Optional customerId, - @JsonProperty("display_name") Optional displayName, - @JsonProperty("address") Optional address, - @JsonProperty("phone_number") Optional phoneNumber, - @JsonProperty("email") Optional email) { - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(displayName, "displayName"); - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(phoneNumber, "phoneNumber"); - Utils.checkNotNull(email, "email"); - this.customerId = customerId; - this.displayName = displayName; - this.address = address; - this.phoneNumber = phoneNumber; - this.email = email; - } - - public Recipient() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional customerId() { - return customerId; - } - - @JsonIgnore - public Optional displayName() { - return displayName; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional
address() { - return (Optional
) address; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional phoneNumber() { - return (Optional) phoneNumber; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional email() { - return (Optional) email; - } - - public final static Builder builder() { - return new Builder(); - } - - public Recipient withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - public Recipient withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public Recipient withDisplayName(String displayName) { - Utils.checkNotNull(displayName, "displayName"); - this.displayName = Optional.ofNullable(displayName); - return this; - } - - public Recipient withDisplayName(Optional displayName) { - Utils.checkNotNull(displayName, "displayName"); - this.displayName = displayName; - return this; - } - - public Recipient withAddress(Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Recipient withAddress(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public Recipient withPhoneNumber(PhoneNumber phoneNumber) { - Utils.checkNotNull(phoneNumber, "phoneNumber"); - this.phoneNumber = Optional.ofNullable(phoneNumber); - return this; - } - - public Recipient withPhoneNumber(Optional phoneNumber) { - Utils.checkNotNull(phoneNumber, "phoneNumber"); - this.phoneNumber = phoneNumber; - return this; - } - - public Recipient withEmail(Email email) { - Utils.checkNotNull(email, "email"); - this.email = Optional.ofNullable(email); - return this; - } - - public Recipient withEmail(Optional email) { - Utils.checkNotNull(email, "email"); - this.email = email; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Recipient other = (Recipient) o; - return - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.displayName, other.displayName) && - Objects.deepEquals(this.address, other.address) && - Objects.deepEquals(this.phoneNumber, other.phoneNumber) && - Objects.deepEquals(this.email, other.email); - } - - @Override - public int hashCode() { - return Objects.hash( - customerId, - displayName, - address, - phoneNumber, - email); - } - - @Override - public String toString() { - return Utils.toString(Recipient.class, - "customerId", customerId, - "displayName", displayName, - "address", address, - "phoneNumber", phoneNumber, - "email", email); - } - - public final static class Builder { - - private Optional customerId = Optional.empty(); - - private Optional displayName = Optional.empty(); - - private Optional address = Optional.empty(); - - private Optional phoneNumber = Optional.empty(); - - private Optional email = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - public Builder displayName(String displayName) { - Utils.checkNotNull(displayName, "displayName"); - this.displayName = Optional.ofNullable(displayName); - return this; - } - - public Builder displayName(Optional displayName) { - Utils.checkNotNull(displayName, "displayName"); - this.displayName = displayName; - return this; - } - - public Builder address(Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Builder address(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public Builder phoneNumber(PhoneNumber phoneNumber) { - Utils.checkNotNull(phoneNumber, "phoneNumber"); - this.phoneNumber = Optional.ofNullable(phoneNumber); - return this; - } - - public Builder phoneNumber(Optional phoneNumber) { - Utils.checkNotNull(phoneNumber, "phoneNumber"); - this.phoneNumber = phoneNumber; - return this; - } - - public Builder email(Email email) { - Utils.checkNotNull(email, "email"); - this.email = Optional.ofNullable(email); - return this; - } - - public Builder email(Optional email) { - Utils.checkNotNull(email, "email"); - this.email = email; - return this; - } - - public Recipient build() { - return new Recipient( - customerId, - displayName, - address, - phoneNumber, - email); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Refunds.java b/src/main/java/com/apideck/unify/models/components/Refunds.java deleted file mode 100644 index 6f591b3..0000000 --- a/src/main/java/com/apideck/unify/models/components/Refunds.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Refunds { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("location_id") - private Optional locationId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reason") - private Optional reason; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tender_id") - private Optional tenderId; - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transaction_id") - private Optional transactionId; - - @JsonCreator - public Refunds( - @JsonProperty("id") Optional id, - @JsonProperty("location_id") Optional locationId, - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("reason") Optional reason, - @JsonProperty("status") Optional status, - @JsonProperty("tender_id") Optional tenderId, - @JsonProperty("transaction_id") Optional transactionId) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(locationId, "locationId"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(reason, "reason"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(tenderId, "tenderId"); - Utils.checkNotNull(transactionId, "transactionId"); - this.id = id; - this.locationId = locationId; - this.amount = amount; - this.currency = currency; - this.reason = reason; - this.status = status; - this.tenderId = tenderId; - this.transactionId = transactionId; - } - - public Refunds() { - this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional locationId() { - return locationId; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public Optional reason() { - return reason; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional tenderId() { - return tenderId; - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional transactionId() { - return transactionId; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public Refunds withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Refunds withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A unique identifier for an object. - */ - public Refunds withLocationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = Optional.ofNullable(locationId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Refunds withLocationId(Optional locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - public Refunds withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Refunds withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Refunds withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Refunds withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Refunds withReason(String reason) { - Utils.checkNotNull(reason, "reason"); - this.reason = Optional.ofNullable(reason); - return this; - } - - public Refunds withReason(Optional reason) { - Utils.checkNotNull(reason, "reason"); - this.reason = reason; - return this; - } - - public Refunds withStatus(OrderRefundsStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Refunds withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * A unique identifier for an object. - */ - public Refunds withTenderId(String tenderId) { - Utils.checkNotNull(tenderId, "tenderId"); - this.tenderId = Optional.ofNullable(tenderId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Refunds withTenderId(Optional tenderId) { - Utils.checkNotNull(tenderId, "tenderId"); - this.tenderId = tenderId; - return this; - } - - /** - * A unique identifier for an object. - */ - public Refunds withTransactionId(String transactionId) { - Utils.checkNotNull(transactionId, "transactionId"); - this.transactionId = Optional.ofNullable(transactionId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Refunds withTransactionId(Optional transactionId) { - Utils.checkNotNull(transactionId, "transactionId"); - this.transactionId = transactionId; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Refunds other = (Refunds) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.locationId, other.locationId) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.reason, other.reason) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.tenderId, other.tenderId) && - Objects.deepEquals(this.transactionId, other.transactionId); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - locationId, - amount, - currency, - reason, - status, - tenderId, - transactionId); - } - - @Override - public String toString() { - return Utils.toString(Refunds.class, - "id", id, - "locationId", locationId, - "amount", amount, - "currency", currency, - "reason", reason, - "status", status, - "tenderId", tenderId, - "transactionId", transactionId); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional locationId = Optional.empty(); - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Optional reason = Optional.empty(); - - private Optional status = Optional.empty(); - - private Optional tenderId = Optional.empty(); - - private Optional transactionId = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder locationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = Optional.ofNullable(locationId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder locationId(Optional locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder reason(String reason) { - Utils.checkNotNull(reason, "reason"); - this.reason = Optional.ofNullable(reason); - return this; - } - - public Builder reason(Optional reason) { - Utils.checkNotNull(reason, "reason"); - this.reason = reason; - return this; - } - - public Builder status(OrderRefundsStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder tenderId(String tenderId) { - Utils.checkNotNull(tenderId, "tenderId"); - this.tenderId = Optional.ofNullable(tenderId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder tenderId(Optional tenderId) { - Utils.checkNotNull(tenderId, "tenderId"); - this.tenderId = tenderId; - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder transactionId(String transactionId) { - Utils.checkNotNull(transactionId, "transactionId"); - this.transactionId = Optional.ofNullable(transactionId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder transactionId(Optional transactionId) { - Utils.checkNotNull(transactionId, "transactionId"); - this.transactionId = transactionId; - return this; - } - - public Refunds build() { - return new Refunds( - id, - locationId, - amount, - currency, - reason, - status, - tenderId, - transactionId); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ServiceCharge.java b/src/main/java/com/apideck/unify/models/components/ServiceCharge.java deleted file mode 100644 index a002734..0000000 --- a/src/main/java/com/apideck/unify/models/components/ServiceCharge.java +++ /dev/null @@ -1,457 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class ServiceCharge { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * Service charge name - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("percentage") - private Optional percentage; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("active") - private JsonNullable active; - - /** - * The type of the service charge. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonCreator - public ServiceCharge( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("amount") Optional amount, - @JsonProperty("percentage") Optional percentage, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("active") JsonNullable active, - @JsonProperty("type") Optional type) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(percentage, "percentage"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(active, "active"); - Utils.checkNotNull(type, "type"); - this.id = id; - this.name = name; - this.amount = amount; - this.percentage = percentage; - this.currency = currency; - this.active = active; - this.type = type; - } - - public ServiceCharge() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - /** - * Service charge name - */ - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - @JsonIgnore - public Optional percentage() { - return percentage; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public JsonNullable active() { - return active; - } - - /** - * The type of the service charge. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public ServiceCharge withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public ServiceCharge withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * Service charge name - */ - public ServiceCharge withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - /** - * Service charge name - */ - public ServiceCharge withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public ServiceCharge withAmount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public ServiceCharge withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - public ServiceCharge withPercentage(double percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = Optional.ofNullable(percentage); - return this; - } - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - public ServiceCharge withPercentage(Optional percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = percentage; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public ServiceCharge withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public ServiceCharge withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public ServiceCharge withActive(boolean active) { - Utils.checkNotNull(active, "active"); - this.active = JsonNullable.of(active); - return this; - } - - public ServiceCharge withActive(JsonNullable active) { - Utils.checkNotNull(active, "active"); - this.active = active; - return this; - } - - /** - * The type of the service charge. - */ - public ServiceCharge withType(ServiceChargeType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - /** - * The type of the service charge. - */ - public ServiceCharge withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ServiceCharge other = (ServiceCharge) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.percentage, other.percentage) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.active, other.active) && - Objects.deepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - amount, - percentage, - currency, - active, - type); - } - - @Override - public String toString() { - return Utils.toString(ServiceCharge.class, - "id", id, - "name", name, - "amount", amount, - "percentage", percentage, - "currency", currency, - "active", active, - "type", type); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional amount = Optional.empty(); - - private Optional percentage = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private JsonNullable active = JsonNullable.undefined(); - - private Optional type = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * Service charge name - */ - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - /** - * Service charge name - */ - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder amount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - public Builder percentage(double percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = Optional.ofNullable(percentage); - return this; - } - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - public Builder percentage(Optional percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = percentage; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder active(boolean active) { - Utils.checkNotNull(active, "active"); - this.active = JsonNullable.of(active); - return this; - } - - public Builder active(JsonNullable active) { - Utils.checkNotNull(active, "active"); - this.active = active; - return this; - } - - /** - * The type of the service charge. - */ - public Builder type(ServiceChargeType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - /** - * The type of the service charge. - */ - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public ServiceCharge build() { - return new ServiceCharge( - id, - name, - amount, - percentage, - currency, - active, - type); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ServiceChargeInput.java b/src/main/java/com/apideck/unify/models/components/ServiceChargeInput.java deleted file mode 100644 index a124cb7..0000000 --- a/src/main/java/com/apideck/unify/models/components/ServiceChargeInput.java +++ /dev/null @@ -1,397 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class ServiceChargeInput { - - /** - * Service charge name - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("percentage") - private Optional percentage; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("active") - private JsonNullable active; - - /** - * The type of the service charge. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonCreator - public ServiceChargeInput( - @JsonProperty("name") Optional name, - @JsonProperty("amount") Optional amount, - @JsonProperty("percentage") Optional percentage, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("active") JsonNullable active, - @JsonProperty("type") Optional type) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(percentage, "percentage"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(active, "active"); - Utils.checkNotNull(type, "type"); - this.name = name; - this.amount = amount; - this.percentage = percentage; - this.currency = currency; - this.active = active; - this.type = type; - } - - public ServiceChargeInput() { - this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * Service charge name - */ - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - @JsonIgnore - public Optional percentage() { - return percentage; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public JsonNullable active() { - return active; - } - - /** - * The type of the service charge. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Service charge name - */ - public ServiceChargeInput withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - /** - * Service charge name - */ - public ServiceChargeInput withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public ServiceChargeInput withAmount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public ServiceChargeInput withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - public ServiceChargeInput withPercentage(double percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = Optional.ofNullable(percentage); - return this; - } - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - public ServiceChargeInput withPercentage(Optional percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = percentage; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public ServiceChargeInput withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public ServiceChargeInput withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public ServiceChargeInput withActive(boolean active) { - Utils.checkNotNull(active, "active"); - this.active = JsonNullable.of(active); - return this; - } - - public ServiceChargeInput withActive(JsonNullable active) { - Utils.checkNotNull(active, "active"); - this.active = active; - return this; - } - - /** - * The type of the service charge. - */ - public ServiceChargeInput withType(ServiceChargeType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - /** - * The type of the service charge. - */ - public ServiceChargeInput withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ServiceChargeInput other = (ServiceChargeInput) o; - return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.percentage, other.percentage) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.active, other.active) && - Objects.deepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - amount, - percentage, - currency, - active, - type); - } - - @Override - public String toString() { - return Utils.toString(ServiceChargeInput.class, - "name", name, - "amount", amount, - "percentage", percentage, - "currency", currency, - "active", active, - "type", type); - } - - public final static class Builder { - - private Optional name = Optional.empty(); - - private Optional amount = Optional.empty(); - - private Optional percentage = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private JsonNullable active = JsonNullable.undefined(); - - private Optional type = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * Service charge name - */ - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - /** - * Service charge name - */ - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder amount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - public Builder percentage(double percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = Optional.ofNullable(percentage); - return this; - } - - /** - * Service charge percentage. Use this field to calculate the amount of the service charge. Pass a percentage and amount at the same time. - */ - public Builder percentage(Optional percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = percentage; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder active(boolean active) { - Utils.checkNotNull(active, "active"); - this.active = JsonNullable.of(active); - return this; - } - - public Builder active(JsonNullable active) { - Utils.checkNotNull(active, "active"); - this.active = active; - return this; - } - - /** - * The type of the service charge. - */ - public Builder type(ServiceChargeType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - /** - * The type of the service charge. - */ - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public ServiceChargeInput build() { - return new ServiceChargeInput( - name, - amount, - percentage, - currency, - active, - type); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/ServiceChargeType.java b/src/main/java/com/apideck/unify/models/components/ServiceChargeType.java deleted file mode 100644 index 3302d1c..0000000 --- a/src/main/java/com/apideck/unify/models/components/ServiceChargeType.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * ServiceChargeType - The type of the service charge. - */ -public enum ServiceChargeType { - AUTO_GRATUITY("auto_gratuity"), - CUSTOM("custom"); - - @JsonValue - private final String value; - - private ServiceChargeType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/ShipmentDetails.java b/src/main/java/com/apideck/unify/models/components/ShipmentDetails.java deleted file mode 100644 index 9aa8b46..0000000 --- a/src/main/java/com/apideck/unify/models/components/ShipmentDetails.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - - -public class ShipmentDetails { - - @JsonCreator - public ShipmentDetails() { - - - } - - public final static Builder builder() { - return new Builder(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Objects.hash( - ); - } - - @Override - public String toString() { - return Utils.toString(ShipmentDetails.class); - } - - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ShipmentDetails build() { - return new ShipmentDetails( - ); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Source.java b/src/main/java/com/apideck/unify/models/components/Source.java deleted file mode 100644 index 16ba4ca..0000000 --- a/src/main/java/com/apideck/unify/models/components/Source.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * Source - Source of order. Indicates the way that the order was placed. - */ -public enum Source { - IN_STORE("in-store"), - ONLINE("online"), - OPT("opt"), - API("api"), - KIOSK("kiosk"), - CALLER_ID("caller-id"), - GOOGLE("google"), - INVOICE("invoice"); - - @JsonValue - private final String value; - - private Source(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/apideck/unify/models/components/Taxes.java b/src/main/java/com/apideck/unify/models/components/Taxes.java deleted file mode 100644 index 519af93..0000000 --- a/src/main/java/com/apideck/unify/models/components/Taxes.java +++ /dev/null @@ -1,465 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Double; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Taxes { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - /** - * The tax's name. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("percentage") - private Optional percentage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("scope") - private Optional scope; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - /** - * Square-only: Determines whether the tax was automatically applied to the order based on the catalog configuration. For an example, see Automatically Apply Taxes to an Order. [https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts/auto-apply-taxes]() - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("auto_applied") - private Optional autoApplied; - - @JsonCreator - public Taxes( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("amount") Optional amount, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("percentage") Optional percentage, - @JsonProperty("scope") Optional scope, - @JsonProperty("type") Optional type, - @JsonProperty("auto_applied") Optional autoApplied) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(percentage, "percentage"); - Utils.checkNotNull(scope, "scope"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(autoApplied, "autoApplied"); - this.id = id; - this.name = name; - this.amount = amount; - this.currency = currency; - this.percentage = percentage; - this.scope = scope; - this.type = type; - this.autoApplied = autoApplied; - } - - public Taxes() { - this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional id() { - return id; - } - - /** - * The tax's name. - */ - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public Optional percentage() { - return percentage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional scope() { - return (Optional) scope; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - /** - * Square-only: Determines whether the tax was automatically applied to the order based on the catalog configuration. For an example, see Automatically Apply Taxes to an Order. [https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts/auto-apply-taxes]() - */ - @JsonIgnore - public Optional autoApplied() { - return autoApplied; - } - - public final static Builder builder() { - return new Builder(); - } - - public Taxes withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Taxes withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The tax's name. - */ - public Taxes withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - /** - * The tax's name. - */ - public Taxes withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Taxes withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Taxes withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Taxes withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Taxes withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Taxes withPercentage(double percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = Optional.ofNullable(percentage); - return this; - } - - public Taxes withPercentage(Optional percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = percentage; - return this; - } - - public Taxes withScope(OrderScope scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = Optional.ofNullable(scope); - return this; - } - - public Taxes withScope(Optional scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = scope; - return this; - } - - public Taxes withType(OrderTaxesType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Taxes withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - /** - * Square-only: Determines whether the tax was automatically applied to the order based on the catalog configuration. For an example, see Automatically Apply Taxes to an Order. [https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts/auto-apply-taxes]() - */ - public Taxes withAutoApplied(boolean autoApplied) { - Utils.checkNotNull(autoApplied, "autoApplied"); - this.autoApplied = Optional.ofNullable(autoApplied); - return this; - } - - /** - * Square-only: Determines whether the tax was automatically applied to the order based on the catalog configuration. For an example, see Automatically Apply Taxes to an Order. [https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts/auto-apply-taxes]() - */ - public Taxes withAutoApplied(Optional autoApplied) { - Utils.checkNotNull(autoApplied, "autoApplied"); - this.autoApplied = autoApplied; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Taxes other = (Taxes) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.percentage, other.percentage) && - Objects.deepEquals(this.scope, other.scope) && - Objects.deepEquals(this.type, other.type) && - Objects.deepEquals(this.autoApplied, other.autoApplied); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - amount, - currency, - percentage, - scope, - type, - autoApplied); - } - - @Override - public String toString() { - return Utils.toString(Taxes.class, - "id", id, - "name", name, - "amount", amount, - "currency", currency, - "percentage", percentage, - "scope", scope, - "type", type, - "autoApplied", autoApplied); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional amount = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private Optional percentage = Optional.empty(); - - private Optional scope = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional autoApplied = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * The tax's name. - */ - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - /** - * The tax's name. - */ - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder percentage(double percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = Optional.ofNullable(percentage); - return this; - } - - public Builder percentage(Optional percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = percentage; - return this; - } - - public Builder scope(OrderScope scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = Optional.ofNullable(scope); - return this; - } - - public Builder scope(Optional scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = scope; - return this; - } - - public Builder type(OrderTaxesType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - /** - * Square-only: Determines whether the tax was automatically applied to the order based on the catalog configuration. For an example, see Automatically Apply Taxes to an Order. [https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts/auto-apply-taxes]() - */ - public Builder autoApplied(boolean autoApplied) { - Utils.checkNotNull(autoApplied, "autoApplied"); - this.autoApplied = Optional.ofNullable(autoApplied); - return this; - } - - /** - * Square-only: Determines whether the tax was automatically applied to the order based on the catalog configuration. For an example, see Automatically Apply Taxes to an Order. [https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts/auto-apply-taxes]() - */ - public Builder autoApplied(Optional autoApplied) { - Utils.checkNotNull(autoApplied, "autoApplied"); - this.autoApplied = autoApplied; - return this; - } - - public Taxes build() { - return new Taxes( - id, - name, - amount, - currency, - percentage, - scope, - type, - autoApplied); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Tender.java b/src/main/java/com/apideck/unify/models/components/Tender.java deleted file mode 100644 index 009b3ac..0000000 --- a/src/main/java/com/apideck/unify/models/components/Tender.java +++ /dev/null @@ -1,843 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Tender { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private JsonNullable key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("label") - private JsonNullable label; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("active") - private JsonNullable active; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hidden") - private JsonNullable hidden; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("editable") - private JsonNullable editable; - - /** - * If this tender opens the cash drawer - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("opens_cash_drawer") - private Optional opensCashDrawer; - - /** - * Allow tipping on payment from tender - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allows_tipping") - private Optional allowsTipping; - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("custom_mappings") - private JsonNullable customMappings; - - /** - * The user who last updated the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_by") - private JsonNullable updatedBy; - - /** - * The user who created the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_by") - private JsonNullable createdBy; - - /** - * The date and time when the object was last updated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_at") - private JsonNullable updatedAt; - - /** - * The date and time when the object was created. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_at") - private JsonNullable createdAt; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public Tender( - @JsonProperty("id") Optional id, - @JsonProperty("key") JsonNullable key, - @JsonProperty("label") JsonNullable label, - @JsonProperty("active") JsonNullable active, - @JsonProperty("hidden") JsonNullable hidden, - @JsonProperty("editable") JsonNullable editable, - @JsonProperty("opens_cash_drawer") Optional opensCashDrawer, - @JsonProperty("allows_tipping") Optional allowsTipping, - @JsonProperty("custom_mappings") JsonNullable customMappings, - @JsonProperty("updated_by") JsonNullable updatedBy, - @JsonProperty("created_by") JsonNullable createdBy, - @JsonProperty("updated_at") JsonNullable updatedAt, - @JsonProperty("created_at") JsonNullable createdAt, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(label, "label"); - Utils.checkNotNull(active, "active"); - Utils.checkNotNull(hidden, "hidden"); - Utils.checkNotNull(editable, "editable"); - Utils.checkNotNull(opensCashDrawer, "opensCashDrawer"); - Utils.checkNotNull(allowsTipping, "allowsTipping"); - Utils.checkNotNull(customMappings, "customMappings"); - Utils.checkNotNull(updatedBy, "updatedBy"); - Utils.checkNotNull(createdBy, "createdBy"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(passThrough, "passThrough"); - this.id = id; - this.key = key; - this.label = label; - this.active = active; - this.hidden = hidden; - this.editable = editable; - this.opensCashDrawer = opensCashDrawer; - this.allowsTipping = allowsTipping; - this.customMappings = customMappings; - this.updatedBy = updatedBy; - this.createdBy = createdBy; - this.updatedAt = updatedAt; - this.createdAt = createdAt; - this.passThrough = passThrough; - } - - public Tender() { - this(Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public JsonNullable key() { - return key; - } - - @JsonIgnore - public JsonNullable label() { - return label; - } - - @JsonIgnore - public JsonNullable active() { - return active; - } - - @JsonIgnore - public JsonNullable hidden() { - return hidden; - } - - @JsonIgnore - public JsonNullable editable() { - return editable; - } - - /** - * If this tender opens the cash drawer - */ - @JsonIgnore - public Optional opensCashDrawer() { - return opensCashDrawer; - } - - /** - * Allow tipping on payment from tender - */ - @JsonIgnore - public Optional allowsTipping() { - return allowsTipping; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable customMappings() { - return (JsonNullable) customMappings; - } - - /** - * The user who last updated the object. - */ - @JsonIgnore - public JsonNullable updatedBy() { - return updatedBy; - } - - /** - * The user who created the object. - */ - @JsonIgnore - public JsonNullable createdBy() { - return createdBy; - } - - /** - * The date and time when the object was last updated. - */ - @JsonIgnore - public JsonNullable updatedAt() { - return updatedAt; - } - - /** - * The date and time when the object was created. - */ - @JsonIgnore - public JsonNullable createdAt() { - return createdAt; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public Tender withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Tender withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Tender withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = JsonNullable.of(key); - return this; - } - - public Tender withKey(JsonNullable key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Tender withLabel(String label) { - Utils.checkNotNull(label, "label"); - this.label = JsonNullable.of(label); - return this; - } - - public Tender withLabel(JsonNullable label) { - Utils.checkNotNull(label, "label"); - this.label = label; - return this; - } - - public Tender withActive(boolean active) { - Utils.checkNotNull(active, "active"); - this.active = JsonNullable.of(active); - return this; - } - - public Tender withActive(JsonNullable active) { - Utils.checkNotNull(active, "active"); - this.active = active; - return this; - } - - public Tender withHidden(boolean hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = JsonNullable.of(hidden); - return this; - } - - public Tender withHidden(JsonNullable hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - public Tender withEditable(boolean editable) { - Utils.checkNotNull(editable, "editable"); - this.editable = JsonNullable.of(editable); - return this; - } - - public Tender withEditable(JsonNullable editable) { - Utils.checkNotNull(editable, "editable"); - this.editable = editable; - return this; - } - - /** - * If this tender opens the cash drawer - */ - public Tender withOpensCashDrawer(boolean opensCashDrawer) { - Utils.checkNotNull(opensCashDrawer, "opensCashDrawer"); - this.opensCashDrawer = Optional.ofNullable(opensCashDrawer); - return this; - } - - /** - * If this tender opens the cash drawer - */ - public Tender withOpensCashDrawer(Optional opensCashDrawer) { - Utils.checkNotNull(opensCashDrawer, "opensCashDrawer"); - this.opensCashDrawer = opensCashDrawer; - return this; - } - - /** - * Allow tipping on payment from tender - */ - public Tender withAllowsTipping(boolean allowsTipping) { - Utils.checkNotNull(allowsTipping, "allowsTipping"); - this.allowsTipping = Optional.ofNullable(allowsTipping); - return this; - } - - /** - * Allow tipping on payment from tender - */ - public Tender withAllowsTipping(Optional allowsTipping) { - Utils.checkNotNull(allowsTipping, "allowsTipping"); - this.allowsTipping = allowsTipping; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Tender withCustomMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Tender withCustomMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * The user who last updated the object. - */ - public Tender withUpdatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Tender withUpdatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Tender withCreatedBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Tender withCreatedBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Tender withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Tender withUpdatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Tender withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Tender withCreatedAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Tender withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Tender withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Tender other = (Tender) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.key, other.key) && - Objects.deepEquals(this.label, other.label) && - Objects.deepEquals(this.active, other.active) && - Objects.deepEquals(this.hidden, other.hidden) && - Objects.deepEquals(this.editable, other.editable) && - Objects.deepEquals(this.opensCashDrawer, other.opensCashDrawer) && - Objects.deepEquals(this.allowsTipping, other.allowsTipping) && - Objects.deepEquals(this.customMappings, other.customMappings) && - Objects.deepEquals(this.updatedBy, other.updatedBy) && - Objects.deepEquals(this.createdBy, other.createdBy) && - Objects.deepEquals(this.updatedAt, other.updatedAt) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - key, - label, - active, - hidden, - editable, - opensCashDrawer, - allowsTipping, - customMappings, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(Tender.class, - "id", id, - "key", key, - "label", label, - "active", active, - "hidden", hidden, - "editable", editable, - "opensCashDrawer", opensCashDrawer, - "allowsTipping", allowsTipping, - "customMappings", customMappings, - "updatedBy", updatedBy, - "createdBy", createdBy, - "updatedAt", updatedAt, - "createdAt", createdAt, - "passThrough", passThrough); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private JsonNullable key = JsonNullable.undefined(); - - private JsonNullable label = JsonNullable.undefined(); - - private JsonNullable active = JsonNullable.undefined(); - - private JsonNullable hidden = JsonNullable.undefined(); - - private JsonNullable editable = JsonNullable.undefined(); - - private Optional opensCashDrawer; - - private Optional allowsTipping; - - private JsonNullable customMappings = JsonNullable.undefined(); - - private JsonNullable updatedBy = JsonNullable.undefined(); - - private JsonNullable createdBy = JsonNullable.undefined(); - - private JsonNullable updatedAt = JsonNullable.undefined(); - - private JsonNullable createdAt = JsonNullable.undefined(); - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = JsonNullable.of(key); - return this; - } - - public Builder key(JsonNullable key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder label(String label) { - Utils.checkNotNull(label, "label"); - this.label = JsonNullable.of(label); - return this; - } - - public Builder label(JsonNullable label) { - Utils.checkNotNull(label, "label"); - this.label = label; - return this; - } - - public Builder active(boolean active) { - Utils.checkNotNull(active, "active"); - this.active = JsonNullable.of(active); - return this; - } - - public Builder active(JsonNullable active) { - Utils.checkNotNull(active, "active"); - this.active = active; - return this; - } - - public Builder hidden(boolean hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = JsonNullable.of(hidden); - return this; - } - - public Builder hidden(JsonNullable hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - public Builder editable(boolean editable) { - Utils.checkNotNull(editable, "editable"); - this.editable = JsonNullable.of(editable); - return this; - } - - public Builder editable(JsonNullable editable) { - Utils.checkNotNull(editable, "editable"); - this.editable = editable; - return this; - } - - /** - * If this tender opens the cash drawer - */ - public Builder opensCashDrawer(boolean opensCashDrawer) { - Utils.checkNotNull(opensCashDrawer, "opensCashDrawer"); - this.opensCashDrawer = Optional.ofNullable(opensCashDrawer); - return this; - } - - /** - * If this tender opens the cash drawer - */ - public Builder opensCashDrawer(Optional opensCashDrawer) { - Utils.checkNotNull(opensCashDrawer, "opensCashDrawer"); - this.opensCashDrawer = opensCashDrawer; - return this; - } - - /** - * Allow tipping on payment from tender - */ - public Builder allowsTipping(boolean allowsTipping) { - Utils.checkNotNull(allowsTipping, "allowsTipping"); - this.allowsTipping = Optional.ofNullable(allowsTipping); - return this; - } - - /** - * Allow tipping on payment from tender - */ - public Builder allowsTipping(Optional allowsTipping) { - Utils.checkNotNull(allowsTipping, "allowsTipping"); - this.allowsTipping = allowsTipping; - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(CustomMappings customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = JsonNullable.of(customMappings); - return this; - } - - /** - * When custom mappings are configured on the resource, the result is included here. - */ - public Builder customMappings(JsonNullable customMappings) { - Utils.checkNotNull(customMappings, "customMappings"); - this.customMappings = customMappings; - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(String updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = JsonNullable.of(updatedBy); - return this; - } - - /** - * The user who last updated the object. - */ - public Builder updatedBy(JsonNullable updatedBy) { - Utils.checkNotNull(updatedBy, "updatedBy"); - this.updatedBy = updatedBy; - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(String createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = JsonNullable.of(createdBy); - return this; - } - - /** - * The user who created the object. - */ - public Builder createdBy(JsonNullable createdBy) { - Utils.checkNotNull(createdBy, "createdBy"); - this.createdBy = createdBy; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public Tender build() { - if (opensCashDrawer == null) { - opensCashDrawer = _SINGLETON_VALUE_OpensCashDrawer.value(); - } - if (allowsTipping == null) { - allowsTipping = _SINGLETON_VALUE_AllowsTipping.value(); - } return new Tender( - id, - key, - label, - active, - hidden, - editable, - opensCashDrawer, - allowsTipping, - customMappings, - updatedBy, - createdBy, - updatedAt, - createdAt, - passThrough); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_OpensCashDrawer = - new LazySingletonValue<>( - "opens_cash_drawer", - "true", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_AllowsTipping = - new LazySingletonValue<>( - "allows_tipping", - "true", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/TenderInput.java b/src/main/java/com/apideck/unify/models/components/TenderInput.java deleted file mode 100644 index 332f8cc..0000000 --- a/src/main/java/com/apideck/unify/models/components/TenderInput.java +++ /dev/null @@ -1,481 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class TenderInput { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private JsonNullable key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("label") - private JsonNullable label; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("active") - private JsonNullable active; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hidden") - private JsonNullable hidden; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("editable") - private JsonNullable editable; - - /** - * If this tender opens the cash drawer - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("opens_cash_drawer") - private Optional opensCashDrawer; - - /** - * Allow tipping on payment from tender - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allows_tipping") - private Optional allowsTipping; - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pass_through") - private Optional> passThrough; - - @JsonCreator - public TenderInput( - @JsonProperty("key") JsonNullable key, - @JsonProperty("label") JsonNullable label, - @JsonProperty("active") JsonNullable active, - @JsonProperty("hidden") JsonNullable hidden, - @JsonProperty("editable") JsonNullable editable, - @JsonProperty("opens_cash_drawer") Optional opensCashDrawer, - @JsonProperty("allows_tipping") Optional allowsTipping, - @JsonProperty("pass_through") Optional> passThrough) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(label, "label"); - Utils.checkNotNull(active, "active"); - Utils.checkNotNull(hidden, "hidden"); - Utils.checkNotNull(editable, "editable"); - Utils.checkNotNull(opensCashDrawer, "opensCashDrawer"); - Utils.checkNotNull(allowsTipping, "allowsTipping"); - Utils.checkNotNull(passThrough, "passThrough"); - this.key = key; - this.label = label; - this.active = active; - this.hidden = hidden; - this.editable = editable; - this.opensCashDrawer = opensCashDrawer; - this.allowsTipping = allowsTipping; - this.passThrough = passThrough; - } - - public TenderInput() { - this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public JsonNullable key() { - return key; - } - - @JsonIgnore - public JsonNullable label() { - return label; - } - - @JsonIgnore - public JsonNullable active() { - return active; - } - - @JsonIgnore - public JsonNullable hidden() { - return hidden; - } - - @JsonIgnore - public JsonNullable editable() { - return editable; - } - - /** - * If this tender opens the cash drawer - */ - @JsonIgnore - public Optional opensCashDrawer() { - return opensCashDrawer; - } - - /** - * Allow tipping on payment from tender - */ - @JsonIgnore - public Optional allowsTipping() { - return allowsTipping; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> passThrough() { - return (Optional>) passThrough; - } - - public final static Builder builder() { - return new Builder(); - } - - public TenderInput withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = JsonNullable.of(key); - return this; - } - - public TenderInput withKey(JsonNullable key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public TenderInput withLabel(String label) { - Utils.checkNotNull(label, "label"); - this.label = JsonNullable.of(label); - return this; - } - - public TenderInput withLabel(JsonNullable label) { - Utils.checkNotNull(label, "label"); - this.label = label; - return this; - } - - public TenderInput withActive(boolean active) { - Utils.checkNotNull(active, "active"); - this.active = JsonNullable.of(active); - return this; - } - - public TenderInput withActive(JsonNullable active) { - Utils.checkNotNull(active, "active"); - this.active = active; - return this; - } - - public TenderInput withHidden(boolean hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = JsonNullable.of(hidden); - return this; - } - - public TenderInput withHidden(JsonNullable hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - public TenderInput withEditable(boolean editable) { - Utils.checkNotNull(editable, "editable"); - this.editable = JsonNullable.of(editable); - return this; - } - - public TenderInput withEditable(JsonNullable editable) { - Utils.checkNotNull(editable, "editable"); - this.editable = editable; - return this; - } - - /** - * If this tender opens the cash drawer - */ - public TenderInput withOpensCashDrawer(boolean opensCashDrawer) { - Utils.checkNotNull(opensCashDrawer, "opensCashDrawer"); - this.opensCashDrawer = Optional.ofNullable(opensCashDrawer); - return this; - } - - /** - * If this tender opens the cash drawer - */ - public TenderInput withOpensCashDrawer(Optional opensCashDrawer) { - Utils.checkNotNull(opensCashDrawer, "opensCashDrawer"); - this.opensCashDrawer = opensCashDrawer; - return this; - } - - /** - * Allow tipping on payment from tender - */ - public TenderInput withAllowsTipping(boolean allowsTipping) { - Utils.checkNotNull(allowsTipping, "allowsTipping"); - this.allowsTipping = Optional.ofNullable(allowsTipping); - return this; - } - - /** - * Allow tipping on payment from tender - */ - public TenderInput withAllowsTipping(Optional allowsTipping) { - Utils.checkNotNull(allowsTipping, "allowsTipping"); - this.allowsTipping = allowsTipping; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public TenderInput withPassThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public TenderInput withPassThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TenderInput other = (TenderInput) o; - return - Objects.deepEquals(this.key, other.key) && - Objects.deepEquals(this.label, other.label) && - Objects.deepEquals(this.active, other.active) && - Objects.deepEquals(this.hidden, other.hidden) && - Objects.deepEquals(this.editable, other.editable) && - Objects.deepEquals(this.opensCashDrawer, other.opensCashDrawer) && - Objects.deepEquals(this.allowsTipping, other.allowsTipping) && - Objects.deepEquals(this.passThrough, other.passThrough); - } - - @Override - public int hashCode() { - return Objects.hash( - key, - label, - active, - hidden, - editable, - opensCashDrawer, - allowsTipping, - passThrough); - } - - @Override - public String toString() { - return Utils.toString(TenderInput.class, - "key", key, - "label", label, - "active", active, - "hidden", hidden, - "editable", editable, - "opensCashDrawer", opensCashDrawer, - "allowsTipping", allowsTipping, - "passThrough", passThrough); - } - - public final static class Builder { - - private JsonNullable key = JsonNullable.undefined(); - - private JsonNullable label = JsonNullable.undefined(); - - private JsonNullable active = JsonNullable.undefined(); - - private JsonNullable hidden = JsonNullable.undefined(); - - private JsonNullable editable = JsonNullable.undefined(); - - private Optional opensCashDrawer; - - private Optional allowsTipping; - - private Optional> passThrough = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = JsonNullable.of(key); - return this; - } - - public Builder key(JsonNullable key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder label(String label) { - Utils.checkNotNull(label, "label"); - this.label = JsonNullable.of(label); - return this; - } - - public Builder label(JsonNullable label) { - Utils.checkNotNull(label, "label"); - this.label = label; - return this; - } - - public Builder active(boolean active) { - Utils.checkNotNull(active, "active"); - this.active = JsonNullable.of(active); - return this; - } - - public Builder active(JsonNullable active) { - Utils.checkNotNull(active, "active"); - this.active = active; - return this; - } - - public Builder hidden(boolean hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = JsonNullable.of(hidden); - return this; - } - - public Builder hidden(JsonNullable hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - public Builder editable(boolean editable) { - Utils.checkNotNull(editable, "editable"); - this.editable = JsonNullable.of(editable); - return this; - } - - public Builder editable(JsonNullable editable) { - Utils.checkNotNull(editable, "editable"); - this.editable = editable; - return this; - } - - /** - * If this tender opens the cash drawer - */ - public Builder opensCashDrawer(boolean opensCashDrawer) { - Utils.checkNotNull(opensCashDrawer, "opensCashDrawer"); - this.opensCashDrawer = Optional.ofNullable(opensCashDrawer); - return this; - } - - /** - * If this tender opens the cash drawer - */ - public Builder opensCashDrawer(Optional opensCashDrawer) { - Utils.checkNotNull(opensCashDrawer, "opensCashDrawer"); - this.opensCashDrawer = opensCashDrawer; - return this; - } - - /** - * Allow tipping on payment from tender - */ - public Builder allowsTipping(boolean allowsTipping) { - Utils.checkNotNull(allowsTipping, "allowsTipping"); - this.allowsTipping = Optional.ofNullable(allowsTipping); - return this; - } - - /** - * Allow tipping on payment from tender - */ - public Builder allowsTipping(Optional allowsTipping) { - Utils.checkNotNull(allowsTipping, "allowsTipping"); - this.allowsTipping = allowsTipping; - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(List passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = Optional.ofNullable(passThrough); - return this; - } - - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - public Builder passThrough(Optional> passThrough) { - Utils.checkNotNull(passThrough, "passThrough"); - this.passThrough = passThrough; - return this; - } - - public TenderInput build() { - if (opensCashDrawer == null) { - opensCashDrawer = _SINGLETON_VALUE_OpensCashDrawer.value(); - } - if (allowsTipping == null) { - allowsTipping = _SINGLETON_VALUE_AllowsTipping.value(); - } return new TenderInput( - key, - label, - active, - hidden, - editable, - opensCashDrawer, - allowsTipping, - passThrough); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_OpensCashDrawer = - new LazySingletonValue<>( - "opens_cash_drawer", - "true", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_AllowsTipping = - new LazySingletonValue<>( - "allows_tipping", - "true", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Tenders.java b/src/main/java/com/apideck/unify/models/components/Tenders.java deleted file mode 100644 index 9908fee..0000000 --- a/src/main/java/com/apideck/unify/models/components/Tenders.java +++ /dev/null @@ -1,1180 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Double; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Tenders { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("note") - private Optional note; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("percentage") - private Optional percentage; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("currency") - private JsonNullable currency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_amount") - private JsonNullable totalAmount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_tip") - private JsonNullable totalTip; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_processing_fee") - private JsonNullable totalProcessingFee; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_tax") - private JsonNullable totalTax; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_discount") - private JsonNullable totalDiscount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_refund") - private JsonNullable totalRefund; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total_service_charge") - private JsonNullable totalServiceCharge; - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("buyer_tendered_cash_amount") - private JsonNullable buyerTenderedCashAmount; - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("change_back_cash_amount") - private JsonNullable changeBackCashAmount; - - /** - * A card's non-confidential details. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card") - private JsonNullable card; - - /** - * The status of the card. Only applicable when the tender type is card. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card_status") - private JsonNullable cardStatus; - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("card_entry_method") - private JsonNullable cardEntryMethod; - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("payment_id") - private Optional paymentId; - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("location_id") - private Optional locationId; - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transaction_id") - private Optional transactionId; - - @JsonCreator - public Tenders( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("type") Optional type, - @JsonProperty("note") Optional note, - @JsonProperty("amount") Optional amount, - @JsonProperty("percentage") Optional percentage, - @JsonProperty("currency") JsonNullable currency, - @JsonProperty("total_amount") JsonNullable totalAmount, - @JsonProperty("total_tip") JsonNullable totalTip, - @JsonProperty("total_processing_fee") JsonNullable totalProcessingFee, - @JsonProperty("total_tax") JsonNullable totalTax, - @JsonProperty("total_discount") JsonNullable totalDiscount, - @JsonProperty("total_refund") JsonNullable totalRefund, - @JsonProperty("total_service_charge") JsonNullable totalServiceCharge, - @JsonProperty("buyer_tendered_cash_amount") JsonNullable buyerTenderedCashAmount, - @JsonProperty("change_back_cash_amount") JsonNullable changeBackCashAmount, - @JsonProperty("card") JsonNullable card, - @JsonProperty("card_status") JsonNullable cardStatus, - @JsonProperty("card_entry_method") JsonNullable cardEntryMethod, - @JsonProperty("payment_id") Optional paymentId, - @JsonProperty("location_id") Optional locationId, - @JsonProperty("transaction_id") Optional transactionId) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(note, "note"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(percentage, "percentage"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(totalAmount, "totalAmount"); - Utils.checkNotNull(totalTip, "totalTip"); - Utils.checkNotNull(totalProcessingFee, "totalProcessingFee"); - Utils.checkNotNull(totalTax, "totalTax"); - Utils.checkNotNull(totalDiscount, "totalDiscount"); - Utils.checkNotNull(totalRefund, "totalRefund"); - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - Utils.checkNotNull(buyerTenderedCashAmount, "buyerTenderedCashAmount"); - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - Utils.checkNotNull(card, "card"); - Utils.checkNotNull(cardStatus, "cardStatus"); - Utils.checkNotNull(cardEntryMethod, "cardEntryMethod"); - Utils.checkNotNull(paymentId, "paymentId"); - Utils.checkNotNull(locationId, "locationId"); - Utils.checkNotNull(transactionId, "transactionId"); - this.id = id; - this.name = name; - this.type = type; - this.note = note; - this.amount = amount; - this.percentage = percentage; - this.currency = currency; - this.totalAmount = totalAmount; - this.totalTip = totalTip; - this.totalProcessingFee = totalProcessingFee; - this.totalTax = totalTax; - this.totalDiscount = totalDiscount; - this.totalRefund = totalRefund; - this.totalServiceCharge = totalServiceCharge; - this.buyerTenderedCashAmount = buyerTenderedCashAmount; - this.changeBackCashAmount = changeBackCashAmount; - this.card = card; - this.cardStatus = cardStatus; - this.cardEntryMethod = cardEntryMethod; - this.paymentId = paymentId; - this.locationId = locationId; - this.transactionId = transactionId; - } - - public Tenders() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @JsonIgnore - public Optional note() { - return note; - } - - @JsonIgnore - public Optional amount() { - return amount; - } - - @JsonIgnore - public Optional percentage() { - return percentage; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable currency() { - return (JsonNullable) currency; - } - - @JsonIgnore - public JsonNullable totalAmount() { - return totalAmount; - } - - @JsonIgnore - public JsonNullable totalTip() { - return totalTip; - } - - @JsonIgnore - public JsonNullable totalProcessingFee() { - return totalProcessingFee; - } - - @JsonIgnore - public JsonNullable totalTax() { - return totalTax; - } - - @JsonIgnore - public JsonNullable totalDiscount() { - return totalDiscount; - } - - @JsonIgnore - public JsonNullable totalRefund() { - return totalRefund; - } - - @JsonIgnore - public JsonNullable totalServiceCharge() { - return totalServiceCharge; - } - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - @JsonIgnore - public JsonNullable buyerTenderedCashAmount() { - return buyerTenderedCashAmount; - } - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - @JsonIgnore - public JsonNullable changeBackCashAmount() { - return changeBackCashAmount; - } - - /** - * A card's non-confidential details. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable card() { - return (JsonNullable) card; - } - - /** - * The status of the card. Only applicable when the tender type is card. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable cardStatus() { - return (JsonNullable) cardStatus; - } - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable cardEntryMethod() { - return (JsonNullable) cardEntryMethod; - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional paymentId() { - return paymentId; - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional locationId() { - return locationId; - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional transactionId() { - return transactionId; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public Tenders withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Tenders withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Tenders withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Tenders withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Tenders withType(OrderTendersType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Tenders withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Tenders withNote(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - public Tenders withNote(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - public Tenders withAmount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Tenders withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public Tenders withPercentage(double percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = Optional.ofNullable(percentage); - return this; - } - - public Tenders withPercentage(Optional percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = percentage; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Tenders withCurrency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Tenders withCurrency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Tenders withTotalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public Tenders withTotalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public Tenders withTotalTip(long totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = JsonNullable.of(totalTip); - return this; - } - - public Tenders withTotalTip(JsonNullable totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = totalTip; - return this; - } - - public Tenders withTotalProcessingFee(long totalProcessingFee) { - Utils.checkNotNull(totalProcessingFee, "totalProcessingFee"); - this.totalProcessingFee = JsonNullable.of(totalProcessingFee); - return this; - } - - public Tenders withTotalProcessingFee(JsonNullable totalProcessingFee) { - Utils.checkNotNull(totalProcessingFee, "totalProcessingFee"); - this.totalProcessingFee = totalProcessingFee; - return this; - } - - public Tenders withTotalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public Tenders withTotalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public Tenders withTotalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public Tenders withTotalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public Tenders withTotalRefund(long totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = JsonNullable.of(totalRefund); - return this; - } - - public Tenders withTotalRefund(JsonNullable totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = totalRefund; - return this; - } - - public Tenders withTotalServiceCharge(long totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = JsonNullable.of(totalServiceCharge); - return this; - } - - public Tenders withTotalServiceCharge(JsonNullable totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = totalServiceCharge; - return this; - } - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - public Tenders withBuyerTenderedCashAmount(long buyerTenderedCashAmount) { - Utils.checkNotNull(buyerTenderedCashAmount, "buyerTenderedCashAmount"); - this.buyerTenderedCashAmount = JsonNullable.of(buyerTenderedCashAmount); - return this; - } - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - public Tenders withBuyerTenderedCashAmount(JsonNullable buyerTenderedCashAmount) { - Utils.checkNotNull(buyerTenderedCashAmount, "buyerTenderedCashAmount"); - this.buyerTenderedCashAmount = buyerTenderedCashAmount; - return this; - } - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - public Tenders withChangeBackCashAmount(long changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = JsonNullable.of(changeBackCashAmount); - return this; - } - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - public Tenders withChangeBackCashAmount(JsonNullable changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = changeBackCashAmount; - return this; - } - - /** - * A card's non-confidential details. - */ - public Tenders withCard(PaymentCard card) { - Utils.checkNotNull(card, "card"); - this.card = JsonNullable.of(card); - return this; - } - - /** - * A card's non-confidential details. - */ - public Tenders withCard(JsonNullable card) { - Utils.checkNotNull(card, "card"); - this.card = card; - return this; - } - - /** - * The status of the card. Only applicable when the tender type is card. - */ - public Tenders withCardStatus(CardStatus cardStatus) { - Utils.checkNotNull(cardStatus, "cardStatus"); - this.cardStatus = JsonNullable.of(cardStatus); - return this; - } - - /** - * The status of the card. Only applicable when the tender type is card. - */ - public Tenders withCardStatus(JsonNullable cardStatus) { - Utils.checkNotNull(cardStatus, "cardStatus"); - this.cardStatus = cardStatus; - return this; - } - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - public Tenders withCardEntryMethod(CardEntryMethod cardEntryMethod) { - Utils.checkNotNull(cardEntryMethod, "cardEntryMethod"); - this.cardEntryMethod = JsonNullable.of(cardEntryMethod); - return this; - } - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - public Tenders withCardEntryMethod(JsonNullable cardEntryMethod) { - Utils.checkNotNull(cardEntryMethod, "cardEntryMethod"); - this.cardEntryMethod = cardEntryMethod; - return this; - } - - /** - * A unique identifier for an object. - */ - public Tenders withPaymentId(String paymentId) { - Utils.checkNotNull(paymentId, "paymentId"); - this.paymentId = Optional.ofNullable(paymentId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Tenders withPaymentId(Optional paymentId) { - Utils.checkNotNull(paymentId, "paymentId"); - this.paymentId = paymentId; - return this; - } - - /** - * A unique identifier for an object. - */ - public Tenders withLocationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = Optional.ofNullable(locationId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Tenders withLocationId(Optional locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - /** - * A unique identifier for an object. - */ - public Tenders withTransactionId(String transactionId) { - Utils.checkNotNull(transactionId, "transactionId"); - this.transactionId = Optional.ofNullable(transactionId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Tenders withTransactionId(Optional transactionId) { - Utils.checkNotNull(transactionId, "transactionId"); - this.transactionId = transactionId; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Tenders other = (Tenders) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.type, other.type) && - Objects.deepEquals(this.note, other.note) && - Objects.deepEquals(this.amount, other.amount) && - Objects.deepEquals(this.percentage, other.percentage) && - Objects.deepEquals(this.currency, other.currency) && - Objects.deepEquals(this.totalAmount, other.totalAmount) && - Objects.deepEquals(this.totalTip, other.totalTip) && - Objects.deepEquals(this.totalProcessingFee, other.totalProcessingFee) && - Objects.deepEquals(this.totalTax, other.totalTax) && - Objects.deepEquals(this.totalDiscount, other.totalDiscount) && - Objects.deepEquals(this.totalRefund, other.totalRefund) && - Objects.deepEquals(this.totalServiceCharge, other.totalServiceCharge) && - Objects.deepEquals(this.buyerTenderedCashAmount, other.buyerTenderedCashAmount) && - Objects.deepEquals(this.changeBackCashAmount, other.changeBackCashAmount) && - Objects.deepEquals(this.card, other.card) && - Objects.deepEquals(this.cardStatus, other.cardStatus) && - Objects.deepEquals(this.cardEntryMethod, other.cardEntryMethod) && - Objects.deepEquals(this.paymentId, other.paymentId) && - Objects.deepEquals(this.locationId, other.locationId) && - Objects.deepEquals(this.transactionId, other.transactionId); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - type, - note, - amount, - percentage, - currency, - totalAmount, - totalTip, - totalProcessingFee, - totalTax, - totalDiscount, - totalRefund, - totalServiceCharge, - buyerTenderedCashAmount, - changeBackCashAmount, - card, - cardStatus, - cardEntryMethod, - paymentId, - locationId, - transactionId); - } - - @Override - public String toString() { - return Utils.toString(Tenders.class, - "id", id, - "name", name, - "type", type, - "note", note, - "amount", amount, - "percentage", percentage, - "currency", currency, - "totalAmount", totalAmount, - "totalTip", totalTip, - "totalProcessingFee", totalProcessingFee, - "totalTax", totalTax, - "totalDiscount", totalDiscount, - "totalRefund", totalRefund, - "totalServiceCharge", totalServiceCharge, - "buyerTenderedCashAmount", buyerTenderedCashAmount, - "changeBackCashAmount", changeBackCashAmount, - "card", card, - "cardStatus", cardStatus, - "cardEntryMethod", cardEntryMethod, - "paymentId", paymentId, - "locationId", locationId, - "transactionId", transactionId); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional note = Optional.empty(); - - private Optional amount = Optional.empty(); - - private Optional percentage = Optional.empty(); - - private JsonNullable currency = JsonNullable.undefined(); - - private JsonNullable totalAmount = JsonNullable.undefined(); - - private JsonNullable totalTip = JsonNullable.undefined(); - - private JsonNullable totalProcessingFee = JsonNullable.undefined(); - - private JsonNullable totalTax = JsonNullable.undefined(); - - private JsonNullable totalDiscount = JsonNullable.undefined(); - - private JsonNullable totalRefund = JsonNullable.undefined(); - - private JsonNullable totalServiceCharge = JsonNullable.undefined(); - - private JsonNullable buyerTenderedCashAmount = JsonNullable.undefined(); - - private JsonNullable changeBackCashAmount = JsonNullable.undefined(); - - private JsonNullable card = JsonNullable.undefined(); - - private JsonNullable cardStatus = JsonNullable.undefined(); - - private JsonNullable cardEntryMethod = JsonNullable.undefined(); - - private Optional paymentId = Optional.empty(); - - private Optional locationId = Optional.empty(); - - private Optional transactionId = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder type(OrderTendersType type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder note(String note) { - Utils.checkNotNull(note, "note"); - this.note = Optional.ofNullable(note); - return this; - } - - public Builder note(Optional note) { - Utils.checkNotNull(note, "note"); - this.note = note; - return this; - } - - public Builder amount(double amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public Builder percentage(double percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = Optional.ofNullable(percentage); - return this; - } - - public Builder percentage(Optional percentage) { - Utils.checkNotNull(percentage, "percentage"); - this.percentage = percentage; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(Currency currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = JsonNullable.of(currency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder currency(JsonNullable currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - public Builder totalAmount(long totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = JsonNullable.of(totalAmount); - return this; - } - - public Builder totalAmount(JsonNullable totalAmount) { - Utils.checkNotNull(totalAmount, "totalAmount"); - this.totalAmount = totalAmount; - return this; - } - - public Builder totalTip(long totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = JsonNullable.of(totalTip); - return this; - } - - public Builder totalTip(JsonNullable totalTip) { - Utils.checkNotNull(totalTip, "totalTip"); - this.totalTip = totalTip; - return this; - } - - public Builder totalProcessingFee(long totalProcessingFee) { - Utils.checkNotNull(totalProcessingFee, "totalProcessingFee"); - this.totalProcessingFee = JsonNullable.of(totalProcessingFee); - return this; - } - - public Builder totalProcessingFee(JsonNullable totalProcessingFee) { - Utils.checkNotNull(totalProcessingFee, "totalProcessingFee"); - this.totalProcessingFee = totalProcessingFee; - return this; - } - - public Builder totalTax(long totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = JsonNullable.of(totalTax); - return this; - } - - public Builder totalTax(JsonNullable totalTax) { - Utils.checkNotNull(totalTax, "totalTax"); - this.totalTax = totalTax; - return this; - } - - public Builder totalDiscount(long totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = JsonNullable.of(totalDiscount); - return this; - } - - public Builder totalDiscount(JsonNullable totalDiscount) { - Utils.checkNotNull(totalDiscount, "totalDiscount"); - this.totalDiscount = totalDiscount; - return this; - } - - public Builder totalRefund(long totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = JsonNullable.of(totalRefund); - return this; - } - - public Builder totalRefund(JsonNullable totalRefund) { - Utils.checkNotNull(totalRefund, "totalRefund"); - this.totalRefund = totalRefund; - return this; - } - - public Builder totalServiceCharge(long totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = JsonNullable.of(totalServiceCharge); - return this; - } - - public Builder totalServiceCharge(JsonNullable totalServiceCharge) { - Utils.checkNotNull(totalServiceCharge, "totalServiceCharge"); - this.totalServiceCharge = totalServiceCharge; - return this; - } - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - public Builder buyerTenderedCashAmount(long buyerTenderedCashAmount) { - Utils.checkNotNull(buyerTenderedCashAmount, "buyerTenderedCashAmount"); - this.buyerTenderedCashAmount = JsonNullable.of(buyerTenderedCashAmount); - return this; - } - - /** - * The amount (in cents) of cash tendered by the buyer. Only applicable when the tender type is cash. - */ - public Builder buyerTenderedCashAmount(JsonNullable buyerTenderedCashAmount) { - Utils.checkNotNull(buyerTenderedCashAmount, "buyerTenderedCashAmount"); - this.buyerTenderedCashAmount = buyerTenderedCashAmount; - return this; - } - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - public Builder changeBackCashAmount(long changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = JsonNullable.of(changeBackCashAmount); - return this; - } - - /** - * The amount (in cents) of cash returned to the buyer. Only applicable when the tender type is cash. - */ - public Builder changeBackCashAmount(JsonNullable changeBackCashAmount) { - Utils.checkNotNull(changeBackCashAmount, "changeBackCashAmount"); - this.changeBackCashAmount = changeBackCashAmount; - return this; - } - - /** - * A card's non-confidential details. - */ - public Builder card(PaymentCard card) { - Utils.checkNotNull(card, "card"); - this.card = JsonNullable.of(card); - return this; - } - - /** - * A card's non-confidential details. - */ - public Builder card(JsonNullable card) { - Utils.checkNotNull(card, "card"); - this.card = card; - return this; - } - - /** - * The status of the card. Only applicable when the tender type is card. - */ - public Builder cardStatus(CardStatus cardStatus) { - Utils.checkNotNull(cardStatus, "cardStatus"); - this.cardStatus = JsonNullable.of(cardStatus); - return this; - } - - /** - * The status of the card. Only applicable when the tender type is card. - */ - public Builder cardStatus(JsonNullable cardStatus) { - Utils.checkNotNull(cardStatus, "cardStatus"); - this.cardStatus = cardStatus; - return this; - } - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - public Builder cardEntryMethod(CardEntryMethod cardEntryMethod) { - Utils.checkNotNull(cardEntryMethod, "cardEntryMethod"); - this.cardEntryMethod = JsonNullable.of(cardEntryMethod); - return this; - } - - /** - * The entry method of the card. Only applicable when the tender type is card. - */ - public Builder cardEntryMethod(JsonNullable cardEntryMethod) { - Utils.checkNotNull(cardEntryMethod, "cardEntryMethod"); - this.cardEntryMethod = cardEntryMethod; - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder paymentId(String paymentId) { - Utils.checkNotNull(paymentId, "paymentId"); - this.paymentId = Optional.ofNullable(paymentId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder paymentId(Optional paymentId) { - Utils.checkNotNull(paymentId, "paymentId"); - this.paymentId = paymentId; - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder locationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = Optional.ofNullable(locationId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder locationId(Optional locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder transactionId(String transactionId) { - Utils.checkNotNull(transactionId, "transactionId"); - this.transactionId = Optional.ofNullable(transactionId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder transactionId(Optional transactionId) { - Utils.checkNotNull(transactionId, "transactionId"); - this.transactionId = transactionId; - return this; - } - - public Tenders build() { - return new Tenders( - id, - name, - type, - note, - amount, - percentage, - currency, - totalAmount, - totalTip, - totalProcessingFee, - totalTax, - totalDiscount, - totalRefund, - totalServiceCharge, - buyerTenderedCashAmount, - changeBackCashAmount, - card, - cardStatus, - cardEntryMethod, - paymentId, - locationId, - transactionId); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Two.java b/src/main/java/com/apideck/unify/models/components/Two.java deleted file mode 100644 index 679ae31..0000000 --- a/src/main/java/com/apideck/unify/models/components/Two.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - - -public class Two { - - @JsonCreator - public Two() { - - - } - - public final static Builder builder() { - return new Builder(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Objects.hash( - ); - } - - @Override - public String toString() { - return Utils.toString(Two.class); - } - - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public Two build() { - return new Two( - ); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/UpdateItemResponse.java b/src/main/java/com/apideck/unify/models/components/UpdateItemResponse.java deleted file mode 100644 index e16a4a6..0000000 --- a/src/main/java/com/apideck/unify/models/components/UpdateItemResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * UpdateItemResponse - Items - */ - -public class UpdateItemResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public UpdateItemResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public UpdateItemResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public UpdateItemResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public UpdateItemResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public UpdateItemResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public UpdateItemResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public UpdateItemResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateItemResponse other = (UpdateItemResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(UpdateItemResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public UpdateItemResponse build() { - return new UpdateItemResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/UpdateLocationResponse.java b/src/main/java/com/apideck/unify/models/components/UpdateLocationResponse.java deleted file mode 100644 index dd39d7e..0000000 --- a/src/main/java/com/apideck/unify/models/components/UpdateLocationResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * UpdateLocationResponse - Locations - */ - -public class UpdateLocationResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public UpdateLocationResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public UpdateLocationResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public UpdateLocationResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public UpdateLocationResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public UpdateLocationResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public UpdateLocationResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public UpdateLocationResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateLocationResponse other = (UpdateLocationResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(UpdateLocationResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public UpdateLocationResponse build() { - return new UpdateLocationResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/UpdateMerchantResponse.java b/src/main/java/com/apideck/unify/models/components/UpdateMerchantResponse.java deleted file mode 100644 index 7fd0354..0000000 --- a/src/main/java/com/apideck/unify/models/components/UpdateMerchantResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * UpdateMerchantResponse - Merchants - */ - -public class UpdateMerchantResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public UpdateMerchantResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public UpdateMerchantResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public UpdateMerchantResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public UpdateMerchantResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public UpdateMerchantResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public UpdateMerchantResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public UpdateMerchantResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateMerchantResponse other = (UpdateMerchantResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(UpdateMerchantResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public UpdateMerchantResponse build() { - return new UpdateMerchantResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/UpdateModifierGroupResponse.java b/src/main/java/com/apideck/unify/models/components/UpdateModifierGroupResponse.java deleted file mode 100644 index e80b534..0000000 --- a/src/main/java/com/apideck/unify/models/components/UpdateModifierGroupResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * UpdateModifierGroupResponse - ModifierGroups - */ - -public class UpdateModifierGroupResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public UpdateModifierGroupResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public UpdateModifierGroupResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public UpdateModifierGroupResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public UpdateModifierGroupResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public UpdateModifierGroupResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public UpdateModifierGroupResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public UpdateModifierGroupResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateModifierGroupResponse other = (UpdateModifierGroupResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(UpdateModifierGroupResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public UpdateModifierGroupResponse build() { - return new UpdateModifierGroupResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/UpdateModifierResponse.java b/src/main/java/com/apideck/unify/models/components/UpdateModifierResponse.java deleted file mode 100644 index 46c3c75..0000000 --- a/src/main/java/com/apideck/unify/models/components/UpdateModifierResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * UpdateModifierResponse - Modifiers - */ - -public class UpdateModifierResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public UpdateModifierResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public UpdateModifierResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public UpdateModifierResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public UpdateModifierResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public UpdateModifierResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public UpdateModifierResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public UpdateModifierResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateModifierResponse other = (UpdateModifierResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(UpdateModifierResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public UpdateModifierResponse build() { - return new UpdateModifierResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/UpdateOrderResponse.java b/src/main/java/com/apideck/unify/models/components/UpdateOrderResponse.java deleted file mode 100644 index 4db28f1..0000000 --- a/src/main/java/com/apideck/unify/models/components/UpdateOrderResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * UpdateOrderResponse - Orders - */ - -public class UpdateOrderResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public UpdateOrderResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public UpdateOrderResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public UpdateOrderResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public UpdateOrderResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public UpdateOrderResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public UpdateOrderResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public UpdateOrderResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateOrderResponse other = (UpdateOrderResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(UpdateOrderResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public UpdateOrderResponse build() { - return new UpdateOrderResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/UpdateOrderTypeResponse.java b/src/main/java/com/apideck/unify/models/components/UpdateOrderTypeResponse.java deleted file mode 100644 index e6af067..0000000 --- a/src/main/java/com/apideck/unify/models/components/UpdateOrderTypeResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * UpdateOrderTypeResponse - OrderTypes - */ - -public class UpdateOrderTypeResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public UpdateOrderTypeResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public UpdateOrderTypeResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public UpdateOrderTypeResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public UpdateOrderTypeResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public UpdateOrderTypeResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public UpdateOrderTypeResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public UpdateOrderTypeResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateOrderTypeResponse other = (UpdateOrderTypeResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(UpdateOrderTypeResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public UpdateOrderTypeResponse build() { - return new UpdateOrderTypeResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/UpdatePosPaymentResponse.java b/src/main/java/com/apideck/unify/models/components/UpdatePosPaymentResponse.java deleted file mode 100644 index 15be692..0000000 --- a/src/main/java/com/apideck/unify/models/components/UpdatePosPaymentResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * UpdatePosPaymentResponse - PosPayments - */ - -public class UpdatePosPaymentResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public UpdatePosPaymentResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public UpdatePosPaymentResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public UpdatePosPaymentResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public UpdatePosPaymentResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public UpdatePosPaymentResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public UpdatePosPaymentResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public UpdatePosPaymentResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdatePosPaymentResponse other = (UpdatePosPaymentResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(UpdatePosPaymentResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public UpdatePosPaymentResponse build() { - return new UpdatePosPaymentResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/UpdateTenderResponse.java b/src/main/java/com/apideck/unify/models/components/UpdateTenderResponse.java deleted file mode 100644 index c2f0f3b..0000000 --- a/src/main/java/com/apideck/unify/models/components/UpdateTenderResponse.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - -/** - * UpdateTenderResponse - Tenders - */ - -public class UpdateTenderResponse { - - /** - * HTTP Response Status Code - */ - @JsonProperty("status_code") - private long statusCode; - - /** - * HTTP Response Status - */ - @JsonProperty("status") - private String status; - - /** - * Apideck ID of service provider - */ - @JsonProperty("service") - private String service; - - /** - * Unified API resource name - */ - @JsonProperty("resource") - private String resource; - - /** - * Operation performed - */ - @JsonProperty("operation") - private String operation; - - @JsonProperty("data") - private UnifiedId data; - - @JsonCreator - public UpdateTenderResponse( - @JsonProperty("status_code") long statusCode, - @JsonProperty("status") String status, - @JsonProperty("service") String service, - @JsonProperty("resource") String resource, - @JsonProperty("operation") String operation, - @JsonProperty("data") UnifiedId data) { - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(service, "service"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(operation, "operation"); - Utils.checkNotNull(data, "data"); - this.statusCode = statusCode; - this.status = status; - this.service = service; - this.resource = resource; - this.operation = operation; - this.data = data; - } - - /** - * HTTP Response Status Code - */ - @JsonIgnore - public long statusCode() { - return statusCode; - } - - /** - * HTTP Response Status - */ - @JsonIgnore - public String status() { - return status; - } - - /** - * Apideck ID of service provider - */ - @JsonIgnore - public String service() { - return service; - } - - /** - * Unified API resource name - */ - @JsonIgnore - public String resource() { - return resource; - } - - /** - * Operation performed - */ - @JsonIgnore - public String operation() { - return operation; - } - - @JsonIgnore - public UnifiedId data() { - return data; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP Response Status Code - */ - public UpdateTenderResponse withStatusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public UpdateTenderResponse withStatus(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public UpdateTenderResponse withService(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public UpdateTenderResponse withResource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public UpdateTenderResponse withOperation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public UpdateTenderResponse withData(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateTenderResponse other = (UpdateTenderResponse) o; - return - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.resource, other.resource) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Objects.hash( - statusCode, - status, - service, - resource, - operation, - data); - } - - @Override - public String toString() { - return Utils.toString(UpdateTenderResponse.class, - "statusCode", statusCode, - "status", status, - "service", service, - "resource", resource, - "operation", operation, - "data", data); - } - - public final static class Builder { - - private Long statusCode; - - private String status; - - private String service; - - private String resource; - - private String operation; - - private UnifiedId data; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP Response Status Code - */ - public Builder statusCode(long statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * HTTP Response Status - */ - public Builder status(String status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - /** - * Apideck ID of service provider - */ - public Builder service(String service) { - Utils.checkNotNull(service, "service"); - this.service = service; - return this; - } - - /** - * Unified API resource name - */ - public Builder resource(String resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - /** - * Operation performed - */ - public Builder operation(String operation) { - Utils.checkNotNull(operation, "operation"); - this.operation = operation; - return this; - } - - public Builder data(UnifiedId data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public UpdateTenderResponse build() { - return new UpdateTenderResponse( - statusCode, - status, - service, - resource, - operation, - data); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/Variations.java b/src/main/java/com/apideck/unify/models/components/Variations.java deleted file mode 100644 index 72f72ab..0000000 --- a/src/main/java/com/apideck/unify/models/components/Variations.java +++ /dev/null @@ -1,728 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Boolean; -import java.lang.Double; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Variations { - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sku") - private Optional sku; - - /** - * A unique identifier for an object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("item_id") - private Optional itemId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sequence") - private JsonNullable sequence; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pricing_type") - private Optional pricingType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("price_amount") - private Optional priceAmount; - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("price_currency") - private JsonNullable priceCurrency; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("stockable") - private Optional stockable; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("present_at_all_locations") - private Optional presentAtAllLocations; - - /** - * The user who last updated the object. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private JsonNullable version; - - /** - * The date and time when the object was last updated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updated_at") - private JsonNullable updatedAt; - - /** - * The date and time when the object was created. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("created_at") - private JsonNullable createdAt; - - @JsonCreator - public Variations( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("sku") Optional sku, - @JsonProperty("item_id") Optional itemId, - @JsonProperty("sequence") JsonNullable sequence, - @JsonProperty("pricing_type") Optional pricingType, - @JsonProperty("price_amount") Optional priceAmount, - @JsonProperty("price_currency") JsonNullable priceCurrency, - @JsonProperty("stockable") Optional stockable, - @JsonProperty("present_at_all_locations") Optional presentAtAllLocations, - @JsonProperty("version") JsonNullable version, - @JsonProperty("updated_at") JsonNullable updatedAt, - @JsonProperty("created_at") JsonNullable createdAt) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(sku, "sku"); - Utils.checkNotNull(itemId, "itemId"); - Utils.checkNotNull(sequence, "sequence"); - Utils.checkNotNull(pricingType, "pricingType"); - Utils.checkNotNull(priceAmount, "priceAmount"); - Utils.checkNotNull(priceCurrency, "priceCurrency"); - Utils.checkNotNull(stockable, "stockable"); - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(createdAt, "createdAt"); - this.id = id; - this.name = name; - this.sku = sku; - this.itemId = itemId; - this.sequence = sequence; - this.pricingType = pricingType; - this.priceAmount = priceAmount; - this.priceCurrency = priceCurrency; - this.stockable = stockable; - this.presentAtAllLocations = presentAtAllLocations; - this.version = version; - this.updatedAt = updatedAt; - this.createdAt = createdAt; - } - - public Variations() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined()); - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional id() { - return id; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional sku() { - return sku; - } - - /** - * A unique identifier for an object. - */ - @JsonIgnore - public Optional itemId() { - return itemId; - } - - @JsonIgnore - public JsonNullable sequence() { - return sequence; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional pricingType() { - return (Optional) pricingType; - } - - @JsonIgnore - public Optional priceAmount() { - return priceAmount; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable priceCurrency() { - return (JsonNullable) priceCurrency; - } - - @JsonIgnore - public Optional stockable() { - return stockable; - } - - @JsonIgnore - public Optional presentAtAllLocations() { - return presentAtAllLocations; - } - - /** - * The user who last updated the object. - */ - @JsonIgnore - public JsonNullable version() { - return version; - } - - /** - * The date and time when the object was last updated. - */ - @JsonIgnore - public JsonNullable updatedAt() { - return updatedAt; - } - - /** - * The date and time when the object was created. - */ - @JsonIgnore - public JsonNullable createdAt() { - return createdAt; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * A unique identifier for an object. - */ - public Variations withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Variations withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Variations withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Variations withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Variations withSku(String sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = Optional.ofNullable(sku); - return this; - } - - public Variations withSku(Optional sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = sku; - return this; - } - - /** - * A unique identifier for an object. - */ - public Variations withItemId(String itemId) { - Utils.checkNotNull(itemId, "itemId"); - this.itemId = Optional.ofNullable(itemId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Variations withItemId(Optional itemId) { - Utils.checkNotNull(itemId, "itemId"); - this.itemId = itemId; - return this; - } - - public Variations withSequence(double sequence) { - Utils.checkNotNull(sequence, "sequence"); - this.sequence = JsonNullable.of(sequence); - return this; - } - - public Variations withSequence(JsonNullable sequence) { - Utils.checkNotNull(sequence, "sequence"); - this.sequence = sequence; - return this; - } - - public Variations withPricingType(ItemPricingType pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = Optional.ofNullable(pricingType); - return this; - } - - public Variations withPricingType(Optional pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = pricingType; - return this; - } - - public Variations withPriceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public Variations withPriceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Variations withPriceCurrency(Currency priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = JsonNullable.of(priceCurrency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Variations withPriceCurrency(JsonNullable priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = priceCurrency; - return this; - } - - public Variations withStockable(boolean stockable) { - Utils.checkNotNull(stockable, "stockable"); - this.stockable = Optional.ofNullable(stockable); - return this; - } - - public Variations withStockable(Optional stockable) { - Utils.checkNotNull(stockable, "stockable"); - this.stockable = stockable; - return this; - } - - public Variations withPresentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public Variations withPresentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - /** - * The user who last updated the object. - */ - public Variations withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - /** - * The user who last updated the object. - */ - public Variations withVersion(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Variations withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Variations withUpdatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Variations withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Variations withCreatedAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Variations other = (Variations) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.sku, other.sku) && - Objects.deepEquals(this.itemId, other.itemId) && - Objects.deepEquals(this.sequence, other.sequence) && - Objects.deepEquals(this.pricingType, other.pricingType) && - Objects.deepEquals(this.priceAmount, other.priceAmount) && - Objects.deepEquals(this.priceCurrency, other.priceCurrency) && - Objects.deepEquals(this.stockable, other.stockable) && - Objects.deepEquals(this.presentAtAllLocations, other.presentAtAllLocations) && - Objects.deepEquals(this.version, other.version) && - Objects.deepEquals(this.updatedAt, other.updatedAt) && - Objects.deepEquals(this.createdAt, other.createdAt); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - name, - sku, - itemId, - sequence, - pricingType, - priceAmount, - priceCurrency, - stockable, - presentAtAllLocations, - version, - updatedAt, - createdAt); - } - - @Override - public String toString() { - return Utils.toString(Variations.class, - "id", id, - "name", name, - "sku", sku, - "itemId", itemId, - "sequence", sequence, - "pricingType", pricingType, - "priceAmount", priceAmount, - "priceCurrency", priceCurrency, - "stockable", stockable, - "presentAtAllLocations", presentAtAllLocations, - "version", version, - "updatedAt", updatedAt, - "createdAt", createdAt); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional sku = Optional.empty(); - - private Optional itemId = Optional.empty(); - - private JsonNullable sequence = JsonNullable.undefined(); - - private Optional pricingType = Optional.empty(); - - private Optional priceAmount = Optional.empty(); - - private JsonNullable priceCurrency = JsonNullable.undefined(); - - private Optional stockable = Optional.empty(); - - private Optional presentAtAllLocations = Optional.empty(); - - private JsonNullable version = JsonNullable.undefined(); - - private JsonNullable updatedAt = JsonNullable.undefined(); - - private JsonNullable createdAt = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * A unique identifier for an object. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder sku(String sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = Optional.ofNullable(sku); - return this; - } - - public Builder sku(Optional sku) { - Utils.checkNotNull(sku, "sku"); - this.sku = sku; - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder itemId(String itemId) { - Utils.checkNotNull(itemId, "itemId"); - this.itemId = Optional.ofNullable(itemId); - return this; - } - - /** - * A unique identifier for an object. - */ - public Builder itemId(Optional itemId) { - Utils.checkNotNull(itemId, "itemId"); - this.itemId = itemId; - return this; - } - - public Builder sequence(double sequence) { - Utils.checkNotNull(sequence, "sequence"); - this.sequence = JsonNullable.of(sequence); - return this; - } - - public Builder sequence(JsonNullable sequence) { - Utils.checkNotNull(sequence, "sequence"); - this.sequence = sequence; - return this; - } - - public Builder pricingType(ItemPricingType pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = Optional.ofNullable(pricingType); - return this; - } - - public Builder pricingType(Optional pricingType) { - Utils.checkNotNull(pricingType, "pricingType"); - this.pricingType = pricingType; - return this; - } - - public Builder priceAmount(double priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = Optional.ofNullable(priceAmount); - return this; - } - - public Builder priceAmount(Optional priceAmount) { - Utils.checkNotNull(priceAmount, "priceAmount"); - this.priceAmount = priceAmount; - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder priceCurrency(Currency priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = JsonNullable.of(priceCurrency); - return this; - } - - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - public Builder priceCurrency(JsonNullable priceCurrency) { - Utils.checkNotNull(priceCurrency, "priceCurrency"); - this.priceCurrency = priceCurrency; - return this; - } - - public Builder stockable(boolean stockable) { - Utils.checkNotNull(stockable, "stockable"); - this.stockable = Optional.ofNullable(stockable); - return this; - } - - public Builder stockable(Optional stockable) { - Utils.checkNotNull(stockable, "stockable"); - this.stockable = stockable; - return this; - } - - public Builder presentAtAllLocations(boolean presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = Optional.ofNullable(presentAtAllLocations); - return this; - } - - public Builder presentAtAllLocations(Optional presentAtAllLocations) { - Utils.checkNotNull(presentAtAllLocations, "presentAtAllLocations"); - this.presentAtAllLocations = presentAtAllLocations; - return this; - } - - /** - * The user who last updated the object. - */ - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = JsonNullable.of(version); - return this; - } - - /** - * The user who last updated the object. - */ - public Builder version(JsonNullable version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = JsonNullable.of(updatedAt); - return this; - } - - /** - * The date and time when the object was last updated. - */ - public Builder updatedAt(JsonNullable updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = JsonNullable.of(createdAt); - return this; - } - - /** - * The date and time when the object was created. - */ - public Builder createdAt(JsonNullable createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public Variations build() { - return new Variations( - id, - name, - sku, - itemId, - sequence, - pricingType, - priceAmount, - priceCurrency, - stockable, - presentAtAllLocations, - version, - updatedAt, - createdAt); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/components/WalletDetails.java b/src/main/java/com/apideck/unify/models/components/WalletDetails.java deleted file mode 100644 index 85af568..0000000 --- a/src/main/java/com/apideck/unify/models/components/WalletDetails.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.components; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; - -/** - * WalletDetails - Wallet details for this payment. This field is currently not available. Reach out to our team for more info. - */ - -public class WalletDetails { - - /** - * The status of the wallet payment. The status can be AUTHORIZED, CAPTURED, VOIDED, or FAILED. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public WalletDetails( - @JsonProperty("status") Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - } - - public WalletDetails() { - this(Optional.empty()); - } - - /** - * The status of the wallet payment. The status can be AUTHORIZED, CAPTURED, VOIDED, or FAILED. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The status of the wallet payment. The status can be AUTHORIZED, CAPTURED, VOIDED, or FAILED. - */ - public WalletDetails withStatus(PosPaymentWalletStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * The status of the wallet payment. The status can be AUTHORIZED, CAPTURED, VOIDED, or FAILED. - */ - public WalletDetails withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WalletDetails other = (WalletDetails) o; - return - Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return Objects.hash( - status); - } - - @Override - public String toString() { - return Utils.toString(WalletDetails.class, - "status", status); - } - - public final static class Builder { - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The status of the wallet payment. The status can be AUTHORIZED, CAPTURED, VOIDED, or FAILED. - */ - public Builder status(PosPaymentWalletStatus status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - /** - * The status of the wallet payment. The status can be AUTHORIZED, CAPTURED, VOIDED, or FAILED. - */ - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public WalletDetails build() { - return new WalletDetails( - status); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/errors/Detail.java b/src/main/java/com/apideck/unify/models/errors/Detail.java index 20228b8..ed314ca 100644 --- a/src/main/java/com/apideck/unify/models/errors/Detail.java +++ b/src/main/java/com/apideck/unify/models/errors/Detail.java @@ -13,9 +13,11 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Objects; /** @@ -37,16 +39,16 @@ public static Detail of(String value) { return new Detail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static Detail of(Two value) { + public static Detail of(Map value) { Utils.checkNotNull(value, "value"); - return new Detail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new Detail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference>(){})); } /** * Returns an instance of one of these types: *
    *
  • {@code java.lang.String}
  • - *
  • {@code com.apideck.unify.models.errors.Two}
  • + *
  • {@code java.util.Map}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -86,8 +88,8 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Detail.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/apideck/unify/models/errors/Detail2.java b/src/main/java/com/apideck/unify/models/errors/Detail2.java deleted file mode 100644 index ee91a8f..0000000 --- a/src/main/java/com/apideck/unify/models/errors/Detail2.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.errors; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - - -public class Detail2 { - - @JsonCreator - public Detail2() { - - - } - - public final static Builder builder() { - return new Builder(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Objects.hash( - ); - } - - @Override - public String toString() { - return Utils.toString(Detail2.class); - } - - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public Detail2 build() { - return new Detail2( - ); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/errors/DetailNotFoundResponse2.java b/src/main/java/com/apideck/unify/models/errors/DetailNotFoundResponse2.java deleted file mode 100644 index a5a6871..0000000 --- a/src/main/java/com/apideck/unify/models/errors/DetailNotFoundResponse2.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.errors; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - - -public class DetailNotFoundResponse2 { - - @JsonCreator - public DetailNotFoundResponse2() { - - - } - - public final static Builder builder() { - return new Builder(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Objects.hash( - ); - } - - @Override - public String toString() { - return Utils.toString(DetailNotFoundResponse2.class); - } - - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public DetailNotFoundResponse2 build() { - return new DetailNotFoundResponse2( - ); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/errors/DetailUnprocessableResponse2.java b/src/main/java/com/apideck/unify/models/errors/DetailUnprocessableResponse2.java deleted file mode 100644 index 94c73ec..0000000 --- a/src/main/java/com/apideck/unify/models/errors/DetailUnprocessableResponse2.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.errors; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - - -public class DetailUnprocessableResponse2 { - - @JsonCreator - public DetailUnprocessableResponse2() { - - - } - - public final static Builder builder() { - return new Builder(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Objects.hash( - ); - } - - @Override - public String toString() { - return Utils.toString(DetailUnprocessableResponse2.class); - } - - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public DetailUnprocessableResponse2 build() { - return new DetailUnprocessableResponse2( - ); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/errors/NotFoundResponseDetail.java b/src/main/java/com/apideck/unify/models/errors/NotFoundResponseDetail.java index 48fad77..2810dfa 100644 --- a/src/main/java/com/apideck/unify/models/errors/NotFoundResponseDetail.java +++ b/src/main/java/com/apideck/unify/models/errors/NotFoundResponseDetail.java @@ -13,9 +13,11 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Objects; /** @@ -37,16 +39,16 @@ public static NotFoundResponseDetail of(String value) { return new NotFoundResponseDetail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static NotFoundResponseDetail of(DetailNotFoundResponse2 value) { + public static NotFoundResponseDetail of(Map value) { Utils.checkNotNull(value, "value"); - return new NotFoundResponseDetail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new NotFoundResponseDetail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference>(){})); } /** * Returns an instance of one of these types: *

    *
  • {@code java.lang.String}
  • - *
  • {@code com.apideck.unify.models.errors.DetailNotFoundResponse2}
  • + *
  • {@code java.util.Map}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -86,8 +88,8 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/apideck/unify/models/errors/Two.java b/src/main/java/com/apideck/unify/models/errors/Two.java deleted file mode 100644 index f444d5d..0000000 --- a/src/main/java/com/apideck/unify/models/errors/Two.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.errors; - - -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; - - -public class Two { - - @JsonCreator - public Two() { - - - } - - public final static Builder builder() { - return new Builder(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Objects.hash( - ); - } - - @Override - public String toString() { - return Utils.toString(Two.class); - } - - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public Two build() { - return new Two( - ); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/errors/UnauthorizedResponseDetail.java b/src/main/java/com/apideck/unify/models/errors/UnauthorizedResponseDetail.java index 8b3abd4..12a85d1 100644 --- a/src/main/java/com/apideck/unify/models/errors/UnauthorizedResponseDetail.java +++ b/src/main/java/com/apideck/unify/models/errors/UnauthorizedResponseDetail.java @@ -13,9 +13,11 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Objects; /** @@ -37,16 +39,16 @@ public static UnauthorizedResponseDetail of(String value) { return new UnauthorizedResponseDetail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static UnauthorizedResponseDetail of(Detail2 value) { + public static UnauthorizedResponseDetail of(Map value) { Utils.checkNotNull(value, "value"); - return new UnauthorizedResponseDetail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new UnauthorizedResponseDetail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference>(){})); } /** * Returns an instance of one of these types: *

    *
  • {@code java.lang.String}
  • - *
  • {@code com.apideck.unify.models.errors.Detail2}
  • + *
  • {@code java.util.Map}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -86,8 +88,8 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/apideck/unify/models/errors/UnprocessableResponseDetail.java b/src/main/java/com/apideck/unify/models/errors/UnprocessableResponseDetail.java index 4809871..0350476 100644 --- a/src/main/java/com/apideck/unify/models/errors/UnprocessableResponseDetail.java +++ b/src/main/java/com/apideck/unify/models/errors/UnprocessableResponseDetail.java @@ -13,9 +13,11 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Objects; /** @@ -37,16 +39,16 @@ public static UnprocessableResponseDetail of(String value) { return new UnprocessableResponseDetail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static UnprocessableResponseDetail of(DetailUnprocessableResponse2 value) { + public static UnprocessableResponseDetail of(Map value) { Utils.checkNotNull(value, "value"); - return new UnprocessableResponseDetail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new UnprocessableResponseDetail(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference>(){})); } /** * Returns an instance of one of these types: *

    *
  • {@code java.lang.String}
  • - *
  • {@code com.apideck.unify.models.errors.DetailUnprocessableResponse2}
  • + *
  • {@code java.util.Map}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -86,8 +88,8 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsAllRequest.java index 87b0fd4..a2e445b 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsAllRequest.java @@ -45,7 +45,7 @@ public class AccountingAttachmentsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -82,7 +82,7 @@ public AccountingAttachmentsAllRequest( AttachmentReferenceType referenceType, String referenceId, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -91,7 +91,7 @@ public AccountingAttachmentsAllRequest( Utils.checkNotNull(referenceType, "referenceType"); Utils.checkNotNull(referenceId, "referenceId"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -100,7 +100,7 @@ public AccountingAttachmentsAllRequest( this.referenceType = referenceType; this.referenceId = referenceId; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -142,8 +142,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -229,18 +229,18 @@ public AccountingAttachmentsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingAttachmentsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingAttachmentsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingAttachmentsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingAttachmentsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -347,7 +347,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.referenceType, other.referenceType) && Objects.deepEquals(this.referenceId, other.referenceId) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -361,7 +361,7 @@ public int hashCode() { referenceType, referenceId, raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -375,7 +375,7 @@ public String toString() { "referenceType", referenceType, "referenceId", referenceId, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -391,7 +391,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -446,18 +446,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -561,7 +561,7 @@ public AccountingAttachmentsAllRequest build() { referenceType, referenceId, raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsDeleteRequest.java index 02d6b42..9ba671a 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsDeleteRequest.java @@ -43,7 +43,7 @@ public class AccountingAttachmentsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -68,21 +68,21 @@ public AccountingAttachmentsDeleteRequest( AttachmentReferenceType referenceType, String referenceId, String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(referenceType, "referenceType"); Utils.checkNotNull(referenceId, "referenceId"); Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.referenceType = referenceType; this.referenceId = referenceId; this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -123,8 +123,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -185,18 +185,18 @@ public AccountingAttachmentsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingAttachmentsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingAttachmentsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingAttachmentsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingAttachmentsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -267,7 +267,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.referenceType, other.referenceType) && Objects.deepEquals(this.referenceId, other.referenceId) && Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -279,7 +279,7 @@ public int hashCode() { referenceType, referenceId, id, - customerId, + consumerId, appId, serviceId, raw); @@ -291,7 +291,7 @@ public String toString() { "referenceType", referenceType, "referenceId", referenceId, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -305,7 +305,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -347,18 +347,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -423,7 +423,7 @@ public AccountingAttachmentsDeleteRequest build() { referenceType, referenceId, id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsDownloadRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsDownloadRequest.java index 25ab14b..62a937a 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsDownloadRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsDownloadRequest.java @@ -41,7 +41,7 @@ public class AccountingAttachmentsDownloadRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -66,21 +66,21 @@ public AccountingAttachmentsDownloadRequest( AttachmentReferenceType referenceType, String referenceId, String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable fields) { Utils.checkNotNull(referenceType, "referenceType"); Utils.checkNotNull(referenceId, "referenceId"); Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(fields, "fields"); this.referenceType = referenceType; this.referenceId = referenceId; this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.fields = fields; @@ -121,8 +121,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -183,18 +183,18 @@ public AccountingAttachmentsDownloadRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingAttachmentsDownloadRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingAttachmentsDownloadRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingAttachmentsDownloadRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingAttachmentsDownloadRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -265,7 +265,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.referenceType, other.referenceType) && Objects.deepEquals(this.referenceId, other.referenceId) && Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.fields, other.fields); @@ -277,7 +277,7 @@ public int hashCode() { referenceType, referenceId, id, - customerId, + consumerId, appId, serviceId, fields); @@ -289,7 +289,7 @@ public String toString() { "referenceType", referenceType, "referenceId", referenceId, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "fields", fields); @@ -303,7 +303,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -345,18 +345,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -419,7 +419,7 @@ public AccountingAttachmentsDownloadRequest build() { referenceType, referenceId, id, - customerId, + consumerId, appId, serviceId, fields); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsOneRequest.java index 7a9734e..976906f 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingAttachmentsOneRequest.java @@ -44,7 +44,7 @@ public class AccountingAttachmentsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -75,7 +75,7 @@ public AccountingAttachmentsOneRequest( AttachmentReferenceType referenceType, String referenceId, String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, @@ -83,7 +83,7 @@ public AccountingAttachmentsOneRequest( Utils.checkNotNull(referenceType, "referenceType"); Utils.checkNotNull(referenceId, "referenceId"); Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); @@ -91,7 +91,7 @@ public AccountingAttachmentsOneRequest( this.referenceType = referenceType; this.referenceId = referenceId; this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -133,8 +133,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -203,18 +203,18 @@ public AccountingAttachmentsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingAttachmentsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingAttachmentsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingAttachmentsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingAttachmentsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -303,7 +303,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.referenceType, other.referenceType) && Objects.deepEquals(this.referenceId, other.referenceId) && Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -316,7 +316,7 @@ public int hashCode() { referenceType, referenceId, id, - customerId, + consumerId, appId, serviceId, raw, @@ -329,7 +329,7 @@ public String toString() { "referenceType", referenceType, "referenceId", referenceId, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -344,7 +344,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -388,18 +388,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -482,7 +482,7 @@ public AccountingAttachmentsOneRequest build() { referenceType, referenceId, id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingBalanceSheetOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingBalanceSheetOneRequest.java index 50bbc3a..a39be61 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingBalanceSheetOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingBalanceSheetOneRequest.java @@ -28,7 +28,7 @@ public class AccountingBalanceSheetOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -62,19 +62,19 @@ public class AccountingBalanceSheetOneRequest { @JsonCreator public AccountingBalanceSheetOneRequest( - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional> passThrough, Optional filter, Optional raw) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(raw, "raw"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.passThrough = passThrough; @@ -90,8 +90,8 @@ public AccountingBalanceSheetOneRequest() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public AccountingBalanceSheetOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingBalanceSheetOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingBalanceSheetOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingBalanceSheetOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -258,7 +258,7 @@ public boolean equals(java.lang.Object o) { } AccountingBalanceSheetOneRequest other = (AccountingBalanceSheetOneRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.passThrough, other.passThrough) && @@ -269,7 +269,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, serviceId, passThrough, @@ -280,7 +280,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(AccountingBalanceSheetOneRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "passThrough", passThrough, @@ -290,7 +290,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -309,18 +309,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -418,7 +418,7 @@ public AccountingBalanceSheetOneRequest build() { if (raw == null) { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingBalanceSheetOneRequest( - customerId, + consumerId, appId, serviceId, passThrough, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsAddRequest.java index 1e0bf6a..7692ed9 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsAddRequest.java @@ -31,7 +31,7 @@ public class AccountingBillPaymentsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingBillPaymentsAddRequest { @JsonCreator public AccountingBillPaymentsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, BillPaymentInput billPayment) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(billPayment, "billPayment"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.billPayment = billPayment; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingBillPaymentsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingBillPaymentsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingBillPaymentsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingBillPaymentsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingBillPaymentsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingBillPaymentsAddRequest other = (AccountingBillPaymentsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.billPayment, other.billPayment); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, billPayment); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingBillPaymentsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "billPayment", billPayment); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingBillPaymentsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingBillPaymentsAddRequest( raw, - customerId, + consumerId, appId, serviceId, billPayment); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsAllRequest.java index 5afa4f9..b2d1745 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsAllRequest.java @@ -37,7 +37,7 @@ public class AccountingBillPaymentsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class AccountingBillPaymentsAllRequest { @JsonCreator public AccountingBillPaymentsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public AccountingBillPaymentsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public AccountingBillPaymentsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public AccountingBillPaymentsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingBillPaymentsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingBillPaymentsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingBillPaymentsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingBillPaymentsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { AccountingBillPaymentsAllRequest other = (AccountingBillPaymentsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingBillPaymentsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public AccountingBillPaymentsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingBillPaymentsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsDeleteRequest.java index 9764049..8473845 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingBillPaymentsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingBillPaymentsDeleteRequest { @JsonCreator public AccountingBillPaymentsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingBillPaymentsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingBillPaymentsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingBillPaymentsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingBillPaymentsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingBillPaymentsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingBillPaymentsDeleteRequest other = (AccountingBillPaymentsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingBillPaymentsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingBillPaymentsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingBillPaymentsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsOneRequest.java index d6d9505..6f12177 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsOneRequest.java @@ -31,7 +31,7 @@ public class AccountingBillPaymentsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingBillPaymentsOneRequest { @JsonCreator public AccountingBillPaymentsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingBillPaymentsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingBillPaymentsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingBillPaymentsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingBillPaymentsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingBillPaymentsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingBillPaymentsOneRequest other = (AccountingBillPaymentsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingBillPaymentsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingBillPaymentsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingBillPaymentsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsUpdateRequest.java index 441758e..5b8ec09 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingBillPaymentsUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingBillPaymentsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingBillPaymentsUpdateRequest { @JsonCreator public AccountingBillPaymentsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, BillPaymentInput billPayment) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(billPayment, "billPayment"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingBillPaymentsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingBillPaymentsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingBillPaymentsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingBillPaymentsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingBillPaymentsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingBillPaymentsUpdateRequest other = (AccountingBillPaymentsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingBillPaymentsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingBillPaymentsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingBillPaymentsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingBillsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingBillsAddRequest.java index be85c1e..7579acc 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingBillsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingBillsAddRequest.java @@ -31,7 +31,7 @@ public class AccountingBillsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingBillsAddRequest { @JsonCreator public AccountingBillsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, BillInput bill) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(bill, "bill"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.bill = bill; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingBillsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingBillsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingBillsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingBillsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingBillsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingBillsAddRequest other = (AccountingBillsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.bill, other.bill); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, bill); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingBillsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "bill", bill); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingBillsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingBillsAddRequest( raw, - customerId, + consumerId, appId, serviceId, bill); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingBillsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingBillsAllRequest.java index 4e4bbdf..1f7852b 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingBillsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingBillsAllRequest.java @@ -37,7 +37,7 @@ public class AccountingBillsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class AccountingBillsAllRequest { @JsonCreator public AccountingBillsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public AccountingBillsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public AccountingBillsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public AccountingBillsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingBillsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingBillsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingBillsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingBillsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { AccountingBillsAllRequest other = (AccountingBillsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingBillsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public AccountingBillsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingBillsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingBillsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingBillsDeleteRequest.java index bb79d8c..1a37f01 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingBillsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingBillsDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingBillsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingBillsDeleteRequest { @JsonCreator public AccountingBillsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingBillsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingBillsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingBillsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingBillsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingBillsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingBillsDeleteRequest other = (AccountingBillsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingBillsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingBillsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingBillsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingBillsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingBillsOneRequest.java index 42ffe4f..453e160 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingBillsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingBillsOneRequest.java @@ -31,7 +31,7 @@ public class AccountingBillsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingBillsOneRequest { @JsonCreator public AccountingBillsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingBillsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingBillsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingBillsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingBillsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingBillsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingBillsOneRequest other = (AccountingBillsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingBillsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingBillsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingBillsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingBillsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingBillsUpdateRequest.java index 057b8c0..48afeb5 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingBillsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingBillsUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingBillsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingBillsUpdateRequest { @JsonCreator public AccountingBillsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, BillInput bill) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(bill, "bill"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingBillsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingBillsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingBillsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingBillsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingBillsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingBillsUpdateRequest other = (AccountingBillsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingBillsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingBillsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingBillsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingCompanyInfoOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingCompanyInfoOneRequest.java index 7bce7ac..be894f5 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingCompanyInfoOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingCompanyInfoOneRequest.java @@ -31,7 +31,7 @@ public class AccountingCompanyInfoOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -54,17 +54,17 @@ public class AccountingCompanyInfoOneRequest { @JsonCreator public AccountingCompanyInfoOneRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.fields = fields; @@ -86,8 +86,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -139,18 +139,18 @@ public AccountingCompanyInfoOneRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingCompanyInfoOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingCompanyInfoOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingCompanyInfoOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingCompanyInfoOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -219,7 +219,7 @@ public boolean equals(java.lang.Object o) { AccountingCompanyInfoOneRequest other = (AccountingCompanyInfoOneRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.fields, other.fields); @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, fields); @@ -239,7 +239,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingCompanyInfoOneRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "fields", fields); @@ -249,7 +249,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -282,18 +282,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -356,7 +356,7 @@ public AccountingCompanyInfoOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingCompanyInfoOneRequest( raw, - customerId, + consumerId, appId, serviceId, fields); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesAddRequest.java index d358291..eff2d7b 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesAddRequest.java @@ -31,7 +31,7 @@ public class AccountingCreditNotesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingCreditNotesAddRequest { @JsonCreator public AccountingCreditNotesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, CreditNoteInput creditNote) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(creditNote, "creditNote"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.creditNote = creditNote; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingCreditNotesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingCreditNotesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingCreditNotesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingCreditNotesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingCreditNotesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingCreditNotesAddRequest other = (AccountingCreditNotesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.creditNote, other.creditNote); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, creditNote); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingCreditNotesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "creditNote", creditNote); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingCreditNotesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingCreditNotesAddRequest( raw, - customerId, + consumerId, appId, serviceId, creditNote); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesAllRequest.java index aa28808..8d6307b 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesAllRequest.java @@ -37,7 +37,7 @@ public class AccountingCreditNotesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class AccountingCreditNotesAllRequest { @JsonCreator public AccountingCreditNotesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public AccountingCreditNotesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public AccountingCreditNotesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public AccountingCreditNotesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingCreditNotesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingCreditNotesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingCreditNotesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingCreditNotesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { AccountingCreditNotesAllRequest other = (AccountingCreditNotesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingCreditNotesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public AccountingCreditNotesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingCreditNotesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesDeleteRequest.java index 3b7f4c6..8619a34 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingCreditNotesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingCreditNotesDeleteRequest { @JsonCreator public AccountingCreditNotesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingCreditNotesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingCreditNotesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingCreditNotesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingCreditNotesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingCreditNotesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingCreditNotesDeleteRequest other = (AccountingCreditNotesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingCreditNotesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingCreditNotesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingCreditNotesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesOneRequest.java index 09ec4f4..e0ed96e 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesOneRequest.java @@ -31,7 +31,7 @@ public class AccountingCreditNotesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingCreditNotesOneRequest { @JsonCreator public AccountingCreditNotesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingCreditNotesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingCreditNotesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingCreditNotesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingCreditNotesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingCreditNotesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingCreditNotesOneRequest other = (AccountingCreditNotesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingCreditNotesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingCreditNotesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingCreditNotesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesUpdateRequest.java index 37c4e21..3614a62 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingCreditNotesUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingCreditNotesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingCreditNotesUpdateRequest { @JsonCreator public AccountingCreditNotesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, CreditNoteInput creditNote) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(creditNote, "creditNote"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingCreditNotesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingCreditNotesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingCreditNotesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingCreditNotesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingCreditNotesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingCreditNotesUpdateRequest other = (AccountingCreditNotesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingCreditNotesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingCreditNotesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingCreditNotesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingCustomersAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingCustomersAddRequest.java index 8ab7f96..53ed8d5 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingCustomersAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingCustomersAddRequest.java @@ -31,7 +31,7 @@ public class AccountingCustomersAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingCustomersAddRequest { @JsonCreator public AccountingCustomersAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, CustomerInput customer) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(customer, "customer"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.customer = customer; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingCustomersAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingCustomersAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingCustomersAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingCustomersAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingCustomersAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingCustomersAddRequest other = (AccountingCustomersAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.customer, other.customer); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, customer); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingCustomersAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "customer", customer); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingCustomersAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingCustomersAddRequest( raw, - customerId, + consumerId, appId, serviceId, customer); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingCustomersAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingCustomersAllRequest.java index d22d14a..33744fb 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingCustomersAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingCustomersAllRequest.java @@ -37,7 +37,7 @@ public class AccountingCustomersAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class AccountingCustomersAllRequest { @JsonCreator public AccountingCustomersAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public AccountingCustomersAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public AccountingCustomersAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public AccountingCustomersAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingCustomersAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingCustomersAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingCustomersAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingCustomersAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { AccountingCustomersAllRequest other = (AccountingCustomersAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingCustomersAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public AccountingCustomersAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingCustomersAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingCustomersDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingCustomersDeleteRequest.java index df81209..d47fa3f 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingCustomersDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingCustomersDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingCustomersDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingCustomersDeleteRequest { @JsonCreator public AccountingCustomersDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingCustomersDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingCustomersDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingCustomersDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingCustomersDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingCustomersDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingCustomersDeleteRequest other = (AccountingCustomersDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingCustomersDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingCustomersDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingCustomersDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingCustomersOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingCustomersOneRequest.java index 30664a4..8b06935 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingCustomersOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingCustomersOneRequest.java @@ -31,7 +31,7 @@ public class AccountingCustomersOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingCustomersOneRequest { @JsonCreator public AccountingCustomersOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingCustomersOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingCustomersOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingCustomersOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingCustomersOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingCustomersOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingCustomersOneRequest other = (AccountingCustomersOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingCustomersOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingCustomersOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingCustomersOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingCustomersUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingCustomersUpdateRequest.java index 802af5e..88615b7 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingCustomersUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingCustomersUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingCustomersUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingCustomersUpdateRequest { @JsonCreator public AccountingCustomersUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, CustomerInput customer) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(customer, "customer"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingCustomersUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingCustomersUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingCustomersUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingCustomersUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingCustomersUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingCustomersUpdateRequest other = (AccountingCustomersUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingCustomersUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingCustomersUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingCustomersUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsAddRequest.java index 07d768d..01f2254 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsAddRequest.java @@ -31,7 +31,7 @@ public class AccountingDepartmentsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingDepartmentsAddRequest { @JsonCreator public AccountingDepartmentsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, AccountingDepartmentInput accountingDepartment) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(accountingDepartment, "accountingDepartment"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.accountingDepartment = accountingDepartment; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingDepartmentsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingDepartmentsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingDepartmentsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingDepartmentsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingDepartmentsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingDepartmentsAddRequest other = (AccountingDepartmentsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.accountingDepartment, other.accountingDepartment); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, accountingDepartment); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingDepartmentsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "accountingDepartment", accountingDepartment); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingDepartmentsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingDepartmentsAddRequest( raw, - customerId, + consumerId, appId, serviceId, accountingDepartment); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsAllRequest.java index a9d1a0c..12441f3 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsAllRequest.java @@ -34,7 +34,7 @@ public class AccountingDepartmentsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -75,7 +75,7 @@ public class AccountingDepartmentsAllRequest { @JsonCreator public AccountingDepartmentsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -83,7 +83,7 @@ public AccountingDepartmentsAllRequest( JsonNullable fields, Optional filter) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -91,7 +91,7 @@ public AccountingDepartmentsAllRequest( Utils.checkNotNull(fields, "fields"); Utils.checkNotNull(filter, "filter"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -116,8 +116,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -194,18 +194,18 @@ public AccountingDepartmentsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingDepartmentsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingDepartmentsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingDepartmentsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingDepartmentsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -328,7 +328,7 @@ public boolean equals(java.lang.Object o) { AccountingDepartmentsAllRequest other = (AccountingDepartmentsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -341,7 +341,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -354,7 +354,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingDepartmentsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -367,7 +367,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -406,18 +406,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -537,7 +537,7 @@ public AccountingDepartmentsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingDepartmentsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsDeleteRequest.java index b5b2207..1353a3a 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingDepartmentsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingDepartmentsDeleteRequest { @JsonCreator public AccountingDepartmentsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingDepartmentsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingDepartmentsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingDepartmentsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingDepartmentsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingDepartmentsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingDepartmentsDeleteRequest other = (AccountingDepartmentsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingDepartmentsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingDepartmentsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingDepartmentsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsOneRequest.java index 91ac4a5..978fcfb 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsOneRequest.java @@ -31,7 +31,7 @@ public class AccountingDepartmentsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingDepartmentsOneRequest { @JsonCreator public AccountingDepartmentsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingDepartmentsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingDepartmentsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingDepartmentsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingDepartmentsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingDepartmentsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingDepartmentsOneRequest other = (AccountingDepartmentsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingDepartmentsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingDepartmentsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingDepartmentsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsUpdateRequest.java index 6e7db7a..1066c08 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingDepartmentsUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingDepartmentsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingDepartmentsUpdateRequest { @JsonCreator public AccountingDepartmentsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, AccountingDepartmentInput accountingDepartment) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(accountingDepartment, "accountingDepartment"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingDepartmentsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingDepartmentsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingDepartmentsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingDepartmentsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingDepartmentsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingDepartmentsUpdateRequest other = (AccountingDepartmentsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingDepartmentsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingDepartmentsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingDepartmentsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingExpensesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingExpensesAddRequest.java index 6f72f83..ee566c6 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingExpensesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingExpensesAddRequest.java @@ -31,7 +31,7 @@ public class AccountingExpensesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingExpensesAddRequest { @JsonCreator public AccountingExpensesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, ExpenseInput expense) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(expense, "expense"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.expense = expense; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingExpensesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingExpensesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingExpensesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingExpensesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingExpensesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingExpensesAddRequest other = (AccountingExpensesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.expense, other.expense); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, expense); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingExpensesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "expense", expense); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingExpensesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingExpensesAddRequest( raw, - customerId, + consumerId, appId, serviceId, expense); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingExpensesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingExpensesAllRequest.java index 034101b..b92779c 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingExpensesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingExpensesAllRequest.java @@ -32,7 +32,7 @@ public class AccountingExpensesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -61,19 +61,19 @@ public class AccountingExpensesAllRequest { @JsonCreator public AccountingExpensesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, Optional limit) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(limit, "limit"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -96,8 +96,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -157,18 +157,18 @@ public AccountingExpensesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingExpensesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingExpensesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingExpensesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingExpensesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -255,7 +255,7 @@ public boolean equals(java.lang.Object o) { AccountingExpensesAllRequest other = (AccountingExpensesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -266,7 +266,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -277,7 +277,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingExpensesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -288,7 +288,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -323,18 +323,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -418,7 +418,7 @@ public AccountingExpensesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingExpensesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingExpensesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingExpensesDeleteRequest.java index 163bb95..76bca53 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingExpensesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingExpensesDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingExpensesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingExpensesDeleteRequest { @JsonCreator public AccountingExpensesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingExpensesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingExpensesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingExpensesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingExpensesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingExpensesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingExpensesDeleteRequest other = (AccountingExpensesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingExpensesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingExpensesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingExpensesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingExpensesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingExpensesOneRequest.java index 1cd481b..d6c486f 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingExpensesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingExpensesOneRequest.java @@ -30,7 +30,7 @@ public class AccountingExpensesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingExpensesOneRequest { @JsonCreator public AccountingExpensesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingExpensesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingExpensesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingExpensesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingExpensesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingExpensesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingExpensesOneRequest other = (AccountingExpensesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingExpensesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingExpensesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingExpensesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingExpensesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingExpensesUpdateRequest.java index 06f3568..c3641e3 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingExpensesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingExpensesUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingExpensesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingExpensesUpdateRequest { @JsonCreator public AccountingExpensesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, ExpenseInput expense) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(expense, "expense"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingExpensesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingExpensesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingExpensesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingExpensesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingExpensesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingExpensesUpdateRequest other = (AccountingExpensesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingExpensesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingExpensesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingExpensesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsAddRequest.java index bf1fa87..e60f586 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsAddRequest.java @@ -31,7 +31,7 @@ public class AccountingInvoiceItemsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingInvoiceItemsAddRequest { @JsonCreator public AccountingInvoiceItemsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, InvoiceItemInput invoiceItem) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(invoiceItem, "invoiceItem"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.invoiceItem = invoiceItem; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingInvoiceItemsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoiceItemsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingInvoiceItemsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoiceItemsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingInvoiceItemsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingInvoiceItemsAddRequest other = (AccountingInvoiceItemsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.invoiceItem, other.invoiceItem); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, invoiceItem); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingInvoiceItemsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "invoiceItem", invoiceItem); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingInvoiceItemsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingInvoiceItemsAddRequest( raw, - customerId, + consumerId, appId, serviceId, invoiceItem); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsAllRequest.java index da20992..e42e8b8 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsAllRequest.java @@ -36,7 +36,7 @@ public class AccountingInvoiceItemsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -83,7 +83,7 @@ public class AccountingInvoiceItemsAllRequest { @JsonCreator public AccountingInvoiceItemsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -92,7 +92,7 @@ public AccountingInvoiceItemsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -101,7 +101,7 @@ public AccountingInvoiceItemsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -127,8 +127,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -214,18 +214,18 @@ public AccountingInvoiceItemsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoiceItemsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingInvoiceItemsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoiceItemsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingInvoiceItemsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -366,7 +366,7 @@ public boolean equals(java.lang.Object o) { AccountingInvoiceItemsAllRequest other = (AccountingInvoiceItemsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -380,7 +380,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -394,7 +394,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingInvoiceItemsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -408,7 +408,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -449,18 +449,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -598,7 +598,7 @@ public AccountingInvoiceItemsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingInvoiceItemsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsDeleteRequest.java index 7371c98..5b59ccc 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingInvoiceItemsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingInvoiceItemsDeleteRequest { @JsonCreator public AccountingInvoiceItemsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingInvoiceItemsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoiceItemsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingInvoiceItemsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoiceItemsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingInvoiceItemsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingInvoiceItemsDeleteRequest other = (AccountingInvoiceItemsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingInvoiceItemsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingInvoiceItemsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingInvoiceItemsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsOneRequest.java index 0cb1db1..5b16b2c 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsOneRequest.java @@ -31,7 +31,7 @@ public class AccountingInvoiceItemsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingInvoiceItemsOneRequest { @JsonCreator public AccountingInvoiceItemsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingInvoiceItemsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoiceItemsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingInvoiceItemsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoiceItemsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingInvoiceItemsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingInvoiceItemsOneRequest other = (AccountingInvoiceItemsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingInvoiceItemsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingInvoiceItemsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingInvoiceItemsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsUpdateRequest.java index dd9265f..3ee3fc3 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingInvoiceItemsUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingInvoiceItemsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingInvoiceItemsUpdateRequest { @JsonCreator public AccountingInvoiceItemsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, InvoiceItemInput invoiceItem) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(invoiceItem, "invoiceItem"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingInvoiceItemsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoiceItemsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingInvoiceItemsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoiceItemsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingInvoiceItemsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingInvoiceItemsUpdateRequest other = (AccountingInvoiceItemsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingInvoiceItemsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingInvoiceItemsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingInvoiceItemsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesAddRequest.java index 32194b5..2bf5c71 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesAddRequest.java @@ -31,7 +31,7 @@ public class AccountingInvoicesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingInvoicesAddRequest { @JsonCreator public AccountingInvoicesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, InvoiceInput invoice) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(invoice, "invoice"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.invoice = invoice; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingInvoicesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoicesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingInvoicesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoicesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingInvoicesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingInvoicesAddRequest other = (AccountingInvoicesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.invoice, other.invoice); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, invoice); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingInvoicesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "invoice", invoice); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingInvoicesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingInvoicesAddRequest( raw, - customerId, + consumerId, appId, serviceId, invoice); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesAllRequest.java index 4bb2a78..c42253d 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesAllRequest.java @@ -37,7 +37,7 @@ public class AccountingInvoicesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class AccountingInvoicesAllRequest { @JsonCreator public AccountingInvoicesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public AccountingInvoicesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public AccountingInvoicesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public AccountingInvoicesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoicesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingInvoicesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoicesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingInvoicesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { AccountingInvoicesAllRequest other = (AccountingInvoicesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingInvoicesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public AccountingInvoicesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingInvoicesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesDeleteRequest.java index b1b4ce0..75205e8 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingInvoicesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingInvoicesDeleteRequest { @JsonCreator public AccountingInvoicesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingInvoicesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoicesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingInvoicesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoicesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingInvoicesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingInvoicesDeleteRequest other = (AccountingInvoicesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingInvoicesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingInvoicesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingInvoicesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesOneRequest.java index d5f350b..615a294 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesOneRequest.java @@ -31,7 +31,7 @@ public class AccountingInvoicesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingInvoicesOneRequest { @JsonCreator public AccountingInvoicesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingInvoicesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoicesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingInvoicesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoicesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingInvoicesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingInvoicesOneRequest other = (AccountingInvoicesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingInvoicesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingInvoicesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingInvoicesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesUpdateRequest.java index 0f61f43..93fb398 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingInvoicesUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingInvoicesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingInvoicesUpdateRequest { @JsonCreator public AccountingInvoicesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, InvoiceInput invoice) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(invoice, "invoice"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingInvoicesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoicesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingInvoicesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingInvoicesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingInvoicesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingInvoicesUpdateRequest other = (AccountingInvoicesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingInvoicesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingInvoicesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingInvoicesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesAddRequest.java index 3ca9daf..62c7f33 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesAddRequest.java @@ -31,7 +31,7 @@ public class AccountingJournalEntriesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingJournalEntriesAddRequest { @JsonCreator public AccountingJournalEntriesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JournalEntryInput journalEntry) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(journalEntry, "journalEntry"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.journalEntry = journalEntry; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingJournalEntriesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingJournalEntriesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingJournalEntriesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingJournalEntriesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingJournalEntriesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingJournalEntriesAddRequest other = (AccountingJournalEntriesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.journalEntry, other.journalEntry); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, journalEntry); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingJournalEntriesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "journalEntry", journalEntry); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingJournalEntriesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingJournalEntriesAddRequest( raw, - customerId, + consumerId, appId, serviceId, journalEntry); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesAllRequest.java index a7125fb..fea4389 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesAllRequest.java @@ -37,7 +37,7 @@ public class AccountingJournalEntriesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class AccountingJournalEntriesAllRequest { @JsonCreator public AccountingJournalEntriesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public AccountingJournalEntriesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public AccountingJournalEntriesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public AccountingJournalEntriesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingJournalEntriesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingJournalEntriesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingJournalEntriesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingJournalEntriesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { AccountingJournalEntriesAllRequest other = (AccountingJournalEntriesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingJournalEntriesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public AccountingJournalEntriesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingJournalEntriesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesDeleteRequest.java index 728ab6e..87068bd 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingJournalEntriesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingJournalEntriesDeleteRequest { @JsonCreator public AccountingJournalEntriesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingJournalEntriesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingJournalEntriesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingJournalEntriesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingJournalEntriesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingJournalEntriesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingJournalEntriesDeleteRequest other = (AccountingJournalEntriesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingJournalEntriesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingJournalEntriesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingJournalEntriesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesOneRequest.java index f9c09cd..dd28f02 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesOneRequest.java @@ -31,7 +31,7 @@ public class AccountingJournalEntriesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingJournalEntriesOneRequest { @JsonCreator public AccountingJournalEntriesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingJournalEntriesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingJournalEntriesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingJournalEntriesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingJournalEntriesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingJournalEntriesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingJournalEntriesOneRequest other = (AccountingJournalEntriesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingJournalEntriesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingJournalEntriesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingJournalEntriesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesUpdateRequest.java index c08728c..82bdae8 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingJournalEntriesUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingJournalEntriesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingJournalEntriesUpdateRequest { @JsonCreator public AccountingJournalEntriesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JournalEntryInput journalEntry) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(journalEntry, "journalEntry"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingJournalEntriesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingJournalEntriesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingJournalEntriesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingJournalEntriesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingJournalEntriesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingJournalEntriesUpdateRequest other = (AccountingJournalEntriesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingJournalEntriesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingJournalEntriesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingJournalEntriesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsAddRequest.java index 686cbe1..f00ac34 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsAddRequest.java @@ -31,7 +31,7 @@ public class AccountingLedgerAccountsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingLedgerAccountsAddRequest { @JsonCreator public AccountingLedgerAccountsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, LedgerAccountInput ledgerAccount) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(ledgerAccount, "ledgerAccount"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.ledgerAccount = ledgerAccount; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingLedgerAccountsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingLedgerAccountsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingLedgerAccountsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingLedgerAccountsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingLedgerAccountsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingLedgerAccountsAddRequest other = (AccountingLedgerAccountsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.ledgerAccount, other.ledgerAccount); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, ledgerAccount); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingLedgerAccountsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "ledgerAccount", ledgerAccount); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingLedgerAccountsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingLedgerAccountsAddRequest( raw, - customerId, + consumerId, appId, serviceId, ledgerAccount); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsAllRequest.java index 0aa553e..825e97c 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsAllRequest.java @@ -37,7 +37,7 @@ public class AccountingLedgerAccountsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class AccountingLedgerAccountsAllRequest { @JsonCreator public AccountingLedgerAccountsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public AccountingLedgerAccountsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public AccountingLedgerAccountsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public AccountingLedgerAccountsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingLedgerAccountsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingLedgerAccountsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingLedgerAccountsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingLedgerAccountsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { AccountingLedgerAccountsAllRequest other = (AccountingLedgerAccountsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingLedgerAccountsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public AccountingLedgerAccountsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingLedgerAccountsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsDeleteRequest.java index 5d92b3b..1362135 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingLedgerAccountsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingLedgerAccountsDeleteRequest { @JsonCreator public AccountingLedgerAccountsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingLedgerAccountsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingLedgerAccountsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingLedgerAccountsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingLedgerAccountsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingLedgerAccountsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingLedgerAccountsDeleteRequest other = (AccountingLedgerAccountsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingLedgerAccountsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingLedgerAccountsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingLedgerAccountsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsOneRequest.java index 9f11ae5..d085117 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsOneRequest.java @@ -31,7 +31,7 @@ public class AccountingLedgerAccountsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingLedgerAccountsOneRequest { @JsonCreator public AccountingLedgerAccountsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingLedgerAccountsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingLedgerAccountsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingLedgerAccountsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingLedgerAccountsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingLedgerAccountsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingLedgerAccountsOneRequest other = (AccountingLedgerAccountsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingLedgerAccountsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingLedgerAccountsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingLedgerAccountsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsUpdateRequest.java index 7c36451..8f929e9 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingLedgerAccountsUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingLedgerAccountsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingLedgerAccountsUpdateRequest { @JsonCreator public AccountingLedgerAccountsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, LedgerAccountInput ledgerAccount) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(ledgerAccount, "ledgerAccount"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingLedgerAccountsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingLedgerAccountsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingLedgerAccountsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingLedgerAccountsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingLedgerAccountsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingLedgerAccountsUpdateRequest other = (AccountingLedgerAccountsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingLedgerAccountsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingLedgerAccountsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingLedgerAccountsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingLocationsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingLocationsAddRequest.java index 215d224..d72962e 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingLocationsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingLocationsAddRequest.java @@ -31,7 +31,7 @@ public class AccountingLocationsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingLocationsAddRequest { @JsonCreator public AccountingLocationsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, AccountingLocationInput accountingLocation) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(accountingLocation, "accountingLocation"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.accountingLocation = accountingLocation; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingLocationsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingLocationsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingLocationsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingLocationsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingLocationsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingLocationsAddRequest other = (AccountingLocationsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.accountingLocation, other.accountingLocation); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, accountingLocation); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingLocationsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "accountingLocation", accountingLocation); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingLocationsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingLocationsAddRequest( raw, - customerId, + consumerId, appId, serviceId, accountingLocation); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingLocationsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingLocationsAllRequest.java index f0e6c26..fcd7da5 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingLocationsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingLocationsAllRequest.java @@ -34,7 +34,7 @@ public class AccountingLocationsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -75,7 +75,7 @@ public class AccountingLocationsAllRequest { @JsonCreator public AccountingLocationsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -83,7 +83,7 @@ public AccountingLocationsAllRequest( JsonNullable fields, Optional filter) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -91,7 +91,7 @@ public AccountingLocationsAllRequest( Utils.checkNotNull(fields, "fields"); Utils.checkNotNull(filter, "filter"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -116,8 +116,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -194,18 +194,18 @@ public AccountingLocationsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingLocationsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingLocationsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingLocationsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingLocationsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -328,7 +328,7 @@ public boolean equals(java.lang.Object o) { AccountingLocationsAllRequest other = (AccountingLocationsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -341,7 +341,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -354,7 +354,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingLocationsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -367,7 +367,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -406,18 +406,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -537,7 +537,7 @@ public AccountingLocationsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingLocationsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingLocationsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingLocationsDeleteRequest.java index 31e1097..2c451d7 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingLocationsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingLocationsDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingLocationsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingLocationsDeleteRequest { @JsonCreator public AccountingLocationsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingLocationsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingLocationsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingLocationsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingLocationsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingLocationsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingLocationsDeleteRequest other = (AccountingLocationsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingLocationsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingLocationsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingLocationsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingLocationsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingLocationsOneRequest.java index 640972c..8c74e24 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingLocationsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingLocationsOneRequest.java @@ -31,7 +31,7 @@ public class AccountingLocationsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingLocationsOneRequest { @JsonCreator public AccountingLocationsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingLocationsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingLocationsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingLocationsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingLocationsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingLocationsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingLocationsOneRequest other = (AccountingLocationsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingLocationsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingLocationsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingLocationsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingLocationsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingLocationsUpdateRequest.java index 8e410e0..673e69d 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingLocationsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingLocationsUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingLocationsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingLocationsUpdateRequest { @JsonCreator public AccountingLocationsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, AccountingLocationInput accountingLocation) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(accountingLocation, "accountingLocation"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingLocationsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingLocationsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingLocationsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingLocationsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingLocationsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingLocationsUpdateRequest other = (AccountingLocationsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingLocationsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingLocationsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingLocationsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsAddRequest.java index ada66ca..53edebb 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsAddRequest.java @@ -31,7 +31,7 @@ public class AccountingPaymentsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingPaymentsAddRequest { @JsonCreator public AccountingPaymentsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, PaymentInput payment) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(payment, "payment"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.payment = payment; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingPaymentsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingPaymentsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingPaymentsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingPaymentsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingPaymentsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingPaymentsAddRequest other = (AccountingPaymentsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.payment, other.payment); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, payment); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingPaymentsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "payment", payment); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingPaymentsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingPaymentsAddRequest( raw, - customerId, + consumerId, appId, serviceId, payment); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsAllRequest.java index a17dcee..e6ab165 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsAllRequest.java @@ -37,7 +37,7 @@ public class AccountingPaymentsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class AccountingPaymentsAllRequest { @JsonCreator public AccountingPaymentsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public AccountingPaymentsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public AccountingPaymentsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public AccountingPaymentsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingPaymentsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingPaymentsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingPaymentsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingPaymentsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { AccountingPaymentsAllRequest other = (AccountingPaymentsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingPaymentsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public AccountingPaymentsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingPaymentsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsDeleteRequest.java index 745d2a5..5a127a2 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingPaymentsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingPaymentsDeleteRequest { @JsonCreator public AccountingPaymentsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingPaymentsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingPaymentsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingPaymentsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingPaymentsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingPaymentsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingPaymentsDeleteRequest other = (AccountingPaymentsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingPaymentsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingPaymentsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingPaymentsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsOneRequest.java index cc44c30..c465f2c 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsOneRequest.java @@ -31,7 +31,7 @@ public class AccountingPaymentsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingPaymentsOneRequest { @JsonCreator public AccountingPaymentsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingPaymentsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingPaymentsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingPaymentsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingPaymentsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingPaymentsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingPaymentsOneRequest other = (AccountingPaymentsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingPaymentsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingPaymentsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingPaymentsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsUpdateRequest.java index 1729a46..a5dc13c 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingPaymentsUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingPaymentsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingPaymentsUpdateRequest { @JsonCreator public AccountingPaymentsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, PaymentInput payment) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(payment, "payment"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingPaymentsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingPaymentsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingPaymentsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingPaymentsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingPaymentsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingPaymentsUpdateRequest other = (AccountingPaymentsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingPaymentsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingPaymentsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingPaymentsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingProfitAndLossOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingProfitAndLossOneRequest.java index 2c8821b..6a1b906 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingProfitAndLossOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingProfitAndLossOneRequest.java @@ -35,7 +35,7 @@ public class AccountingProfitAndLossOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -70,21 +70,21 @@ public class AccountingProfitAndLossOneRequest { @JsonCreator public AccountingProfitAndLossOneRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional filter, Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.filter = filter; @@ -108,8 +108,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -179,18 +179,18 @@ public AccountingProfitAndLossOneRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingProfitAndLossOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingProfitAndLossOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingProfitAndLossOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingProfitAndLossOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -295,7 +295,7 @@ public boolean equals(java.lang.Object o) { AccountingProfitAndLossOneRequest other = (AccountingProfitAndLossOneRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.filter, other.filter) && @@ -307,7 +307,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, filter, @@ -319,7 +319,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingProfitAndLossOneRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "filter", filter, @@ -331,7 +331,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -368,18 +368,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -478,7 +478,7 @@ public AccountingProfitAndLossOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingProfitAndLossOneRequest( raw, - customerId, + consumerId, appId, serviceId, filter, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersAddRequest.java index 1c029af..de698ea 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersAddRequest.java @@ -31,7 +31,7 @@ public class AccountingPurchaseOrdersAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingPurchaseOrdersAddRequest { @JsonCreator public AccountingPurchaseOrdersAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, PurchaseOrderInput purchaseOrder) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(purchaseOrder, "purchaseOrder"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.purchaseOrder = purchaseOrder; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingPurchaseOrdersAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingPurchaseOrdersAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingPurchaseOrdersAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingPurchaseOrdersAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingPurchaseOrdersAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingPurchaseOrdersAddRequest other = (AccountingPurchaseOrdersAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.purchaseOrder, other.purchaseOrder); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, purchaseOrder); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingPurchaseOrdersAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "purchaseOrder", purchaseOrder); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingPurchaseOrdersAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingPurchaseOrdersAddRequest( raw, - customerId, + consumerId, appId, serviceId, purchaseOrder); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersAllRequest.java index 3a0099f..99c92d5 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersAllRequest.java @@ -37,7 +37,7 @@ public class AccountingPurchaseOrdersAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -84,7 +84,7 @@ public class AccountingPurchaseOrdersAllRequest { @JsonCreator public AccountingPurchaseOrdersAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -93,7 +93,7 @@ public AccountingPurchaseOrdersAllRequest( Optional filter, Optional sort) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -102,7 +102,7 @@ public AccountingPurchaseOrdersAllRequest( Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(sort, "sort"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -128,8 +128,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -216,18 +216,18 @@ public AccountingPurchaseOrdersAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingPurchaseOrdersAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingPurchaseOrdersAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingPurchaseOrdersAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingPurchaseOrdersAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public boolean equals(java.lang.Object o) { AccountingPurchaseOrdersAllRequest other = (AccountingPurchaseOrdersAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -382,7 +382,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -396,7 +396,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingPurchaseOrdersAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -410,7 +410,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -451,18 +451,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -600,7 +600,7 @@ public AccountingPurchaseOrdersAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingPurchaseOrdersAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersDeleteRequest.java index a7b65fe..dd8cd97 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingPurchaseOrdersDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingPurchaseOrdersDeleteRequest { @JsonCreator public AccountingPurchaseOrdersDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingPurchaseOrdersDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingPurchaseOrdersDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingPurchaseOrdersDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingPurchaseOrdersDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingPurchaseOrdersDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingPurchaseOrdersDeleteRequest other = (AccountingPurchaseOrdersDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingPurchaseOrdersDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingPurchaseOrdersDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingPurchaseOrdersDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersOneRequest.java index 2f22c57..395c7dc 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersOneRequest.java @@ -30,7 +30,7 @@ public class AccountingPurchaseOrdersOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingPurchaseOrdersOneRequest { @JsonCreator public AccountingPurchaseOrdersOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingPurchaseOrdersOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingPurchaseOrdersOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingPurchaseOrdersOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingPurchaseOrdersOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingPurchaseOrdersOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingPurchaseOrdersOneRequest other = (AccountingPurchaseOrdersOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingPurchaseOrdersOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingPurchaseOrdersOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingPurchaseOrdersOneRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersUpdateRequest.java index 21b8b58..68f275b 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingPurchaseOrdersUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingPurchaseOrdersUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingPurchaseOrdersUpdateRequest { @JsonCreator public AccountingPurchaseOrdersUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, PurchaseOrderInput purchaseOrder) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(purchaseOrder, "purchaseOrder"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingPurchaseOrdersUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingPurchaseOrdersUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingPurchaseOrdersUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingPurchaseOrdersUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingPurchaseOrdersUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingPurchaseOrdersUpdateRequest other = (AccountingPurchaseOrdersUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingPurchaseOrdersUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingPurchaseOrdersUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingPurchaseOrdersUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesAddRequest.java index ee5c5f2..17fa5ac 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesAddRequest.java @@ -31,7 +31,7 @@ public class AccountingSubsidiariesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingSubsidiariesAddRequest { @JsonCreator public AccountingSubsidiariesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, SubsidiaryInput subsidiary) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(subsidiary, "subsidiary"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.subsidiary = subsidiary; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingSubsidiariesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingSubsidiariesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingSubsidiariesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingSubsidiariesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingSubsidiariesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingSubsidiariesAddRequest other = (AccountingSubsidiariesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.subsidiary, other.subsidiary); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, subsidiary); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingSubsidiariesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "subsidiary", subsidiary); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingSubsidiariesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingSubsidiariesAddRequest( raw, - customerId, + consumerId, appId, serviceId, subsidiary); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesAllRequest.java index e00f411..0c515ab 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesAllRequest.java @@ -32,7 +32,7 @@ public class AccountingSubsidiariesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -67,21 +67,21 @@ public class AccountingSubsidiariesAllRequest { @JsonCreator public AccountingSubsidiariesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, Optional limit, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(limit, "limit"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -105,8 +105,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -174,18 +174,18 @@ public AccountingSubsidiariesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingSubsidiariesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingSubsidiariesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingSubsidiariesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingSubsidiariesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -290,7 +290,7 @@ public boolean equals(java.lang.Object o) { AccountingSubsidiariesAllRequest other = (AccountingSubsidiariesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -302,7 +302,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -314,7 +314,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingSubsidiariesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -326,7 +326,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -363,18 +363,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -476,7 +476,7 @@ public AccountingSubsidiariesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingSubsidiariesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesDeleteRequest.java index dad1224..539de19 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingSubsidiariesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingSubsidiariesDeleteRequest { @JsonCreator public AccountingSubsidiariesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingSubsidiariesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingSubsidiariesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingSubsidiariesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingSubsidiariesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingSubsidiariesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingSubsidiariesDeleteRequest other = (AccountingSubsidiariesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingSubsidiariesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingSubsidiariesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingSubsidiariesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesOneRequest.java index fb57952..274a2a8 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesOneRequest.java @@ -31,7 +31,7 @@ public class AccountingSubsidiariesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingSubsidiariesOneRequest { @JsonCreator public AccountingSubsidiariesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingSubsidiariesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingSubsidiariesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingSubsidiariesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingSubsidiariesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingSubsidiariesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingSubsidiariesOneRequest other = (AccountingSubsidiariesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingSubsidiariesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingSubsidiariesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingSubsidiariesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesUpdateRequest.java index 7178799..495f2a7 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingSubsidiariesUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingSubsidiariesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingSubsidiariesUpdateRequest { @JsonCreator public AccountingSubsidiariesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, SubsidiaryInput subsidiary) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(subsidiary, "subsidiary"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingSubsidiariesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingSubsidiariesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingSubsidiariesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingSubsidiariesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingSubsidiariesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingSubsidiariesUpdateRequest other = (AccountingSubsidiariesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingSubsidiariesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingSubsidiariesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingSubsidiariesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersAddRequest.java index f6d6033..91f5594 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersAddRequest.java @@ -31,7 +31,7 @@ public class AccountingSuppliersAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingSuppliersAddRequest { @JsonCreator public AccountingSuppliersAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, SupplierInput supplier) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(supplier, "supplier"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.supplier = supplier; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingSuppliersAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingSuppliersAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingSuppliersAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingSuppliersAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingSuppliersAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingSuppliersAddRequest other = (AccountingSuppliersAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.supplier, other.supplier); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, supplier); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingSuppliersAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "supplier", supplier); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingSuppliersAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingSuppliersAddRequest( raw, - customerId, + consumerId, appId, serviceId, supplier); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersAllRequest.java index 1b85826..910cc5f 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersAllRequest.java @@ -37,7 +37,7 @@ public class AccountingSuppliersAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class AccountingSuppliersAllRequest { @JsonCreator public AccountingSuppliersAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public AccountingSuppliersAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public AccountingSuppliersAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public AccountingSuppliersAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingSuppliersAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingSuppliersAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingSuppliersAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingSuppliersAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { AccountingSuppliersAllRequest other = (AccountingSuppliersAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingSuppliersAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public AccountingSuppliersAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingSuppliersAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersDeleteRequest.java index 9a73169..6794ed9 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingSuppliersDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingSuppliersDeleteRequest { @JsonCreator public AccountingSuppliersDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingSuppliersDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingSuppliersDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingSuppliersDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingSuppliersDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingSuppliersDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingSuppliersDeleteRequest other = (AccountingSuppliersDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingSuppliersDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingSuppliersDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingSuppliersDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersOneRequest.java index 1601523..6a011ee 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersOneRequest.java @@ -31,7 +31,7 @@ public class AccountingSuppliersOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingSuppliersOneRequest { @JsonCreator public AccountingSuppliersOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingSuppliersOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingSuppliersOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingSuppliersOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingSuppliersOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingSuppliersOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingSuppliersOneRequest other = (AccountingSuppliersOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingSuppliersOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingSuppliersOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingSuppliersOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersUpdateRequest.java index 6daee7c..487c58f 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingSuppliersUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingSuppliersUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingSuppliersUpdateRequest { @JsonCreator public AccountingSuppliersUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, SupplierInput supplier) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(supplier, "supplier"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingSuppliersUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingSuppliersUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingSuppliersUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingSuppliersUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingSuppliersUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingSuppliersUpdateRequest other = (AccountingSuppliersUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingSuppliersUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingSuppliersUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingSuppliersUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesAddRequest.java index cd5b271..5d913e9 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesAddRequest.java @@ -31,7 +31,7 @@ public class AccountingTaxRatesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingTaxRatesAddRequest { @JsonCreator public AccountingTaxRatesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, TaxRateInput taxRate) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(taxRate, "taxRate"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.taxRate = taxRate; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingTaxRatesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingTaxRatesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingTaxRatesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingTaxRatesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingTaxRatesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingTaxRatesAddRequest other = (AccountingTaxRatesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.taxRate, other.taxRate); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, taxRate); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingTaxRatesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "taxRate", taxRate); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingTaxRatesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingTaxRatesAddRequest( raw, - customerId, + consumerId, appId, serviceId, taxRate); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesAllRequest.java index 8e29b53..329f663 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesAllRequest.java @@ -36,7 +36,7 @@ public class AccountingTaxRatesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -83,7 +83,7 @@ public class AccountingTaxRatesAllRequest { @JsonCreator public AccountingTaxRatesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -92,7 +92,7 @@ public AccountingTaxRatesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -101,7 +101,7 @@ public AccountingTaxRatesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -127,8 +127,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -214,18 +214,18 @@ public AccountingTaxRatesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingTaxRatesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingTaxRatesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingTaxRatesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingTaxRatesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -366,7 +366,7 @@ public boolean equals(java.lang.Object o) { AccountingTaxRatesAllRequest other = (AccountingTaxRatesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -380,7 +380,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -394,7 +394,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingTaxRatesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -408,7 +408,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -449,18 +449,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -598,7 +598,7 @@ public AccountingTaxRatesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingTaxRatesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesDeleteRequest.java index e252945..66649c4 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingTaxRatesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingTaxRatesDeleteRequest { @JsonCreator public AccountingTaxRatesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingTaxRatesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingTaxRatesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingTaxRatesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingTaxRatesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingTaxRatesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingTaxRatesDeleteRequest other = (AccountingTaxRatesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingTaxRatesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingTaxRatesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingTaxRatesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesOneRequest.java index 5704d17..d5ca2a7 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesOneRequest.java @@ -31,7 +31,7 @@ public class AccountingTaxRatesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingTaxRatesOneRequest { @JsonCreator public AccountingTaxRatesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingTaxRatesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingTaxRatesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingTaxRatesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingTaxRatesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingTaxRatesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingTaxRatesOneRequest other = (AccountingTaxRatesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingTaxRatesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingTaxRatesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingTaxRatesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesUpdateRequest.java index 685a91f..bc2c507 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingTaxRatesUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingTaxRatesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingTaxRatesUpdateRequest { @JsonCreator public AccountingTaxRatesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, TaxRateInput taxRate) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(taxRate, "taxRate"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingTaxRatesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingTaxRatesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingTaxRatesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingTaxRatesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingTaxRatesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingTaxRatesUpdateRequest other = (AccountingTaxRatesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingTaxRatesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingTaxRatesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingTaxRatesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesAddRequest.java index ae5b797..d8ab88c 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesAddRequest.java @@ -31,7 +31,7 @@ public class AccountingTrackingCategoriesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AccountingTrackingCategoriesAddRequest { @JsonCreator public AccountingTrackingCategoriesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, TrackingCategoryInput trackingCategory) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(trackingCategory, "trackingCategory"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.trackingCategory = trackingCategory; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AccountingTrackingCategoriesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingTrackingCategoriesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingTrackingCategoriesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingTrackingCategoriesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingTrackingCategoriesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AccountingTrackingCategoriesAddRequest other = (AccountingTrackingCategoriesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.trackingCategory, other.trackingCategory); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, trackingCategory); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingTrackingCategoriesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "trackingCategory", trackingCategory); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AccountingTrackingCategoriesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingTrackingCategoriesAddRequest( raw, - customerId, + consumerId, appId, serviceId, trackingCategory); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesAllRequest.java index 48a094a..4d421a8 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesAllRequest.java @@ -35,7 +35,7 @@ public class AccountingTrackingCategoriesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -76,7 +76,7 @@ public class AccountingTrackingCategoriesAllRequest { @JsonCreator public AccountingTrackingCategoriesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -84,7 +84,7 @@ public AccountingTrackingCategoriesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -92,7 +92,7 @@ public AccountingTrackingCategoriesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -117,8 +117,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -195,18 +195,18 @@ public AccountingTrackingCategoriesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AccountingTrackingCategoriesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingTrackingCategoriesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingTrackingCategoriesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingTrackingCategoriesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -329,7 +329,7 @@ public boolean equals(java.lang.Object o) { AccountingTrackingCategoriesAllRequest other = (AccountingTrackingCategoriesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -342,7 +342,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -355,7 +355,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingTrackingCategoriesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -368,7 +368,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -407,18 +407,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -538,7 +538,7 @@ public AccountingTrackingCategoriesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AccountingTrackingCategoriesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesDeleteRequest.java index 328a764..88cf728 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesDeleteRequest.java @@ -30,7 +30,7 @@ public class AccountingTrackingCategoriesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AccountingTrackingCategoriesDeleteRequest { @JsonCreator public AccountingTrackingCategoriesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AccountingTrackingCategoriesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingTrackingCategoriesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingTrackingCategoriesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingTrackingCategoriesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingTrackingCategoriesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AccountingTrackingCategoriesDeleteRequest other = (AccountingTrackingCategoriesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingTrackingCategoriesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AccountingTrackingCategoriesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingTrackingCategoriesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesOneRequest.java index f94068c..f59cd67 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesOneRequest.java @@ -31,7 +31,7 @@ public class AccountingTrackingCategoriesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AccountingTrackingCategoriesOneRequest { @JsonCreator public AccountingTrackingCategoriesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AccountingTrackingCategoriesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingTrackingCategoriesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingTrackingCategoriesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingTrackingCategoriesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingTrackingCategoriesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AccountingTrackingCategoriesOneRequest other = (AccountingTrackingCategoriesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingTrackingCategoriesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AccountingTrackingCategoriesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingTrackingCategoriesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesUpdateRequest.java index 77518ac..e118688 100644 --- a/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AccountingTrackingCategoriesUpdateRequest.java @@ -31,7 +31,7 @@ public class AccountingTrackingCategoriesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AccountingTrackingCategoriesUpdateRequest { @JsonCreator public AccountingTrackingCategoriesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, TrackingCategoryInput trackingCategory) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(trackingCategory, "trackingCategory"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AccountingTrackingCategoriesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AccountingTrackingCategoriesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AccountingTrackingCategoriesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AccountingTrackingCategoriesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AccountingTrackingCategoriesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AccountingTrackingCategoriesUpdateRequest other = (AccountingTrackingCategoriesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AccountingTrackingCategoriesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AccountingTrackingCategoriesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AccountingTrackingCategoriesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AtsApplicantsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsApplicantsAddRequest.java index 108a7af..2fca991 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsApplicantsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsApplicantsAddRequest.java @@ -31,7 +31,7 @@ public class AtsApplicantsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AtsApplicantsAddRequest { @JsonCreator public AtsApplicantsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, ApplicantInput applicant) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(applicant, "applicant"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.applicant = applicant; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AtsApplicantsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AtsApplicantsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsApplicantsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsApplicantsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsApplicantsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AtsApplicantsAddRequest other = (AtsApplicantsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.applicant, other.applicant); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, applicant); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsApplicantsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "applicant", applicant); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AtsApplicantsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AtsApplicantsAddRequest( raw, - customerId, + consumerId, appId, serviceId, applicant); diff --git a/src/main/java/com/apideck/unify/models/operations/AtsApplicantsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsApplicantsAllRequest.java index 55f2476..12f6689 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsApplicantsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsApplicantsAllRequest.java @@ -36,7 +36,7 @@ public class AtsApplicantsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -83,7 +83,7 @@ public class AtsApplicantsAllRequest { @JsonCreator public AtsApplicantsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -92,7 +92,7 @@ public AtsApplicantsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -101,7 +101,7 @@ public AtsApplicantsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -127,8 +127,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -214,18 +214,18 @@ public AtsApplicantsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AtsApplicantsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsApplicantsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsApplicantsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsApplicantsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -366,7 +366,7 @@ public boolean equals(java.lang.Object o) { AtsApplicantsAllRequest other = (AtsApplicantsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -380,7 +380,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -394,7 +394,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsApplicantsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -408,7 +408,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -449,18 +449,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -598,7 +598,7 @@ public AtsApplicantsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AtsApplicantsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AtsApplicantsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsApplicantsDeleteRequest.java index da090b1..49fb782 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsApplicantsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsApplicantsDeleteRequest.java @@ -30,7 +30,7 @@ public class AtsApplicantsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AtsApplicantsDeleteRequest { @JsonCreator public AtsApplicantsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AtsApplicantsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AtsApplicantsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsApplicantsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsApplicantsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsApplicantsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AtsApplicantsDeleteRequest other = (AtsApplicantsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsApplicantsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AtsApplicantsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AtsApplicantsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AtsApplicantsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsApplicantsOneRequest.java index 988d3c4..9377f2a 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsApplicantsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsApplicantsOneRequest.java @@ -31,7 +31,7 @@ public class AtsApplicantsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AtsApplicantsOneRequest { @JsonCreator public AtsApplicantsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AtsApplicantsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AtsApplicantsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsApplicantsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsApplicantsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsApplicantsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AtsApplicantsOneRequest other = (AtsApplicantsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsApplicantsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AtsApplicantsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AtsApplicantsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AtsApplicantsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsApplicantsUpdateRequest.java index a546471..89b02f9 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsApplicantsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsApplicantsUpdateRequest.java @@ -31,7 +31,7 @@ public class AtsApplicantsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AtsApplicantsUpdateRequest { @JsonCreator public AtsApplicantsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, ApplicantInput applicant) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(applicant, "applicant"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AtsApplicantsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AtsApplicantsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsApplicantsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsApplicantsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsApplicantsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AtsApplicantsUpdateRequest other = (AtsApplicantsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsApplicantsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AtsApplicantsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AtsApplicantsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AtsApplicationsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsApplicationsAddRequest.java index 56ff862..d2d6219 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsApplicationsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsApplicationsAddRequest.java @@ -31,7 +31,7 @@ public class AtsApplicationsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class AtsApplicationsAddRequest { @JsonCreator public AtsApplicationsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, ApplicationInput application) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(application, "application"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.application = application; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public AtsApplicationsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AtsApplicationsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsApplicationsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsApplicationsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsApplicationsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { AtsApplicationsAddRequest other = (AtsApplicationsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.application, other.application); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, application); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsApplicationsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "application", application); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public AtsApplicationsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AtsApplicationsAddRequest( raw, - customerId, + consumerId, appId, serviceId, application); diff --git a/src/main/java/com/apideck/unify/models/operations/AtsApplicationsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsApplicationsAllRequest.java index a87c87b..ec88a94 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsApplicationsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsApplicationsAllRequest.java @@ -35,7 +35,7 @@ public class AtsApplicationsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -70,21 +70,21 @@ public class AtsApplicationsAllRequest { @JsonCreator public AtsApplicationsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, Optional> passThrough, Optional limit) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(limit, "limit"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -108,8 +108,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -178,18 +178,18 @@ public AtsApplicationsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AtsApplicationsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsApplicationsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsApplicationsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsApplicationsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -294,7 +294,7 @@ public boolean equals(java.lang.Object o) { AtsApplicationsAllRequest other = (AtsApplicationsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -306,7 +306,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -318,7 +318,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsApplicationsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -330,7 +330,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -367,18 +367,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -480,7 +480,7 @@ public AtsApplicationsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AtsApplicationsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AtsApplicationsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsApplicationsDeleteRequest.java index f4baaf5..a4a9c85 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsApplicationsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsApplicationsDeleteRequest.java @@ -30,7 +30,7 @@ public class AtsApplicationsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AtsApplicationsDeleteRequest { @JsonCreator public AtsApplicationsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AtsApplicationsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AtsApplicationsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsApplicationsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsApplicationsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsApplicationsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AtsApplicationsDeleteRequest other = (AtsApplicationsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsApplicationsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AtsApplicationsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AtsApplicationsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AtsApplicationsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsApplicationsOneRequest.java index 24ab482..0a63649 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsApplicationsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsApplicationsOneRequest.java @@ -30,7 +30,7 @@ public class AtsApplicationsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class AtsApplicationsOneRequest { @JsonCreator public AtsApplicationsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public AtsApplicationsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AtsApplicationsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsApplicationsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsApplicationsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsApplicationsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { AtsApplicationsOneRequest other = (AtsApplicationsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsApplicationsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public AtsApplicationsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AtsApplicationsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/AtsApplicationsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsApplicationsUpdateRequest.java index 0dd7bce..f299929 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsApplicationsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsApplicationsUpdateRequest.java @@ -31,7 +31,7 @@ public class AtsApplicationsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class AtsApplicationsUpdateRequest { @JsonCreator public AtsApplicationsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, ApplicationInput application) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(application, "application"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public AtsApplicationsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AtsApplicationsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsApplicationsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsApplicationsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsApplicationsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { AtsApplicationsUpdateRequest other = (AtsApplicationsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsApplicationsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public AtsApplicationsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AtsApplicationsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/AtsJobsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsJobsAllRequest.java index a90b19f..7efbc9e 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsJobsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsJobsAllRequest.java @@ -35,7 +35,7 @@ public class AtsJobsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -76,7 +76,7 @@ public class AtsJobsAllRequest { @JsonCreator public AtsJobsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -84,7 +84,7 @@ public AtsJobsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -92,7 +92,7 @@ public AtsJobsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -117,8 +117,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -195,18 +195,18 @@ public AtsJobsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public AtsJobsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsJobsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsJobsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsJobsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -329,7 +329,7 @@ public boolean equals(java.lang.Object o) { AtsJobsAllRequest other = (AtsJobsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -342,7 +342,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -355,7 +355,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsJobsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -368,7 +368,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -407,18 +407,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -538,7 +538,7 @@ public AtsJobsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new AtsJobsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/AtsJobsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/AtsJobsOneRequest.java index c6f8aa7..465ec74 100644 --- a/src/main/java/com/apideck/unify/models/operations/AtsJobsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/AtsJobsOneRequest.java @@ -31,7 +31,7 @@ public class AtsJobsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class AtsJobsOneRequest { @JsonCreator public AtsJobsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public AtsJobsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public AtsJobsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public AtsJobsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public AtsJobsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public AtsJobsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { AtsJobsOneRequest other = (AtsJobsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(AtsJobsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public AtsJobsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new AtsJobsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmActivitiesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmActivitiesAddRequest.java index 39eb50b..ad47009 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmActivitiesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmActivitiesAddRequest.java @@ -31,7 +31,7 @@ public class CrmActivitiesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class CrmActivitiesAddRequest { @JsonCreator public CrmActivitiesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, ActivityInput activity) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(activity, "activity"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.activity = activity; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public CrmActivitiesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmActivitiesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmActivitiesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmActivitiesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmActivitiesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { CrmActivitiesAddRequest other = (CrmActivitiesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.activity, other.activity); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, activity); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmActivitiesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "activity", activity); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public CrmActivitiesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmActivitiesAddRequest( raw, - customerId, + consumerId, appId, serviceId, activity); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmActivitiesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmActivitiesAllRequest.java index 4b84d98..3d1da71 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmActivitiesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmActivitiesAllRequest.java @@ -37,7 +37,7 @@ public class CrmActivitiesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class CrmActivitiesAllRequest { @JsonCreator public CrmActivitiesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public CrmActivitiesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public CrmActivitiesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public CrmActivitiesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmActivitiesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmActivitiesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmActivitiesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmActivitiesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { CrmActivitiesAllRequest other = (CrmActivitiesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmActivitiesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public CrmActivitiesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new CrmActivitiesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmActivitiesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmActivitiesDeleteRequest.java index a136dc2..d4153a3 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmActivitiesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmActivitiesDeleteRequest.java @@ -30,7 +30,7 @@ public class CrmActivitiesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class CrmActivitiesDeleteRequest { @JsonCreator public CrmActivitiesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public CrmActivitiesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmActivitiesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmActivitiesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmActivitiesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmActivitiesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { CrmActivitiesDeleteRequest other = (CrmActivitiesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmActivitiesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public CrmActivitiesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmActivitiesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmActivitiesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmActivitiesOneRequest.java index c1144bd..0e26630 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmActivitiesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmActivitiesOneRequest.java @@ -31,7 +31,7 @@ public class CrmActivitiesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class CrmActivitiesOneRequest { @JsonCreator public CrmActivitiesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public CrmActivitiesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmActivitiesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmActivitiesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmActivitiesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmActivitiesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { CrmActivitiesOneRequest other = (CrmActivitiesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmActivitiesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public CrmActivitiesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmActivitiesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmActivitiesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmActivitiesUpdateRequest.java index a49f9c9..bf0e291 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmActivitiesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmActivitiesUpdateRequest.java @@ -31,7 +31,7 @@ public class CrmActivitiesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class CrmActivitiesUpdateRequest { @JsonCreator public CrmActivitiesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, ActivityInput activity) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(activity, "activity"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public CrmActivitiesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmActivitiesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmActivitiesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmActivitiesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmActivitiesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { CrmActivitiesUpdateRequest other = (CrmActivitiesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmActivitiesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public CrmActivitiesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmActivitiesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmCompaniesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmCompaniesAddRequest.java index 9845ac9..1a627ee 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmCompaniesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmCompaniesAddRequest.java @@ -31,7 +31,7 @@ public class CrmCompaniesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class CrmCompaniesAddRequest { @JsonCreator public CrmCompaniesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, CompanyInput company) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(company, "company"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.company = company; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public CrmCompaniesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmCompaniesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmCompaniesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmCompaniesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmCompaniesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { CrmCompaniesAddRequest other = (CrmCompaniesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.company, other.company); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, company); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmCompaniesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "company", company); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public CrmCompaniesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmCompaniesAddRequest( raw, - customerId, + consumerId, appId, serviceId, company); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmCompaniesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmCompaniesAllRequest.java index 413c3a8..a218da2 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmCompaniesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmCompaniesAllRequest.java @@ -37,7 +37,7 @@ public class CrmCompaniesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class CrmCompaniesAllRequest { @JsonCreator public CrmCompaniesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public CrmCompaniesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public CrmCompaniesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public CrmCompaniesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmCompaniesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmCompaniesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmCompaniesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmCompaniesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { CrmCompaniesAllRequest other = (CrmCompaniesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmCompaniesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public CrmCompaniesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new CrmCompaniesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmCompaniesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmCompaniesDeleteRequest.java index 6a21db6..e65ff40 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmCompaniesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmCompaniesDeleteRequest.java @@ -36,7 +36,7 @@ public class CrmCompaniesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -54,17 +54,17 @@ public class CrmCompaniesDeleteRequest { public CrmCompaniesDeleteRequest( String id, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); this.id = id; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; } @@ -94,8 +94,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public CrmCompaniesDeleteRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmCompaniesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmCompaniesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmCompaniesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmCompaniesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -211,7 +211,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.id, other.id) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId); } @@ -221,7 +221,7 @@ public int hashCode() { return Objects.hash( id, raw, - customerId, + consumerId, appId, serviceId); } @@ -231,7 +231,7 @@ public String toString() { return Utils.toString(CrmCompaniesDeleteRequest.class, "id", id, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId); } @@ -242,7 +242,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -282,18 +282,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -339,7 +339,7 @@ public CrmCompaniesDeleteRequest build() { } return new CrmCompaniesDeleteRequest( id, raw, - customerId, + consumerId, appId, serviceId); } diff --git a/src/main/java/com/apideck/unify/models/operations/CrmCompaniesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmCompaniesOneRequest.java index d5c6d58..1268066 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmCompaniesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmCompaniesOneRequest.java @@ -37,7 +37,7 @@ public class CrmCompaniesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -61,19 +61,19 @@ public class CrmCompaniesOneRequest { public CrmCompaniesOneRequest( String id, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable fields) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(fields, "fields"); this.id = id; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.fields = fields; @@ -104,8 +104,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -166,18 +166,18 @@ public CrmCompaniesOneRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmCompaniesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmCompaniesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmCompaniesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmCompaniesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -247,7 +247,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.id, other.id) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.fields, other.fields); @@ -258,7 +258,7 @@ public int hashCode() { return Objects.hash( id, raw, - customerId, + consumerId, appId, serviceId, fields); @@ -269,7 +269,7 @@ public String toString() { return Utils.toString(CrmCompaniesOneRequest.class, "id", id, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "fields", fields); @@ -281,7 +281,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -323,18 +323,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -398,7 +398,7 @@ public CrmCompaniesOneRequest build() { } return new CrmCompaniesOneRequest( id, raw, - customerId, + consumerId, appId, serviceId, fields); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmCompaniesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmCompaniesUpdateRequest.java index 690ccbe..436b469 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmCompaniesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmCompaniesUpdateRequest.java @@ -37,7 +37,7 @@ public class CrmCompaniesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -58,19 +58,19 @@ public class CrmCompaniesUpdateRequest { public CrmCompaniesUpdateRequest( String id, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, CompanyInput company) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(company, "company"); this.id = id; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.company = company; @@ -102,8 +102,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -161,18 +161,18 @@ public CrmCompaniesUpdateRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmCompaniesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmCompaniesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmCompaniesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmCompaniesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -230,7 +230,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.id, other.id) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.company, other.company); @@ -241,7 +241,7 @@ public int hashCode() { return Objects.hash( id, raw, - customerId, + consumerId, appId, serviceId, company); @@ -252,7 +252,7 @@ public String toString() { return Utils.toString(CrmCompaniesUpdateRequest.class, "id", id, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "company", company); @@ -264,7 +264,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -306,18 +306,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -369,7 +369,7 @@ public CrmCompaniesUpdateRequest build() { } return new CrmCompaniesUpdateRequest( id, raw, - customerId, + consumerId, appId, serviceId, company); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmContactsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmContactsAddRequest.java index a6e2c4f..afd4d29 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmContactsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmContactsAddRequest.java @@ -31,7 +31,7 @@ public class CrmContactsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class CrmContactsAddRequest { @JsonCreator public CrmContactsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, ContactInput contact) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(contact, "contact"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.contact = contact; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public CrmContactsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmContactsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmContactsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmContactsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmContactsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { CrmContactsAddRequest other = (CrmContactsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.contact, other.contact); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, contact); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmContactsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "contact", contact); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public CrmContactsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmContactsAddRequest( raw, - customerId, + consumerId, appId, serviceId, contact); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmContactsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmContactsAllRequest.java index 3760de7..fb92acc 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmContactsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmContactsAllRequest.java @@ -37,7 +37,7 @@ public class CrmContactsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class CrmContactsAllRequest { @JsonCreator public CrmContactsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public CrmContactsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public CrmContactsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public CrmContactsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmContactsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmContactsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmContactsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmContactsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { CrmContactsAllRequest other = (CrmContactsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmContactsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public CrmContactsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new CrmContactsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmContactsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmContactsDeleteRequest.java index 63b3e62..73153cd 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmContactsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmContactsDeleteRequest.java @@ -30,7 +30,7 @@ public class CrmContactsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class CrmContactsDeleteRequest { @JsonCreator public CrmContactsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public CrmContactsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmContactsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmContactsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmContactsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmContactsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { CrmContactsDeleteRequest other = (CrmContactsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmContactsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public CrmContactsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmContactsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmContactsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmContactsOneRequest.java index bf07ed2..50a8356 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmContactsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmContactsOneRequest.java @@ -33,7 +33,7 @@ public class CrmContactsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -68,21 +68,21 @@ public class CrmContactsOneRequest { @JsonCreator public CrmContactsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields, Optional filter) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); Utils.checkNotNull(filter, "filter"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -107,8 +107,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -168,18 +168,18 @@ public CrmContactsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmContactsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmContactsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmContactsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmContactsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -284,7 +284,7 @@ public boolean equals(java.lang.Object o) { CrmContactsOneRequest other = (CrmContactsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -296,7 +296,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -308,7 +308,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmContactsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -320,7 +320,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -348,18 +348,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -458,7 +458,7 @@ public CrmContactsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmContactsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmContactsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmContactsUpdateRequest.java index b0e3fdd..71296c5 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmContactsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmContactsUpdateRequest.java @@ -31,7 +31,7 @@ public class CrmContactsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class CrmContactsUpdateRequest { @JsonCreator public CrmContactsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, ContactInput contact) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(contact, "contact"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public CrmContactsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmContactsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmContactsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmContactsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmContactsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { CrmContactsUpdateRequest other = (CrmContactsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmContactsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public CrmContactsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmContactsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmLeadsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmLeadsAddRequest.java index 54732b5..b4e6046 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmLeadsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmLeadsAddRequest.java @@ -31,7 +31,7 @@ public class CrmLeadsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class CrmLeadsAddRequest { @JsonCreator public CrmLeadsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, LeadInput lead) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(lead, "lead"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.lead = lead; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public CrmLeadsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmLeadsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmLeadsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmLeadsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmLeadsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { CrmLeadsAddRequest other = (CrmLeadsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.lead, other.lead); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, lead); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmLeadsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "lead", lead); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public CrmLeadsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmLeadsAddRequest( raw, - customerId, + consumerId, appId, serviceId, lead); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmLeadsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmLeadsAllRequest.java index a8b253b..ea49edc 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmLeadsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmLeadsAllRequest.java @@ -37,7 +37,7 @@ public class CrmLeadsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class CrmLeadsAllRequest { @JsonCreator public CrmLeadsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public CrmLeadsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public CrmLeadsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public CrmLeadsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmLeadsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmLeadsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmLeadsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmLeadsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { CrmLeadsAllRequest other = (CrmLeadsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmLeadsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public CrmLeadsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new CrmLeadsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmLeadsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmLeadsDeleteRequest.java index 4439e42..fa157b7 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmLeadsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmLeadsDeleteRequest.java @@ -30,7 +30,7 @@ public class CrmLeadsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class CrmLeadsDeleteRequest { @JsonCreator public CrmLeadsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public CrmLeadsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmLeadsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmLeadsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmLeadsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmLeadsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { CrmLeadsDeleteRequest other = (CrmLeadsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmLeadsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public CrmLeadsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmLeadsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmLeadsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmLeadsOneRequest.java index 0c3a9b3..f062c00 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmLeadsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmLeadsOneRequest.java @@ -31,7 +31,7 @@ public class CrmLeadsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class CrmLeadsOneRequest { @JsonCreator public CrmLeadsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public CrmLeadsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmLeadsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmLeadsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmLeadsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmLeadsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { CrmLeadsOneRequest other = (CrmLeadsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmLeadsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public CrmLeadsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmLeadsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmLeadsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmLeadsUpdateRequest.java index 89a4937..4e82c63 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmLeadsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmLeadsUpdateRequest.java @@ -31,7 +31,7 @@ public class CrmLeadsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class CrmLeadsUpdateRequest { @JsonCreator public CrmLeadsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, LeadInput lead) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(lead, "lead"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public CrmLeadsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmLeadsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmLeadsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmLeadsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmLeadsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { CrmLeadsUpdateRequest other = (CrmLeadsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmLeadsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public CrmLeadsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmLeadsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmNotesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmNotesAddRequest.java index 1f061db..fd953c3 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmNotesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmNotesAddRequest.java @@ -31,7 +31,7 @@ public class CrmNotesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class CrmNotesAddRequest { @JsonCreator public CrmNotesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, NoteInput note) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(note, "note"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.note = note; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public CrmNotesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmNotesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmNotesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmNotesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmNotesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { CrmNotesAddRequest other = (CrmNotesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.note, other.note); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, note); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmNotesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "note", note); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public CrmNotesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmNotesAddRequest( raw, - customerId, + consumerId, appId, serviceId, note); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmNotesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmNotesAllRequest.java index ab595b4..0f04be6 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmNotesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmNotesAllRequest.java @@ -35,7 +35,7 @@ public class CrmNotesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -76,7 +76,7 @@ public class CrmNotesAllRequest { @JsonCreator public CrmNotesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -84,7 +84,7 @@ public CrmNotesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -92,7 +92,7 @@ public CrmNotesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -117,8 +117,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -195,18 +195,18 @@ public CrmNotesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmNotesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmNotesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmNotesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmNotesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -329,7 +329,7 @@ public boolean equals(java.lang.Object o) { CrmNotesAllRequest other = (CrmNotesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -342,7 +342,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -355,7 +355,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmNotesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -368,7 +368,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -407,18 +407,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -538,7 +538,7 @@ public CrmNotesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new CrmNotesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmNotesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmNotesDeleteRequest.java index c95a81d..5014032 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmNotesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmNotesDeleteRequest.java @@ -30,7 +30,7 @@ public class CrmNotesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class CrmNotesDeleteRequest { @JsonCreator public CrmNotesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public CrmNotesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmNotesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmNotesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmNotesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmNotesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { CrmNotesDeleteRequest other = (CrmNotesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmNotesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public CrmNotesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmNotesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmNotesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmNotesOneRequest.java index 729be99..4a901a7 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmNotesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmNotesOneRequest.java @@ -31,7 +31,7 @@ public class CrmNotesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class CrmNotesOneRequest { @JsonCreator public CrmNotesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public CrmNotesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmNotesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmNotesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmNotesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmNotesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { CrmNotesOneRequest other = (CrmNotesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmNotesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public CrmNotesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmNotesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmNotesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmNotesUpdateRequest.java index a1e000b..f96f511 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmNotesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmNotesUpdateRequest.java @@ -31,7 +31,7 @@ public class CrmNotesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class CrmNotesUpdateRequest { @JsonCreator public CrmNotesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, NoteInput note) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(note, "note"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public CrmNotesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmNotesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmNotesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmNotesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmNotesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { CrmNotesUpdateRequest other = (CrmNotesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmNotesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public CrmNotesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmNotesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesAddRequest.java index 118968c..0e957d7 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesAddRequest.java @@ -31,7 +31,7 @@ public class CrmOpportunitiesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class CrmOpportunitiesAddRequest { @JsonCreator public CrmOpportunitiesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, OpportunityInput opportunity) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(opportunity, "opportunity"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.opportunity = opportunity; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public CrmOpportunitiesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmOpportunitiesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmOpportunitiesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmOpportunitiesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmOpportunitiesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { CrmOpportunitiesAddRequest other = (CrmOpportunitiesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.opportunity, other.opportunity); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, opportunity); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmOpportunitiesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "opportunity", opportunity); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public CrmOpportunitiesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmOpportunitiesAddRequest( raw, - customerId, + consumerId, appId, serviceId, opportunity); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesAllRequest.java index a80a7ed..c7064ac 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesAllRequest.java @@ -37,7 +37,7 @@ public class CrmOpportunitiesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class CrmOpportunitiesAllRequest { @JsonCreator public CrmOpportunitiesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public CrmOpportunitiesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public CrmOpportunitiesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public CrmOpportunitiesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmOpportunitiesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmOpportunitiesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmOpportunitiesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmOpportunitiesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { CrmOpportunitiesAllRequest other = (CrmOpportunitiesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmOpportunitiesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public CrmOpportunitiesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new CrmOpportunitiesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesDeleteRequest.java index c6bb1c5..03bf280 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesDeleteRequest.java @@ -30,7 +30,7 @@ public class CrmOpportunitiesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class CrmOpportunitiesDeleteRequest { @JsonCreator public CrmOpportunitiesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public CrmOpportunitiesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmOpportunitiesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmOpportunitiesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmOpportunitiesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmOpportunitiesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { CrmOpportunitiesDeleteRequest other = (CrmOpportunitiesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmOpportunitiesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public CrmOpportunitiesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmOpportunitiesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesOneRequest.java index 99b99b7..f8782d0 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesOneRequest.java @@ -31,7 +31,7 @@ public class CrmOpportunitiesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class CrmOpportunitiesOneRequest { @JsonCreator public CrmOpportunitiesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public CrmOpportunitiesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmOpportunitiesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmOpportunitiesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmOpportunitiesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmOpportunitiesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { CrmOpportunitiesOneRequest other = (CrmOpportunitiesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmOpportunitiesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public CrmOpportunitiesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmOpportunitiesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesUpdateRequest.java index 4ed0d0c..90c4706 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmOpportunitiesUpdateRequest.java @@ -31,7 +31,7 @@ public class CrmOpportunitiesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class CrmOpportunitiesUpdateRequest { @JsonCreator public CrmOpportunitiesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, OpportunityInput opportunity) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(opportunity, "opportunity"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public CrmOpportunitiesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmOpportunitiesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmOpportunitiesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmOpportunitiesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmOpportunitiesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { CrmOpportunitiesUpdateRequest other = (CrmOpportunitiesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmOpportunitiesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public CrmOpportunitiesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmOpportunitiesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmPipelinesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmPipelinesAddRequest.java index d3d951a..574367e 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmPipelinesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmPipelinesAddRequest.java @@ -31,7 +31,7 @@ public class CrmPipelinesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class CrmPipelinesAddRequest { @JsonCreator public CrmPipelinesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, PipelineInput pipeline) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(pipeline, "pipeline"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.pipeline = pipeline; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public CrmPipelinesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmPipelinesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmPipelinesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmPipelinesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmPipelinesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { CrmPipelinesAddRequest other = (CrmPipelinesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.pipeline, other.pipeline); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, pipeline); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmPipelinesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "pipeline", pipeline); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public CrmPipelinesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmPipelinesAddRequest( raw, - customerId, + consumerId, appId, serviceId, pipeline); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmPipelinesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmPipelinesAllRequest.java index 1f304c2..ec15a0e 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmPipelinesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmPipelinesAllRequest.java @@ -35,7 +35,7 @@ public class CrmPipelinesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -76,7 +76,7 @@ public class CrmPipelinesAllRequest { @JsonCreator public CrmPipelinesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -84,7 +84,7 @@ public CrmPipelinesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -92,7 +92,7 @@ public CrmPipelinesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -117,8 +117,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -195,18 +195,18 @@ public CrmPipelinesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmPipelinesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmPipelinesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmPipelinesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmPipelinesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -329,7 +329,7 @@ public boolean equals(java.lang.Object o) { CrmPipelinesAllRequest other = (CrmPipelinesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -342,7 +342,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -355,7 +355,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmPipelinesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -368,7 +368,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -407,18 +407,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -538,7 +538,7 @@ public CrmPipelinesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new CrmPipelinesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmPipelinesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmPipelinesDeleteRequest.java index 3f8e720..b075274 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmPipelinesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmPipelinesDeleteRequest.java @@ -30,7 +30,7 @@ public class CrmPipelinesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class CrmPipelinesDeleteRequest { @JsonCreator public CrmPipelinesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public CrmPipelinesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmPipelinesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmPipelinesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmPipelinesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmPipelinesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { CrmPipelinesDeleteRequest other = (CrmPipelinesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmPipelinesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public CrmPipelinesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmPipelinesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmPipelinesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmPipelinesOneRequest.java index 4b01929..e726b16 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmPipelinesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmPipelinesOneRequest.java @@ -31,7 +31,7 @@ public class CrmPipelinesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class CrmPipelinesOneRequest { @JsonCreator public CrmPipelinesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public CrmPipelinesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmPipelinesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmPipelinesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmPipelinesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmPipelinesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { CrmPipelinesOneRequest other = (CrmPipelinesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmPipelinesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public CrmPipelinesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmPipelinesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmPipelinesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmPipelinesUpdateRequest.java index c9a7138..619b632 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmPipelinesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmPipelinesUpdateRequest.java @@ -31,7 +31,7 @@ public class CrmPipelinesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class CrmPipelinesUpdateRequest { @JsonCreator public CrmPipelinesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, PipelineInput pipeline) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(pipeline, "pipeline"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public CrmPipelinesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmPipelinesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmPipelinesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmPipelinesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmPipelinesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { CrmPipelinesUpdateRequest other = (CrmPipelinesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmPipelinesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public CrmPipelinesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmPipelinesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmUsersAddRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmUsersAddRequest.java index d922fd1..e25b131 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmUsersAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmUsersAddRequest.java @@ -31,7 +31,7 @@ public class CrmUsersAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class CrmUsersAddRequest { @JsonCreator public CrmUsersAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, UserInput user) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(user, "user"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.user = user; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public CrmUsersAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmUsersAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmUsersAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmUsersAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmUsersAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { CrmUsersAddRequest other = (CrmUsersAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.user, other.user); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, user); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmUsersAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "user", user); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public CrmUsersAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmUsersAddRequest( raw, - customerId, + consumerId, appId, serviceId, user); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmUsersAllRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmUsersAllRequest.java index bdc6426..3096878 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmUsersAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmUsersAllRequest.java @@ -35,7 +35,7 @@ public class CrmUsersAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -76,7 +76,7 @@ public class CrmUsersAllRequest { @JsonCreator public CrmUsersAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -84,7 +84,7 @@ public CrmUsersAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -92,7 +92,7 @@ public CrmUsersAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -117,8 +117,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -195,18 +195,18 @@ public CrmUsersAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public CrmUsersAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmUsersAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmUsersAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmUsersAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -329,7 +329,7 @@ public boolean equals(java.lang.Object o) { CrmUsersAllRequest other = (CrmUsersAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -342,7 +342,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -355,7 +355,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmUsersAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -368,7 +368,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -407,18 +407,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -538,7 +538,7 @@ public CrmUsersAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new CrmUsersAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmUsersDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmUsersDeleteRequest.java index 3940dc6..2d24b8e 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmUsersDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmUsersDeleteRequest.java @@ -30,7 +30,7 @@ public class CrmUsersDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class CrmUsersDeleteRequest { @JsonCreator public CrmUsersDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public CrmUsersDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmUsersDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmUsersDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmUsersDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmUsersDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { CrmUsersDeleteRequest other = (CrmUsersDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmUsersDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public CrmUsersDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmUsersDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/CrmUsersOneRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmUsersOneRequest.java index 8895eff..c328265 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmUsersOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmUsersOneRequest.java @@ -31,7 +31,7 @@ public class CrmUsersOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class CrmUsersOneRequest { @JsonCreator public CrmUsersOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public CrmUsersOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmUsersOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmUsersOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmUsersOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmUsersOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { CrmUsersOneRequest other = (CrmUsersOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmUsersOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public CrmUsersOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmUsersOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/CrmUsersUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/CrmUsersUpdateRequest.java index 28c7241..12b3822 100644 --- a/src/main/java/com/apideck/unify/models/operations/CrmUsersUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/CrmUsersUpdateRequest.java @@ -31,7 +31,7 @@ public class CrmUsersUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class CrmUsersUpdateRequest { @JsonCreator public CrmUsersUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, UserInput user) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(user, "user"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public CrmUsersUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public CrmUsersUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public CrmUsersUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public CrmUsersUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public CrmUsersUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { CrmUsersUpdateRequest other = (CrmUsersUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(CrmUsersUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public CrmUsersUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new CrmUsersUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/EcommerceCustomersAllRequest.java b/src/main/java/com/apideck/unify/models/operations/EcommerceCustomersAllRequest.java index 5fefd07..a55267d 100644 --- a/src/main/java/com/apideck/unify/models/operations/EcommerceCustomersAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/EcommerceCustomersAllRequest.java @@ -36,7 +36,7 @@ public class EcommerceCustomersAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -83,7 +83,7 @@ public class EcommerceCustomersAllRequest { @JsonCreator public EcommerceCustomersAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -92,7 +92,7 @@ public EcommerceCustomersAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -101,7 +101,7 @@ public EcommerceCustomersAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -127,8 +127,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -214,18 +214,18 @@ public EcommerceCustomersAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public EcommerceCustomersAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public EcommerceCustomersAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public EcommerceCustomersAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public EcommerceCustomersAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -366,7 +366,7 @@ public boolean equals(java.lang.Object o) { EcommerceCustomersAllRequest other = (EcommerceCustomersAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -380,7 +380,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -394,7 +394,7 @@ public int hashCode() { public String toString() { return Utils.toString(EcommerceCustomersAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -408,7 +408,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -449,18 +449,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -598,7 +598,7 @@ public EcommerceCustomersAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new EcommerceCustomersAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/EcommerceCustomersOneRequest.java b/src/main/java/com/apideck/unify/models/operations/EcommerceCustomersOneRequest.java index b946704..8325606 100644 --- a/src/main/java/com/apideck/unify/models/operations/EcommerceCustomersOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/EcommerceCustomersOneRequest.java @@ -31,7 +31,7 @@ public class EcommerceCustomersOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class EcommerceCustomersOneRequest { @JsonCreator public EcommerceCustomersOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public EcommerceCustomersOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public EcommerceCustomersOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public EcommerceCustomersOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public EcommerceCustomersOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public EcommerceCustomersOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { EcommerceCustomersOneRequest other = (EcommerceCustomersOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(EcommerceCustomersOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public EcommerceCustomersOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new EcommerceCustomersOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/EcommerceOrdersAllRequest.java b/src/main/java/com/apideck/unify/models/operations/EcommerceOrdersAllRequest.java index 907a99f..645eedd 100644 --- a/src/main/java/com/apideck/unify/models/operations/EcommerceOrdersAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/EcommerceOrdersAllRequest.java @@ -37,7 +37,7 @@ public class EcommerceOrdersAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class EcommerceOrdersAllRequest { @JsonCreator public EcommerceOrdersAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public EcommerceOrdersAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public EcommerceOrdersAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public EcommerceOrdersAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public EcommerceOrdersAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public EcommerceOrdersAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public EcommerceOrdersAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public EcommerceOrdersAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { EcommerceOrdersAllRequest other = (EcommerceOrdersAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(EcommerceOrdersAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public EcommerceOrdersAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new EcommerceOrdersAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/EcommerceOrdersOneRequest.java b/src/main/java/com/apideck/unify/models/operations/EcommerceOrdersOneRequest.java index d218034..d1732c8 100644 --- a/src/main/java/com/apideck/unify/models/operations/EcommerceOrdersOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/EcommerceOrdersOneRequest.java @@ -31,7 +31,7 @@ public class EcommerceOrdersOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class EcommerceOrdersOneRequest { @JsonCreator public EcommerceOrdersOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public EcommerceOrdersOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public EcommerceOrdersOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public EcommerceOrdersOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public EcommerceOrdersOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public EcommerceOrdersOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { EcommerceOrdersOneRequest other = (EcommerceOrdersOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(EcommerceOrdersOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public EcommerceOrdersOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new EcommerceOrdersOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/EcommerceProductsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/EcommerceProductsAllRequest.java index c2aa462..aec321c 100644 --- a/src/main/java/com/apideck/unify/models/operations/EcommerceProductsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/EcommerceProductsAllRequest.java @@ -35,7 +35,7 @@ public class EcommerceProductsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -76,7 +76,7 @@ public class EcommerceProductsAllRequest { @JsonCreator public EcommerceProductsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -84,7 +84,7 @@ public EcommerceProductsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -92,7 +92,7 @@ public EcommerceProductsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -117,8 +117,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -195,18 +195,18 @@ public EcommerceProductsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public EcommerceProductsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public EcommerceProductsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public EcommerceProductsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public EcommerceProductsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -329,7 +329,7 @@ public boolean equals(java.lang.Object o) { EcommerceProductsAllRequest other = (EcommerceProductsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -342,7 +342,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -355,7 +355,7 @@ public int hashCode() { public String toString() { return Utils.toString(EcommerceProductsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -368,7 +368,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -407,18 +407,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -538,7 +538,7 @@ public EcommerceProductsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new EcommerceProductsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/EcommerceProductsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/EcommerceProductsOneRequest.java index 2ec3056..96b1bae 100644 --- a/src/main/java/com/apideck/unify/models/operations/EcommerceProductsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/EcommerceProductsOneRequest.java @@ -31,7 +31,7 @@ public class EcommerceProductsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class EcommerceProductsOneRequest { @JsonCreator public EcommerceProductsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public EcommerceProductsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public EcommerceProductsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public EcommerceProductsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public EcommerceProductsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public EcommerceProductsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { EcommerceProductsOneRequest other = (EcommerceProductsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(EcommerceProductsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public EcommerceProductsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new EcommerceProductsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/EcommerceStoresOneRequest.java b/src/main/java/com/apideck/unify/models/operations/EcommerceStoresOneRequest.java index 62e0fd8..37cf822 100644 --- a/src/main/java/com/apideck/unify/models/operations/EcommerceStoresOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/EcommerceStoresOneRequest.java @@ -25,7 +25,7 @@ public class EcommerceStoresOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class EcommerceStoresOneRequest { @JsonCreator public EcommerceStoresOneRequest( - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -78,8 +78,8 @@ public EcommerceStoresOneRequest() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -121,18 +121,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public EcommerceStoresOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public EcommerceStoresOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public EcommerceStoresOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public EcommerceStoresOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -218,7 +218,7 @@ public boolean equals(java.lang.Object o) { } EcommerceStoresOneRequest other = (EcommerceStoresOneRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -228,7 +228,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, serviceId, raw, @@ -238,7 +238,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(EcommerceStoresOneRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -247,7 +247,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -355,7 +355,7 @@ public EcommerceStoresOneRequest build() { if (raw == null) { raw = _SINGLETON_VALUE_Raw.value(); } return new EcommerceStoresOneRequest( - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsAddRequest.java index a132b61..23e3faa 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsAddRequest.java @@ -31,7 +31,7 @@ public class FileStorageDriveGroupsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class FileStorageDriveGroupsAddRequest { @JsonCreator public FileStorageDriveGroupsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, DriveGroupInput driveGroup) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(driveGroup, "driveGroup"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.driveGroup = driveGroup; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public FileStorageDriveGroupsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageDriveGroupsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageDriveGroupsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageDriveGroupsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageDriveGroupsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { FileStorageDriveGroupsAddRequest other = (FileStorageDriveGroupsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.driveGroup, other.driveGroup); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, driveGroup); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageDriveGroupsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "driveGroup", driveGroup); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public FileStorageDriveGroupsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageDriveGroupsAddRequest( raw, - customerId, + consumerId, appId, serviceId, driveGroup); diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsAllRequest.java index b06331b..a49b411 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsAllRequest.java @@ -36,7 +36,7 @@ public class FileStorageDriveGroupsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -83,7 +83,7 @@ public class FileStorageDriveGroupsAllRequest { @JsonCreator public FileStorageDriveGroupsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -92,7 +92,7 @@ public FileStorageDriveGroupsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -101,7 +101,7 @@ public FileStorageDriveGroupsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -127,8 +127,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -214,18 +214,18 @@ public FileStorageDriveGroupsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageDriveGroupsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageDriveGroupsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageDriveGroupsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageDriveGroupsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -366,7 +366,7 @@ public boolean equals(java.lang.Object o) { FileStorageDriveGroupsAllRequest other = (FileStorageDriveGroupsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -380,7 +380,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -394,7 +394,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageDriveGroupsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -408,7 +408,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -449,18 +449,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -598,7 +598,7 @@ public FileStorageDriveGroupsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new FileStorageDriveGroupsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsDeleteRequest.java index 696f293..9f456e8 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsDeleteRequest.java @@ -30,7 +30,7 @@ public class FileStorageDriveGroupsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class FileStorageDriveGroupsDeleteRequest { @JsonCreator public FileStorageDriveGroupsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public FileStorageDriveGroupsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageDriveGroupsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageDriveGroupsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageDriveGroupsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageDriveGroupsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { FileStorageDriveGroupsDeleteRequest other = (FileStorageDriveGroupsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageDriveGroupsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public FileStorageDriveGroupsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageDriveGroupsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsOneRequest.java index 656195f..5ee1790 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsOneRequest.java @@ -31,7 +31,7 @@ public class FileStorageDriveGroupsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class FileStorageDriveGroupsOneRequest { @JsonCreator public FileStorageDriveGroupsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public FileStorageDriveGroupsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageDriveGroupsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageDriveGroupsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageDriveGroupsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageDriveGroupsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { FileStorageDriveGroupsOneRequest other = (FileStorageDriveGroupsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageDriveGroupsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public FileStorageDriveGroupsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageDriveGroupsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsUpdateRequest.java index 71283df..46de612 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageDriveGroupsUpdateRequest.java @@ -31,7 +31,7 @@ public class FileStorageDriveGroupsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class FileStorageDriveGroupsUpdateRequest { @JsonCreator public FileStorageDriveGroupsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, DriveGroupInput driveGroup) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(driveGroup, "driveGroup"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public FileStorageDriveGroupsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageDriveGroupsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageDriveGroupsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageDriveGroupsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageDriveGroupsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { FileStorageDriveGroupsUpdateRequest other = (FileStorageDriveGroupsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageDriveGroupsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public FileStorageDriveGroupsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageDriveGroupsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesAddRequest.java index ac19d18..5aa3023 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesAddRequest.java @@ -31,7 +31,7 @@ public class FileStorageDrivesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class FileStorageDrivesAddRequest { @JsonCreator public FileStorageDrivesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, DriveInput drive) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(drive, "drive"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.drive = drive; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public FileStorageDrivesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageDrivesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageDrivesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageDrivesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageDrivesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { FileStorageDrivesAddRequest other = (FileStorageDrivesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.drive, other.drive); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, drive); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageDrivesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "drive", drive); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public FileStorageDrivesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageDrivesAddRequest( raw, - customerId, + consumerId, appId, serviceId, drive); diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesAllRequest.java index 2e88609..1ee8fb9 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesAllRequest.java @@ -34,7 +34,7 @@ public class FileStorageDrivesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -75,7 +75,7 @@ public class FileStorageDrivesAllRequest { @JsonCreator public FileStorageDrivesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -83,7 +83,7 @@ public FileStorageDrivesAllRequest( Optional filter, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -91,7 +91,7 @@ public FileStorageDrivesAllRequest( Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -116,8 +116,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -194,18 +194,18 @@ public FileStorageDrivesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageDrivesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageDrivesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageDrivesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageDrivesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -328,7 +328,7 @@ public boolean equals(java.lang.Object o) { FileStorageDrivesAllRequest other = (FileStorageDrivesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -341,7 +341,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -354,7 +354,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageDrivesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -367,7 +367,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -406,18 +406,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -537,7 +537,7 @@ public FileStorageDrivesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new FileStorageDrivesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesDeleteRequest.java index 202ecfa..649cb0c 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesDeleteRequest.java @@ -30,7 +30,7 @@ public class FileStorageDrivesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class FileStorageDrivesDeleteRequest { @JsonCreator public FileStorageDrivesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public FileStorageDrivesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageDrivesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageDrivesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageDrivesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageDrivesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { FileStorageDrivesDeleteRequest other = (FileStorageDrivesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageDrivesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public FileStorageDrivesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageDrivesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesOneRequest.java index 7042a1a..a80f31f 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesOneRequest.java @@ -31,7 +31,7 @@ public class FileStorageDrivesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class FileStorageDrivesOneRequest { @JsonCreator public FileStorageDrivesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public FileStorageDrivesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageDrivesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageDrivesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageDrivesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageDrivesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { FileStorageDrivesOneRequest other = (FileStorageDrivesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageDrivesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public FileStorageDrivesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageDrivesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesUpdateRequest.java index ddfabf1..4677460 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageDrivesUpdateRequest.java @@ -31,7 +31,7 @@ public class FileStorageDrivesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class FileStorageDrivesUpdateRequest { @JsonCreator public FileStorageDrivesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, DriveInput drive) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(drive, "drive"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public FileStorageDrivesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageDrivesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageDrivesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageDrivesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageDrivesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { FileStorageDrivesUpdateRequest other = (FileStorageDrivesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageDrivesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public FileStorageDrivesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageDrivesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesAllRequest.java index 1388671..460ee23 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesAllRequest.java @@ -37,7 +37,7 @@ public class FileStorageFilesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class FileStorageFilesAllRequest { @JsonCreator public FileStorageFilesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public FileStorageFilesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public FileStorageFilesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public FileStorageFilesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFilesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFilesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { FileStorageFilesAllRequest other = (FileStorageFilesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageFilesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public FileStorageFilesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new FileStorageFilesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesDeleteRequest.java index 804c692..6ad5b1e 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesDeleteRequest.java @@ -30,7 +30,7 @@ public class FileStorageFilesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class FileStorageFilesDeleteRequest { @JsonCreator public FileStorageFilesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public FileStorageFilesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFilesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFilesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { FileStorageFilesDeleteRequest other = (FileStorageFilesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageFilesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public FileStorageFilesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageFilesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesDownloadRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesDownloadRequest.java index b4b631a..e7f21e2 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesDownloadRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesDownloadRequest.java @@ -28,7 +28,7 @@ public class FileStorageFilesDownloadRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class FileStorageFilesDownloadRequest { @JsonCreator public FileStorageFilesDownloadRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.fields = fields; @@ -84,8 +84,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -128,18 +128,18 @@ public FileStorageFilesDownloadRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesDownloadRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFilesDownloadRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesDownloadRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFilesDownloadRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -208,7 +208,7 @@ public boolean equals(java.lang.Object o) { FileStorageFilesDownloadRequest other = (FileStorageFilesDownloadRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.fields, other.fields); @@ -218,7 +218,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, fields); @@ -228,7 +228,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageFilesDownloadRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "fields", fields); @@ -238,7 +238,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -262,18 +262,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -334,7 +334,7 @@ public Builder fields(JsonNullable fields) { public FileStorageFilesDownloadRequest build() { return new FileStorageFilesDownloadRequest( id, - customerId, + consumerId, appId, serviceId, fields); diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesExportRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesExportRequest.java index b43558d..56b6c87 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesExportRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesExportRequest.java @@ -28,7 +28,7 @@ public class FileStorageFilesExportRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class FileStorageFilesExportRequest { @JsonCreator public FileStorageFilesExportRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable fields, String format) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(fields, "fields"); Utils.checkNotNull(format, "format"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.fields = fields; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -146,18 +146,18 @@ public FileStorageFilesExportRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesExportRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFilesExportRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesExportRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFilesExportRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -235,7 +235,7 @@ public boolean equals(java.lang.Object o) { FileStorageFilesExportRequest other = (FileStorageFilesExportRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.fields, other.fields) && @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, fields, @@ -257,7 +257,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageFilesExportRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "fields", fields, @@ -268,7 +268,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -294,18 +294,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -375,7 +375,7 @@ public Builder format(String format) { public FileStorageFilesExportRequest build() { return new FileStorageFilesExportRequest( id, - customerId, + consumerId, appId, serviceId, fields, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesOneRequest.java index 7d4e4e1..1e8e64e 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesOneRequest.java @@ -31,7 +31,7 @@ public class FileStorageFilesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class FileStorageFilesOneRequest { @JsonCreator public FileStorageFilesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public FileStorageFilesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFilesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFilesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { FileStorageFilesOneRequest other = (FileStorageFilesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageFilesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public FileStorageFilesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageFilesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesSearchRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesSearchRequest.java index 0eb7fb6..6f0c095 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesSearchRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesSearchRequest.java @@ -30,7 +30,7 @@ public class FileStorageFilesSearchRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -79,7 +79,7 @@ public class FileStorageFilesSearchRequest { @JsonCreator public FileStorageFilesSearchRequest( - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional> passThrough, @@ -88,7 +88,7 @@ public FileStorageFilesSearchRequest( Optional limit, Optional filter, FilesSearch filesSearch) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(passThrough, "passThrough"); @@ -97,7 +97,7 @@ public FileStorageFilesSearchRequest( Utils.checkNotNull(limit, "limit"); Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(filesSearch, "filesSearch"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.passThrough = passThrough; @@ -117,8 +117,8 @@ public FileStorageFilesSearchRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -191,18 +191,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesSearchRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFilesSearchRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesSearchRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFilesSearchRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -348,7 +348,7 @@ public boolean equals(java.lang.Object o) { } FileStorageFilesSearchRequest other = (FileStorageFilesSearchRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.passThrough, other.passThrough) && @@ -362,7 +362,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, serviceId, passThrough, @@ -376,7 +376,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(FileStorageFilesSearchRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "passThrough", passThrough, @@ -389,7 +389,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -414,18 +414,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -565,7 +565,7 @@ public FileStorageFilesSearchRequest build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); } return new FileStorageFilesSearchRequest( - customerId, + consumerId, appId, serviceId, passThrough, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesUpdateRequest.java index 3aa1270..c4c4c69 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFilesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFilesUpdateRequest.java @@ -31,7 +31,7 @@ public class FileStorageFilesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class FileStorageFilesUpdateRequest { @JsonCreator public FileStorageFilesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, UpdateFileRequest updateFileRequest) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(updateFileRequest, "updateFileRequest"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public FileStorageFilesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFilesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFilesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFilesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { FileStorageFilesUpdateRequest other = (FileStorageFilesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageFilesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public FileStorageFilesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageFilesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersAddRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersAddRequest.java index aacbe8a..7b19128 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersAddRequest.java @@ -32,7 +32,7 @@ public class FileStorageFoldersAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -58,19 +58,19 @@ public class FileStorageFoldersAddRequest { @JsonCreator public FileStorageFoldersAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable fields, CreateFolderRequest createFolderRequest) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(fields, "fields"); Utils.checkNotNull(createFolderRequest, "createFolderRequest"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.fields = fields; @@ -94,8 +94,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -152,18 +152,18 @@ public FileStorageFoldersAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFoldersAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFoldersAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFoldersAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFoldersAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -238,7 +238,7 @@ public boolean equals(java.lang.Object o) { FileStorageFoldersAddRequest other = (FileStorageFoldersAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.fields, other.fields) && @@ -249,7 +249,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, fields, @@ -260,7 +260,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageFoldersAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "fields", fields, @@ -271,7 +271,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -306,18 +306,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -386,7 +386,7 @@ public FileStorageFoldersAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageFoldersAddRequest( raw, - customerId, + consumerId, appId, serviceId, fields, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersCopyRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersCopyRequest.java index bb1178a..4412faa 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersCopyRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersCopyRequest.java @@ -32,7 +32,7 @@ public class FileStorageFoldersCopyRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -64,21 +64,21 @@ public class FileStorageFoldersCopyRequest { @JsonCreator public FileStorageFoldersCopyRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields, CopyFolderRequest copyFolderRequest) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); Utils.checkNotNull(copyFolderRequest, "copyFolderRequest"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -104,8 +104,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -161,18 +161,18 @@ public FileStorageFoldersCopyRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFoldersCopyRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFoldersCopyRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFoldersCopyRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFoldersCopyRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -265,7 +265,7 @@ public boolean equals(java.lang.Object o) { FileStorageFoldersCopyRequest other = (FileStorageFoldersCopyRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -277,7 +277,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -289,7 +289,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageFoldersCopyRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -301,7 +301,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -329,18 +329,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -427,7 +427,7 @@ public FileStorageFoldersCopyRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageFoldersCopyRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersDeleteRequest.java index 9af0184..0793ee0 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersDeleteRequest.java @@ -30,7 +30,7 @@ public class FileStorageFoldersDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class FileStorageFoldersDeleteRequest { @JsonCreator public FileStorageFoldersDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public FileStorageFoldersDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFoldersDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFoldersDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFoldersDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFoldersDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { FileStorageFoldersDeleteRequest other = (FileStorageFoldersDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageFoldersDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public FileStorageFoldersDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageFoldersDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersOneRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersOneRequest.java index 35e83c4..95a4df1 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersOneRequest.java @@ -31,7 +31,7 @@ public class FileStorageFoldersOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class FileStorageFoldersOneRequest { @JsonCreator public FileStorageFoldersOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public FileStorageFoldersOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFoldersOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFoldersOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFoldersOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFoldersOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { FileStorageFoldersOneRequest other = (FileStorageFoldersOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageFoldersOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public FileStorageFoldersOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageFoldersOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersUpdateRequest.java index ec8f663..1e8e8d5 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageFoldersUpdateRequest.java @@ -31,7 +31,7 @@ public class FileStorageFoldersUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class FileStorageFoldersUpdateRequest { @JsonCreator public FileStorageFoldersUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, UpdateFolderRequest updateFolderRequest) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(updateFolderRequest, "updateFolderRequest"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public FileStorageFoldersUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageFoldersUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageFoldersUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageFoldersUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageFoldersUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { FileStorageFoldersUpdateRequest other = (FileStorageFoldersUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageFoldersUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public FileStorageFoldersUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageFoldersUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksAddRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksAddRequest.java index 2e988da..b54b64e 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksAddRequest.java @@ -31,7 +31,7 @@ public class FileStorageSharedLinksAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class FileStorageSharedLinksAddRequest { @JsonCreator public FileStorageSharedLinksAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, SharedLinkInput sharedLink) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(sharedLink, "sharedLink"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.sharedLink = sharedLink; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public FileStorageSharedLinksAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageSharedLinksAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageSharedLinksAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageSharedLinksAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageSharedLinksAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { FileStorageSharedLinksAddRequest other = (FileStorageSharedLinksAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.sharedLink, other.sharedLink); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, sharedLink); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageSharedLinksAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "sharedLink", sharedLink); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public FileStorageSharedLinksAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageSharedLinksAddRequest( raw, - customerId, + consumerId, appId, serviceId, sharedLink); diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksAllRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksAllRequest.java index b0ee881..201f767 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksAllRequest.java @@ -35,7 +35,7 @@ public class FileStorageSharedLinksAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -76,7 +76,7 @@ public class FileStorageSharedLinksAllRequest { @JsonCreator public FileStorageSharedLinksAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -84,7 +84,7 @@ public FileStorageSharedLinksAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -92,7 +92,7 @@ public FileStorageSharedLinksAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -117,8 +117,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -195,18 +195,18 @@ public FileStorageSharedLinksAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageSharedLinksAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageSharedLinksAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageSharedLinksAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageSharedLinksAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -329,7 +329,7 @@ public boolean equals(java.lang.Object o) { FileStorageSharedLinksAllRequest other = (FileStorageSharedLinksAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -342,7 +342,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -355,7 +355,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageSharedLinksAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -368,7 +368,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -407,18 +407,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -538,7 +538,7 @@ public FileStorageSharedLinksAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new FileStorageSharedLinksAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksDeleteRequest.java index 25aa917..5b15651 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksDeleteRequest.java @@ -30,7 +30,7 @@ public class FileStorageSharedLinksDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class FileStorageSharedLinksDeleteRequest { @JsonCreator public FileStorageSharedLinksDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public FileStorageSharedLinksDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageSharedLinksDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageSharedLinksDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageSharedLinksDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageSharedLinksDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { FileStorageSharedLinksDeleteRequest other = (FileStorageSharedLinksDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageSharedLinksDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public FileStorageSharedLinksDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageSharedLinksDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksOneRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksOneRequest.java index 44256e0..fc39c8e 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksOneRequest.java @@ -31,7 +31,7 @@ public class FileStorageSharedLinksOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class FileStorageSharedLinksOneRequest { @JsonCreator public FileStorageSharedLinksOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public FileStorageSharedLinksOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageSharedLinksOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageSharedLinksOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageSharedLinksOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageSharedLinksOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { FileStorageSharedLinksOneRequest other = (FileStorageSharedLinksOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageSharedLinksOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public FileStorageSharedLinksOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageSharedLinksOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksUpdateRequest.java index e97d334..cba1674 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageSharedLinksUpdateRequest.java @@ -31,7 +31,7 @@ public class FileStorageSharedLinksUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class FileStorageSharedLinksUpdateRequest { @JsonCreator public FileStorageSharedLinksUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, SharedLinkInput sharedLink) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(sharedLink, "sharedLink"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public FileStorageSharedLinksUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageSharedLinksUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageSharedLinksUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageSharedLinksUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageSharedLinksUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { FileStorageSharedLinksUpdateRequest other = (FileStorageSharedLinksUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageSharedLinksUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public FileStorageSharedLinksUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageSharedLinksUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsAddRequest.java index c52878c..f0b1dd4 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsAddRequest.java @@ -31,7 +31,7 @@ public class FileStorageUploadSessionsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class FileStorageUploadSessionsAddRequest { @JsonCreator public FileStorageUploadSessionsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, CreateUploadSessionRequest createUploadSessionRequest) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(createUploadSessionRequest, "createUploadSessionRequest"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.createUploadSessionRequest = createUploadSessionRequest; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public FileStorageUploadSessionsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageUploadSessionsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageUploadSessionsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageUploadSessionsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageUploadSessionsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { FileStorageUploadSessionsAddRequest other = (FileStorageUploadSessionsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.createUploadSessionRequest, other.createUploadSessionRequest); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, createUploadSessionRequest); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageUploadSessionsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "createUploadSessionRequest", createUploadSessionRequest); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public FileStorageUploadSessionsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageUploadSessionsAddRequest( raw, - customerId, + consumerId, appId, serviceId, createUploadSessionRequest); diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsDeleteRequest.java index a00d38c..ba067c5 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsDeleteRequest.java @@ -30,7 +30,7 @@ public class FileStorageUploadSessionsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class FileStorageUploadSessionsDeleteRequest { @JsonCreator public FileStorageUploadSessionsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public FileStorageUploadSessionsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageUploadSessionsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageUploadSessionsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageUploadSessionsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageUploadSessionsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { FileStorageUploadSessionsDeleteRequest other = (FileStorageUploadSessionsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageUploadSessionsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public FileStorageUploadSessionsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageUploadSessionsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsFinishRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsFinishRequest.java index aa995bd..46bb4d4 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsFinishRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsFinishRequest.java @@ -37,7 +37,7 @@ public class FileStorageUploadSessionsFinishRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -64,21 +64,21 @@ public class FileStorageUploadSessionsFinishRequest { public FileStorageUploadSessionsFinishRequest( String id, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional digest, Optional requestBody) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(digest, "digest"); Utils.checkNotNull(requestBody, "requestBody"); this.id = id; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.digest = digest; @@ -110,8 +110,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -178,18 +178,18 @@ public FileStorageUploadSessionsFinishRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageUploadSessionsFinishRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageUploadSessionsFinishRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageUploadSessionsFinishRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageUploadSessionsFinishRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -271,7 +271,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.id, other.id) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.digest, other.digest) && @@ -283,7 +283,7 @@ public int hashCode() { return Objects.hash( id, raw, - customerId, + consumerId, appId, serviceId, digest, @@ -295,7 +295,7 @@ public String toString() { return Utils.toString(FileStorageUploadSessionsFinishRequest.class, "id", id, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "digest", digest, @@ -308,7 +308,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -352,18 +352,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -439,7 +439,7 @@ public FileStorageUploadSessionsFinishRequest build() { } return new FileStorageUploadSessionsFinishRequest( id, raw, - customerId, + consumerId, appId, serviceId, digest, diff --git a/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsOneRequest.java index 3549a4a..7af5f43 100644 --- a/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/FileStorageUploadSessionsOneRequest.java @@ -31,7 +31,7 @@ public class FileStorageUploadSessionsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class FileStorageUploadSessionsOneRequest { @JsonCreator public FileStorageUploadSessionsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public FileStorageUploadSessionsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public FileStorageUploadSessionsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public FileStorageUploadSessionsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public FileStorageUploadSessionsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public FileStorageUploadSessionsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { FileStorageUploadSessionsOneRequest other = (FileStorageUploadSessionsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(FileStorageUploadSessionsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public FileStorageUploadSessionsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new FileStorageUploadSessionsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisCompaniesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisCompaniesAddRequest.java index 69026fe..04ba17b 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisCompaniesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisCompaniesAddRequest.java @@ -31,7 +31,7 @@ public class HrisCompaniesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class HrisCompaniesAddRequest { @JsonCreator public HrisCompaniesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, HrisCompanyInput hrisCompany) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(hrisCompany, "hrisCompany"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.hrisCompany = hrisCompany; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public HrisCompaniesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisCompaniesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisCompaniesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisCompaniesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisCompaniesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { HrisCompaniesAddRequest other = (HrisCompaniesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.hrisCompany, other.hrisCompany); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, hrisCompany); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisCompaniesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "hrisCompany", hrisCompany); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public HrisCompaniesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisCompaniesAddRequest( raw, - customerId, + consumerId, appId, serviceId, hrisCompany); diff --git a/src/main/java/com/apideck/unify/models/operations/HrisCompaniesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisCompaniesAllRequest.java index bb75870..23f8bd2 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisCompaniesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisCompaniesAllRequest.java @@ -35,7 +35,7 @@ public class HrisCompaniesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -76,7 +76,7 @@ public class HrisCompaniesAllRequest { @JsonCreator public HrisCompaniesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -84,7 +84,7 @@ public HrisCompaniesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -92,7 +92,7 @@ public HrisCompaniesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -117,8 +117,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -195,18 +195,18 @@ public HrisCompaniesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisCompaniesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisCompaniesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisCompaniesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisCompaniesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -329,7 +329,7 @@ public boolean equals(java.lang.Object o) { HrisCompaniesAllRequest other = (HrisCompaniesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -342,7 +342,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -355,7 +355,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisCompaniesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -368,7 +368,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -407,18 +407,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -538,7 +538,7 @@ public HrisCompaniesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new HrisCompaniesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisCompaniesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisCompaniesDeleteRequest.java index 33a9189..93c38bc 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisCompaniesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisCompaniesDeleteRequest.java @@ -30,7 +30,7 @@ public class HrisCompaniesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class HrisCompaniesDeleteRequest { @JsonCreator public HrisCompaniesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public HrisCompaniesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisCompaniesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisCompaniesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisCompaniesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisCompaniesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { HrisCompaniesDeleteRequest other = (HrisCompaniesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisCompaniesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public HrisCompaniesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisCompaniesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/HrisCompaniesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisCompaniesOneRequest.java index 179ab87..ccc6b61 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisCompaniesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisCompaniesOneRequest.java @@ -31,7 +31,7 @@ public class HrisCompaniesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class HrisCompaniesOneRequest { @JsonCreator public HrisCompaniesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public HrisCompaniesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisCompaniesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisCompaniesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisCompaniesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisCompaniesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { HrisCompaniesOneRequest other = (HrisCompaniesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisCompaniesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public HrisCompaniesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisCompaniesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisCompaniesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisCompaniesUpdateRequest.java index f003c3a..25f71a0 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisCompaniesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisCompaniesUpdateRequest.java @@ -31,7 +31,7 @@ public class HrisCompaniesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class HrisCompaniesUpdateRequest { @JsonCreator public HrisCompaniesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, HrisCompanyInput hrisCompany) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(hrisCompany, "hrisCompany"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public HrisCompaniesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisCompaniesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisCompaniesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisCompaniesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisCompaniesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { HrisCompaniesUpdateRequest other = (HrisCompaniesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisCompaniesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public HrisCompaniesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisCompaniesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsAddRequest.java index 5a0c3ef..dc49c63 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsAddRequest.java @@ -31,7 +31,7 @@ public class HrisDepartmentsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class HrisDepartmentsAddRequest { @JsonCreator public HrisDepartmentsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, DepartmentInput department) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(department, "department"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.department = department; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public HrisDepartmentsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisDepartmentsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisDepartmentsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisDepartmentsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisDepartmentsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { HrisDepartmentsAddRequest other = (HrisDepartmentsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.department, other.department); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, department); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisDepartmentsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "department", department); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public HrisDepartmentsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisDepartmentsAddRequest( raw, - customerId, + consumerId, appId, serviceId, department); diff --git a/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsAllRequest.java index 2302329..ba385c8 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsAllRequest.java @@ -35,7 +35,7 @@ public class HrisDepartmentsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -76,7 +76,7 @@ public class HrisDepartmentsAllRequest { @JsonCreator public HrisDepartmentsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -84,7 +84,7 @@ public HrisDepartmentsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -92,7 +92,7 @@ public HrisDepartmentsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -117,8 +117,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -195,18 +195,18 @@ public HrisDepartmentsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisDepartmentsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisDepartmentsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisDepartmentsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisDepartmentsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -329,7 +329,7 @@ public boolean equals(java.lang.Object o) { HrisDepartmentsAllRequest other = (HrisDepartmentsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -342,7 +342,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -355,7 +355,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisDepartmentsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -368,7 +368,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -407,18 +407,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -538,7 +538,7 @@ public HrisDepartmentsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new HrisDepartmentsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsDeleteRequest.java index 31fe47b..2a5b3df 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsDeleteRequest.java @@ -30,7 +30,7 @@ public class HrisDepartmentsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class HrisDepartmentsDeleteRequest { @JsonCreator public HrisDepartmentsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public HrisDepartmentsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisDepartmentsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisDepartmentsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisDepartmentsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisDepartmentsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { HrisDepartmentsDeleteRequest other = (HrisDepartmentsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisDepartmentsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public HrisDepartmentsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisDepartmentsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsOneRequest.java index b9b54cf..86f2e17 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsOneRequest.java @@ -31,7 +31,7 @@ public class HrisDepartmentsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class HrisDepartmentsOneRequest { @JsonCreator public HrisDepartmentsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public HrisDepartmentsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisDepartmentsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisDepartmentsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisDepartmentsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisDepartmentsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { HrisDepartmentsOneRequest other = (HrisDepartmentsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisDepartmentsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public HrisDepartmentsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisDepartmentsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsUpdateRequest.java index 10ce6d3..e735017 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisDepartmentsUpdateRequest.java @@ -31,7 +31,7 @@ public class HrisDepartmentsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class HrisDepartmentsUpdateRequest { @JsonCreator public HrisDepartmentsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, DepartmentInput department) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(department, "department"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public HrisDepartmentsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisDepartmentsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisDepartmentsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisDepartmentsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisDepartmentsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { HrisDepartmentsUpdateRequest other = (HrisDepartmentsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisDepartmentsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public HrisDepartmentsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisDepartmentsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisEmployeePayrollsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisEmployeePayrollsAllRequest.java index eb85c60..6d111ab 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisEmployeePayrollsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisEmployeePayrollsAllRequest.java @@ -41,7 +41,7 @@ public class HrisEmployeePayrollsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -77,7 +77,7 @@ public class HrisEmployeePayrollsAllRequest { public HrisEmployeePayrollsAllRequest( String employeeId, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional filter, @@ -85,7 +85,7 @@ public HrisEmployeePayrollsAllRequest( JsonNullable fields) { Utils.checkNotNull(employeeId, "employeeId"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(filter, "filter"); @@ -93,7 +93,7 @@ public HrisEmployeePayrollsAllRequest( Utils.checkNotNull(fields, "fields"); this.employeeId = employeeId; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.filter = filter; @@ -126,8 +126,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -206,18 +206,18 @@ public HrisEmployeePayrollsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeePayrollsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisEmployeePayrollsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeePayrollsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisEmployeePayrollsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -323,7 +323,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.employeeId, other.employeeId) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.filter, other.filter) && @@ -336,7 +336,7 @@ public int hashCode() { return Objects.hash( employeeId, raw, - customerId, + consumerId, appId, serviceId, filter, @@ -349,7 +349,7 @@ public String toString() { return Utils.toString(HrisEmployeePayrollsAllRequest.class, "employeeId", employeeId, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "filter", filter, @@ -363,7 +363,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -409,18 +409,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -520,7 +520,7 @@ public HrisEmployeePayrollsAllRequest build() { } return new HrisEmployeePayrollsAllRequest( employeeId, raw, - customerId, + consumerId, appId, serviceId, filter, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisEmployeePayrollsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisEmployeePayrollsOneRequest.java index 2bd2160..2678416 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisEmployeePayrollsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisEmployeePayrollsOneRequest.java @@ -43,7 +43,7 @@ public class HrisEmployeePayrollsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -68,21 +68,21 @@ public HrisEmployeePayrollsOneRequest( String payrollId, String employeeId, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable fields) { Utils.checkNotNull(payrollId, "payrollId"); Utils.checkNotNull(employeeId, "employeeId"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(fields, "fields"); this.payrollId = payrollId; this.employeeId = employeeId; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.fields = fields; @@ -122,8 +122,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -193,18 +193,18 @@ public HrisEmployeePayrollsOneRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeePayrollsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisEmployeePayrollsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeePayrollsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisEmployeePayrollsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -275,7 +275,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.payrollId, other.payrollId) && Objects.deepEquals(this.employeeId, other.employeeId) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.fields, other.fields); @@ -287,7 +287,7 @@ public int hashCode() { payrollId, employeeId, raw, - customerId, + consumerId, appId, serviceId, fields); @@ -299,7 +299,7 @@ public String toString() { "payrollId", payrollId, "employeeId", employeeId, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "fields", fields); @@ -313,7 +313,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -364,18 +364,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -440,7 +440,7 @@ public HrisEmployeePayrollsOneRequest build() { payrollId, employeeId, raw, - customerId, + consumerId, appId, serviceId, fields); diff --git a/src/main/java/com/apideck/unify/models/operations/HrisEmployeeSchedulesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisEmployeeSchedulesAllRequest.java index c202074..8c745a5 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisEmployeeSchedulesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisEmployeeSchedulesAllRequest.java @@ -40,7 +40,7 @@ public class HrisEmployeeSchedulesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -70,21 +70,21 @@ public class HrisEmployeeSchedulesAllRequest { public HrisEmployeeSchedulesAllRequest( String employeeId, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(employeeId, "employeeId"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.employeeId = employeeId; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.passThrough = passThrough; @@ -116,8 +116,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -187,18 +187,18 @@ public HrisEmployeeSchedulesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeeSchedulesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisEmployeeSchedulesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeeSchedulesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisEmployeeSchedulesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -286,7 +286,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.employeeId, other.employeeId) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.passThrough, other.passThrough) && @@ -298,7 +298,7 @@ public int hashCode() { return Objects.hash( employeeId, raw, - customerId, + consumerId, appId, serviceId, passThrough, @@ -310,7 +310,7 @@ public String toString() { return Utils.toString(HrisEmployeeSchedulesAllRequest.class, "employeeId", employeeId, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "passThrough", passThrough, @@ -323,7 +323,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -367,18 +367,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -460,7 +460,7 @@ public HrisEmployeeSchedulesAllRequest build() { } return new HrisEmployeeSchedulesAllRequest( employeeId, raw, - customerId, + consumerId, appId, serviceId, passThrough, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisEmployeesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisEmployeesAddRequest.java index 1134e8c..fcc4524 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisEmployeesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisEmployeesAddRequest.java @@ -31,7 +31,7 @@ public class HrisEmployeesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class HrisEmployeesAddRequest { @JsonCreator public HrisEmployeesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, EmployeeInput employee) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(employee, "employee"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.employee = employee; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public HrisEmployeesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisEmployeesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisEmployeesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { HrisEmployeesAddRequest other = (HrisEmployeesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.employee, other.employee); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, employee); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisEmployeesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "employee", employee); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public HrisEmployeesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisEmployeesAddRequest( raw, - customerId, + consumerId, appId, serviceId, employee); diff --git a/src/main/java/com/apideck/unify/models/operations/HrisEmployeesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisEmployeesAllRequest.java index 1712cff..354a2d8 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisEmployeesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisEmployeesAllRequest.java @@ -37,7 +37,7 @@ public class HrisEmployeesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -90,7 +90,7 @@ public class HrisEmployeesAllRequest { @JsonCreator public HrisEmployeesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -100,7 +100,7 @@ public HrisEmployeesAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -110,7 +110,7 @@ public HrisEmployeesAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -137,8 +137,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -233,18 +233,18 @@ public HrisEmployeesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisEmployeesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisEmployeesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -403,7 +403,7 @@ public boolean equals(java.lang.Object o) { HrisEmployeesAllRequest other = (HrisEmployeesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -418,7 +418,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -433,7 +433,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisEmployeesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -448,7 +448,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -491,18 +491,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -658,7 +658,7 @@ public HrisEmployeesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new HrisEmployeesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisEmployeesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisEmployeesDeleteRequest.java index 2b8dbd9..212d280 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisEmployeesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisEmployeesDeleteRequest.java @@ -30,7 +30,7 @@ public class HrisEmployeesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class HrisEmployeesDeleteRequest { @JsonCreator public HrisEmployeesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public HrisEmployeesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisEmployeesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisEmployeesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { HrisEmployeesDeleteRequest other = (HrisEmployeesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisEmployeesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public HrisEmployeesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisEmployeesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/HrisEmployeesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisEmployeesOneRequest.java index fc2f4d9..71efe06 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisEmployeesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisEmployeesOneRequest.java @@ -35,7 +35,7 @@ public class HrisEmployeesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -76,7 +76,7 @@ public class HrisEmployeesOneRequest { @JsonCreator public HrisEmployeesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, @@ -84,7 +84,7 @@ public HrisEmployeesOneRequest( Optional filter, Optional> passThrough) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); @@ -92,7 +92,7 @@ public HrisEmployeesOneRequest( Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(passThrough, "passThrough"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -118,8 +118,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -188,18 +188,18 @@ public HrisEmployeesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisEmployeesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisEmployeesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -322,7 +322,7 @@ public boolean equals(java.lang.Object o) { HrisEmployeesOneRequest other = (HrisEmployeesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -335,7 +335,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -348,7 +348,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisEmployeesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -361,7 +361,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -391,18 +391,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -519,7 +519,7 @@ public HrisEmployeesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisEmployeesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisEmployeesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisEmployeesUpdateRequest.java index 08692b4..e361e09 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisEmployeesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisEmployeesUpdateRequest.java @@ -31,7 +31,7 @@ public class HrisEmployeesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class HrisEmployeesUpdateRequest { @JsonCreator public HrisEmployeesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, EmployeeInput employee) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(employee, "employee"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public HrisEmployeesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisEmployeesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisEmployeesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisEmployeesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { HrisEmployeesUpdateRequest other = (HrisEmployeesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisEmployeesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public HrisEmployeesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisEmployeesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisPayrollsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisPayrollsAllRequest.java index 1021918..5ffdf3e 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisPayrollsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisPayrollsAllRequest.java @@ -35,7 +35,7 @@ public class HrisPayrollsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -70,21 +70,21 @@ public class HrisPayrollsAllRequest { @JsonCreator public HrisPayrollsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional filter, Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.filter = filter; @@ -108,8 +108,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -179,18 +179,18 @@ public HrisPayrollsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisPayrollsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisPayrollsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisPayrollsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisPayrollsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -295,7 +295,7 @@ public boolean equals(java.lang.Object o) { HrisPayrollsAllRequest other = (HrisPayrollsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.filter, other.filter) && @@ -307,7 +307,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, filter, @@ -319,7 +319,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisPayrollsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "filter", filter, @@ -331,7 +331,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -368,18 +368,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -478,7 +478,7 @@ public HrisPayrollsAllRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisPayrollsAllRequest( raw, - customerId, + consumerId, appId, serviceId, filter, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisPayrollsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisPayrollsOneRequest.java index 2b5e3c2..f39f7a2 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisPayrollsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisPayrollsOneRequest.java @@ -37,7 +37,7 @@ public class HrisPayrollsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -61,19 +61,19 @@ public class HrisPayrollsOneRequest { public HrisPayrollsOneRequest( String payrollId, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable fields) { Utils.checkNotNull(payrollId, "payrollId"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(fields, "fields"); this.payrollId = payrollId; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.fields = fields; @@ -104,8 +104,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -166,18 +166,18 @@ public HrisPayrollsOneRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisPayrollsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisPayrollsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisPayrollsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisPayrollsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -247,7 +247,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.payrollId, other.payrollId) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.fields, other.fields); @@ -258,7 +258,7 @@ public int hashCode() { return Objects.hash( payrollId, raw, - customerId, + consumerId, appId, serviceId, fields); @@ -269,7 +269,7 @@ public String toString() { return Utils.toString(HrisPayrollsOneRequest.class, "payrollId", payrollId, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "fields", fields); @@ -281,7 +281,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -323,18 +323,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -398,7 +398,7 @@ public HrisPayrollsOneRequest build() { } return new HrisPayrollsOneRequest( payrollId, raw, - customerId, + consumerId, appId, serviceId, fields); diff --git a/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsAddRequest.java index ffa1929..d955190 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsAddRequest.java @@ -31,7 +31,7 @@ public class HrisTimeOffRequestsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class HrisTimeOffRequestsAddRequest { @JsonCreator public HrisTimeOffRequestsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, TimeOffRequestInput timeOffRequest) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(timeOffRequest, "timeOffRequest"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.timeOffRequest = timeOffRequest; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public HrisTimeOffRequestsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisTimeOffRequestsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisTimeOffRequestsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisTimeOffRequestsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisTimeOffRequestsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { HrisTimeOffRequestsAddRequest other = (HrisTimeOffRequestsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.timeOffRequest, other.timeOffRequest); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, timeOffRequest); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisTimeOffRequestsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "timeOffRequest", timeOffRequest); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public HrisTimeOffRequestsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisTimeOffRequestsAddRequest( raw, - customerId, + consumerId, appId, serviceId, timeOffRequest); diff --git a/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsAllRequest.java index b23b027..2ec2243 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsAllRequest.java @@ -36,7 +36,7 @@ public class HrisTimeOffRequestsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -83,7 +83,7 @@ public class HrisTimeOffRequestsAllRequest { @JsonCreator public HrisTimeOffRequestsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -92,7 +92,7 @@ public HrisTimeOffRequestsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -101,7 +101,7 @@ public HrisTimeOffRequestsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -127,8 +127,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -214,18 +214,18 @@ public HrisTimeOffRequestsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public HrisTimeOffRequestsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisTimeOffRequestsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisTimeOffRequestsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisTimeOffRequestsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -366,7 +366,7 @@ public boolean equals(java.lang.Object o) { HrisTimeOffRequestsAllRequest other = (HrisTimeOffRequestsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -380,7 +380,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -394,7 +394,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisTimeOffRequestsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -408,7 +408,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -449,18 +449,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -598,7 +598,7 @@ public HrisTimeOffRequestsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new HrisTimeOffRequestsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsDeleteRequest.java index d607445..bfae99a 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsDeleteRequest.java @@ -30,7 +30,7 @@ public class HrisTimeOffRequestsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -59,19 +59,19 @@ public class HrisTimeOffRequestsDeleteRequest { @JsonCreator public HrisTimeOffRequestsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, String employeeId) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(employeeId, "employeeId"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public HrisTimeOffRequestsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisTimeOffRequestsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisTimeOffRequestsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisTimeOffRequestsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisTimeOffRequestsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -237,7 +237,7 @@ public boolean equals(java.lang.Object o) { HrisTimeOffRequestsDeleteRequest other = (HrisTimeOffRequestsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -248,7 +248,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -259,7 +259,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisTimeOffRequestsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -270,7 +270,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -296,18 +296,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -379,7 +379,7 @@ public HrisTimeOffRequestsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisTimeOffRequestsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsOneRequest.java index 1e5a161..598a852 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsOneRequest.java @@ -31,7 +31,7 @@ public class HrisTimeOffRequestsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -66,21 +66,21 @@ public class HrisTimeOffRequestsOneRequest { @JsonCreator public HrisTimeOffRequestsOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields, String employeeId) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); Utils.checkNotNull(employeeId, "employeeId"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -106,8 +106,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -166,18 +166,18 @@ public HrisTimeOffRequestsOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisTimeOffRequestsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisTimeOffRequestsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisTimeOffRequestsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisTimeOffRequestsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -273,7 +273,7 @@ public boolean equals(java.lang.Object o) { HrisTimeOffRequestsOneRequest other = (HrisTimeOffRequestsOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -285,7 +285,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -297,7 +297,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisTimeOffRequestsOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -309,7 +309,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -337,18 +337,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -438,7 +438,7 @@ public HrisTimeOffRequestsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisTimeOffRequestsOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsUpdateRequest.java index d9d5128..9ddc36e 100644 --- a/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/HrisTimeOffRequestsUpdateRequest.java @@ -31,7 +31,7 @@ public class HrisTimeOffRequestsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -63,21 +63,21 @@ public class HrisTimeOffRequestsUpdateRequest { @JsonCreator public HrisTimeOffRequestsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, String employeeId, TimeOffRequestInput timeOffRequest) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(employeeId, "employeeId"); Utils.checkNotNull(timeOffRequest, "timeOffRequest"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -104,8 +104,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -161,18 +161,18 @@ public HrisTimeOffRequestsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public HrisTimeOffRequestsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public HrisTimeOffRequestsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public HrisTimeOffRequestsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public HrisTimeOffRequestsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -256,7 +256,7 @@ public boolean equals(java.lang.Object o) { HrisTimeOffRequestsUpdateRequest other = (HrisTimeOffRequestsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -268,7 +268,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -280,7 +280,7 @@ public int hashCode() { public String toString() { return Utils.toString(HrisTimeOffRequestsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -292,7 +292,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -320,18 +320,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -409,7 +409,7 @@ public HrisTimeOffRequestsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new HrisTimeOffRequestsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTagsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTagsAllRequest.java index a792c6f..031c185 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTagsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTagsAllRequest.java @@ -41,7 +41,7 @@ public class IssueTrackingCollectionTagsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -83,7 +83,7 @@ public class IssueTrackingCollectionTagsAllRequest { public IssueTrackingCollectionTagsAllRequest( String collectionId, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -92,7 +92,7 @@ public IssueTrackingCollectionTagsAllRequest( JsonNullable fields) { Utils.checkNotNull(collectionId, "collectionId"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -101,7 +101,7 @@ public IssueTrackingCollectionTagsAllRequest( Utils.checkNotNull(fields, "fields"); this.collectionId = collectionId; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -135,8 +135,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -222,18 +222,18 @@ public IssueTrackingCollectionTagsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTagsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionTagsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTagsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionTagsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -357,7 +357,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.collectionId, other.collectionId) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -371,7 +371,7 @@ public int hashCode() { return Objects.hash( collectionId, raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -385,7 +385,7 @@ public String toString() { return Utils.toString(IssueTrackingCollectionTagsAllRequest.class, "collectionId", collectionId, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -400,7 +400,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -448,18 +448,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -580,7 +580,7 @@ public IssueTrackingCollectionTagsAllRequest build() { } return new IssueTrackingCollectionTagsAllRequest( collectionId, raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsAddRequest.java index 46cb474..042369f 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsAddRequest.java @@ -31,7 +31,7 @@ public class IssueTrackingCollectionTicketCommentsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -63,21 +63,21 @@ public class IssueTrackingCollectionTicketCommentsAddRequest { @JsonCreator public IssueTrackingCollectionTicketCommentsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, String collectionId, String ticketId, CollectionTicketCommentInput collectionTicketComment) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(collectionId, "collectionId"); Utils.checkNotNull(ticketId, "ticketId"); Utils.checkNotNull(collectionTicketComment, "collectionTicketComment"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.collectionId = collectionId; @@ -104,8 +104,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -170,18 +170,18 @@ public IssueTrackingCollectionTicketCommentsAddRequest withRaw(Optional /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketCommentsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionTicketCommentsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketCommentsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionTicketCommentsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -256,7 +256,7 @@ public boolean equals(java.lang.Object o) { IssueTrackingCollectionTicketCommentsAddRequest other = (IssueTrackingCollectionTicketCommentsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.collectionId, other.collectionId) && @@ -268,7 +268,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, collectionId, @@ -280,7 +280,7 @@ public int hashCode() { public String toString() { return Utils.toString(IssueTrackingCollectionTicketCommentsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "collectionId", collectionId, @@ -292,7 +292,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -329,18 +329,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -409,7 +409,7 @@ public IssueTrackingCollectionTicketCommentsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new IssueTrackingCollectionTicketCommentsAddRequest( raw, - customerId, + consumerId, appId, serviceId, collectionId, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsAllRequest.java index 6bb695f..46cbcee 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsAllRequest.java @@ -36,7 +36,7 @@ public class IssueTrackingCollectionTicketCommentsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -95,7 +95,7 @@ public class IssueTrackingCollectionTicketCommentsAllRequest { @JsonCreator public IssueTrackingCollectionTicketCommentsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -106,7 +106,7 @@ public IssueTrackingCollectionTicketCommentsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -117,7 +117,7 @@ public IssueTrackingCollectionTicketCommentsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -147,8 +147,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -250,18 +250,18 @@ public IssueTrackingCollectionTicketCommentsAllRequest withRaw(Optional /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketCommentsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionTicketCommentsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketCommentsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionTicketCommentsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -420,7 +420,7 @@ public boolean equals(java.lang.Object o) { IssueTrackingCollectionTicketCommentsAllRequest other = (IssueTrackingCollectionTicketCommentsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -436,7 +436,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -452,7 +452,7 @@ public int hashCode() { public String toString() { return Utils.toString(IssueTrackingCollectionTicketCommentsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -468,7 +468,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -513,18 +513,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -680,7 +680,7 @@ public IssueTrackingCollectionTicketCommentsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new IssueTrackingCollectionTicketCommentsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsDeleteRequest.java index 9643ffd..a4b7676 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsDeleteRequest.java @@ -30,7 +30,7 @@ public class IssueTrackingCollectionTicketCommentsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -65,21 +65,21 @@ public class IssueTrackingCollectionTicketCommentsDeleteRequest { @JsonCreator public IssueTrackingCollectionTicketCommentsDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, String collectionId, String ticketId) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(collectionId, "collectionId"); Utils.checkNotNull(ticketId, "ticketId"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -106,8 +106,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -166,18 +166,18 @@ public IssueTrackingCollectionTicketCommentsDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketCommentsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionTicketCommentsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketCommentsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionTicketCommentsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -264,7 +264,7 @@ public boolean equals(java.lang.Object o) { IssueTrackingCollectionTicketCommentsDeleteRequest other = (IssueTrackingCollectionTicketCommentsDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -276,7 +276,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -288,7 +288,7 @@ public int hashCode() { public String toString() { return Utils.toString(IssueTrackingCollectionTicketCommentsDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -300,7 +300,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -328,18 +328,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -420,7 +420,7 @@ public IssueTrackingCollectionTicketCommentsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new IssueTrackingCollectionTicketCommentsDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsOneRequest.java index 4b2fba7..68e9b65 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsOneRequest.java @@ -38,7 +38,7 @@ public class IssueTrackingCollectionTicketCommentsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -86,7 +86,7 @@ public class IssueTrackingCollectionTicketCommentsOneRequest { public IssueTrackingCollectionTicketCommentsOneRequest( String id, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -96,7 +96,7 @@ public IssueTrackingCollectionTicketCommentsOneRequest( JsonNullable fields) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -106,7 +106,7 @@ public IssueTrackingCollectionTicketCommentsOneRequest( Utils.checkNotNull(fields, "fields"); this.id = id; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -143,8 +143,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -237,18 +237,18 @@ public IssueTrackingCollectionTicketCommentsOneRequest withRaw(Optional /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketCommentsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionTicketCommentsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketCommentsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionTicketCommentsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -372,7 +372,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.id, other.id) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -387,7 +387,7 @@ public int hashCode() { return Objects.hash( id, raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -402,7 +402,7 @@ public String toString() { return Utils.toString(IssueTrackingCollectionTicketCommentsOneRequest.class, "id", id, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -418,7 +418,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -468,18 +468,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -600,7 +600,7 @@ public IssueTrackingCollectionTicketCommentsOneRequest build() { } return new IssueTrackingCollectionTicketCommentsOneRequest( id, raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsUpdateRequest.java index c29fadc..ead30bd 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketCommentsUpdateRequest.java @@ -31,7 +31,7 @@ public class IssueTrackingCollectionTicketCommentsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -69,7 +69,7 @@ public class IssueTrackingCollectionTicketCommentsUpdateRequest { @JsonCreator public IssueTrackingCollectionTicketCommentsUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, @@ -77,7 +77,7 @@ public IssueTrackingCollectionTicketCommentsUpdateRequest( String ticketId, CollectionTicketCommentInput collectionTicketComment) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); @@ -85,7 +85,7 @@ public IssueTrackingCollectionTicketCommentsUpdateRequest( Utils.checkNotNull(ticketId, "ticketId"); Utils.checkNotNull(collectionTicketComment, "collectionTicketComment"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -114,8 +114,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -179,18 +179,18 @@ public IssueTrackingCollectionTicketCommentsUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketCommentsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionTicketCommentsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketCommentsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionTicketCommentsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -283,7 +283,7 @@ public boolean equals(java.lang.Object o) { IssueTrackingCollectionTicketCommentsUpdateRequest other = (IssueTrackingCollectionTicketCommentsUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -296,7 +296,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -309,7 +309,7 @@ public int hashCode() { public String toString() { return Utils.toString(IssueTrackingCollectionTicketCommentsUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -322,7 +322,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -352,18 +352,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -450,7 +450,7 @@ public IssueTrackingCollectionTicketCommentsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new IssueTrackingCollectionTicketCommentsUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsAddRequest.java index 90fcd65..625d032 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsAddRequest.java @@ -31,7 +31,7 @@ public class IssueTrackingCollectionTicketsAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class IssueTrackingCollectionTicketsAddRequest { @JsonCreator public IssueTrackingCollectionTicketsAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, String collectionId, TicketInput ticket) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(collectionId, "collectionId"); Utils.checkNotNull(ticket, "ticket"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.collectionId = collectionId; @@ -94,8 +94,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -152,18 +152,18 @@ public IssueTrackingCollectionTicketsAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionTicketsAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionTicketsAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { IssueTrackingCollectionTicketsAddRequest other = (IssueTrackingCollectionTicketsAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.collectionId, other.collectionId) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, collectionId, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(IssueTrackingCollectionTicketsAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "collectionId", collectionId, @@ -262,7 +262,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -297,18 +297,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public IssueTrackingCollectionTicketsAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new IssueTrackingCollectionTicketsAddRequest( raw, - customerId, + consumerId, appId, serviceId, collectionId, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsAllRequest.java index 694dbf9..9e463c9 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsAllRequest.java @@ -37,7 +37,7 @@ public class IssueTrackingCollectionTicketsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -96,7 +96,7 @@ public class IssueTrackingCollectionTicketsAllRequest { @JsonCreator public IssueTrackingCollectionTicketsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -107,7 +107,7 @@ public IssueTrackingCollectionTicketsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -118,7 +118,7 @@ public IssueTrackingCollectionTicketsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -147,8 +147,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -251,18 +251,18 @@ public IssueTrackingCollectionTicketsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionTicketsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionTicketsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -430,7 +430,7 @@ public boolean equals(java.lang.Object o) { IssueTrackingCollectionTicketsAllRequest other = (IssueTrackingCollectionTicketsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -446,7 +446,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -462,7 +462,7 @@ public int hashCode() { public String toString() { return Utils.toString(IssueTrackingCollectionTicketsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -478,7 +478,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -523,18 +523,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -699,7 +699,7 @@ public IssueTrackingCollectionTicketsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new IssueTrackingCollectionTicketsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsDeleteRequest.java index 7a98a4c..6300462 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsDeleteRequest.java @@ -30,7 +30,7 @@ public class IssueTrackingCollectionTicketsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -59,19 +59,19 @@ public class IssueTrackingCollectionTicketsDeleteRequest { @JsonCreator public IssueTrackingCollectionTicketsDeleteRequest( String ticketId, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, String collectionId) { Utils.checkNotNull(ticketId, "ticketId"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(collectionId, "collectionId"); this.ticketId = ticketId; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String ticketId() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public IssueTrackingCollectionTicketsDeleteRequest withTicketId(String ticketId) /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionTicketsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionTicketsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -237,7 +237,7 @@ public boolean equals(java.lang.Object o) { IssueTrackingCollectionTicketsDeleteRequest other = (IssueTrackingCollectionTicketsDeleteRequest) o; return Objects.deepEquals(this.ticketId, other.ticketId) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -248,7 +248,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( ticketId, - customerId, + consumerId, appId, serviceId, raw, @@ -259,7 +259,7 @@ public int hashCode() { public String toString() { return Utils.toString(IssueTrackingCollectionTicketsDeleteRequest.class, "ticketId", ticketId, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -270,7 +270,7 @@ public final static class Builder { private String ticketId; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -296,18 +296,18 @@ public Builder ticketId(String ticketId) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -379,7 +379,7 @@ public IssueTrackingCollectionTicketsDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new IssueTrackingCollectionTicketsDeleteRequest( ticketId, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsOneRequest.java index 72299b2..cc0f8da 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsOneRequest.java @@ -31,7 +31,7 @@ public class IssueTrackingCollectionTicketsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -66,21 +66,21 @@ public class IssueTrackingCollectionTicketsOneRequest { @JsonCreator public IssueTrackingCollectionTicketsOneRequest( String ticketId, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, String collectionId, JsonNullable fields) { Utils.checkNotNull(ticketId, "ticketId"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(collectionId, "collectionId"); Utils.checkNotNull(fields, "fields"); this.ticketId = ticketId; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -106,8 +106,8 @@ public String ticketId() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -166,18 +166,18 @@ public IssueTrackingCollectionTicketsOneRequest withTicketId(String ticketId) { /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionTicketsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionTicketsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -273,7 +273,7 @@ public boolean equals(java.lang.Object o) { IssueTrackingCollectionTicketsOneRequest other = (IssueTrackingCollectionTicketsOneRequest) o; return Objects.deepEquals(this.ticketId, other.ticketId) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -285,7 +285,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( ticketId, - customerId, + consumerId, appId, serviceId, raw, @@ -297,7 +297,7 @@ public int hashCode() { public String toString() { return Utils.toString(IssueTrackingCollectionTicketsOneRequest.class, "ticketId", ticketId, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -309,7 +309,7 @@ public final static class Builder { private String ticketId; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -337,18 +337,18 @@ public Builder ticketId(String ticketId) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -438,7 +438,7 @@ public IssueTrackingCollectionTicketsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new IssueTrackingCollectionTicketsOneRequest( ticketId, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsUpdateRequest.java index ecb42bc..afeef50 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionTicketsUpdateRequest.java @@ -31,7 +31,7 @@ public class IssueTrackingCollectionTicketsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -63,21 +63,21 @@ public class IssueTrackingCollectionTicketsUpdateRequest { @JsonCreator public IssueTrackingCollectionTicketsUpdateRequest( String ticketId, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, String collectionId, TicketInput ticket) { Utils.checkNotNull(ticketId, "ticketId"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(collectionId, "collectionId"); Utils.checkNotNull(ticket, "ticket"); this.ticketId = ticketId; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -104,8 +104,8 @@ public String ticketId() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -161,18 +161,18 @@ public IssueTrackingCollectionTicketsUpdateRequest withTicketId(String ticketId) /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionTicketsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionTicketsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionTicketsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -256,7 +256,7 @@ public boolean equals(java.lang.Object o) { IssueTrackingCollectionTicketsUpdateRequest other = (IssueTrackingCollectionTicketsUpdateRequest) o; return Objects.deepEquals(this.ticketId, other.ticketId) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -268,7 +268,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( ticketId, - customerId, + consumerId, appId, serviceId, raw, @@ -280,7 +280,7 @@ public int hashCode() { public String toString() { return Utils.toString(IssueTrackingCollectionTicketsUpdateRequest.class, "ticketId", ticketId, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -292,7 +292,7 @@ public final static class Builder { private String ticketId; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -320,18 +320,18 @@ public Builder ticketId(String ticketId) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -409,7 +409,7 @@ public IssueTrackingCollectionTicketsUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new IssueTrackingCollectionTicketsUpdateRequest( ticketId, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionUsersAllRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionUsersAllRequest.java index 1d78dfc..a7ab501 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionUsersAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionUsersAllRequest.java @@ -41,7 +41,7 @@ public class IssueTrackingCollectionUsersAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -83,7 +83,7 @@ public class IssueTrackingCollectionUsersAllRequest { public IssueTrackingCollectionUsersAllRequest( String collectionId, Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -92,7 +92,7 @@ public IssueTrackingCollectionUsersAllRequest( JsonNullable fields) { Utils.checkNotNull(collectionId, "collectionId"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -101,7 +101,7 @@ public IssueTrackingCollectionUsersAllRequest( Utils.checkNotNull(fields, "fields"); this.collectionId = collectionId; this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -135,8 +135,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -222,18 +222,18 @@ public IssueTrackingCollectionUsersAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionUsersAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionUsersAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionUsersAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionUsersAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -357,7 +357,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.collectionId, other.collectionId) && Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -371,7 +371,7 @@ public int hashCode() { return Objects.hash( collectionId, raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -385,7 +385,7 @@ public String toString() { return Utils.toString(IssueTrackingCollectionUsersAllRequest.class, "collectionId", collectionId, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -400,7 +400,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -448,18 +448,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -580,7 +580,7 @@ public IssueTrackingCollectionUsersAllRequest build() { } return new IssueTrackingCollectionUsersAllRequest( collectionId, raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionUsersOneRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionUsersOneRequest.java index c860296..df35167 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionUsersOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionUsersOneRequest.java @@ -37,7 +37,7 @@ public class IssueTrackingCollectionUsersOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -67,21 +67,21 @@ public class IssueTrackingCollectionUsersOneRequest { public IssueTrackingCollectionUsersOneRequest( String collectionId, String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(collectionId, "collectionId"); Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.collectionId = collectionId; this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -114,8 +114,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -175,18 +175,18 @@ public IssueTrackingCollectionUsersOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionUsersOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionUsersOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionUsersOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionUsersOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -274,7 +274,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.collectionId, other.collectionId) && Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -286,7 +286,7 @@ public int hashCode() { return Objects.hash( collectionId, id, - customerId, + consumerId, appId, serviceId, raw, @@ -298,7 +298,7 @@ public String toString() { return Utils.toString(IssueTrackingCollectionUsersOneRequest.class, "collectionId", collectionId, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -311,7 +311,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -346,18 +346,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -439,7 +439,7 @@ public IssueTrackingCollectionUsersOneRequest build() { } return new IssueTrackingCollectionUsersOneRequest( collectionId, id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionsAllRequest.java index 6070737..b895c52 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionsAllRequest.java @@ -36,7 +36,7 @@ public class IssueTrackingCollectionsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -83,7 +83,7 @@ public class IssueTrackingCollectionsAllRequest { @JsonCreator public IssueTrackingCollectionsAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, @@ -92,7 +92,7 @@ public IssueTrackingCollectionsAllRequest( Optional> passThrough, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); @@ -101,7 +101,7 @@ public IssueTrackingCollectionsAllRequest( Utils.checkNotNull(passThrough, "passThrough"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -127,8 +127,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -214,18 +214,18 @@ public IssueTrackingCollectionsAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -366,7 +366,7 @@ public boolean equals(java.lang.Object o) { IssueTrackingCollectionsAllRequest other = (IssueTrackingCollectionsAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -380,7 +380,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -394,7 +394,7 @@ public int hashCode() { public String toString() { return Utils.toString(IssueTrackingCollectionsAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -408,7 +408,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -449,18 +449,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -598,7 +598,7 @@ public IssueTrackingCollectionsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new IssueTrackingCollectionsAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionsOneRequest.java index c9759c1..95947e9 100644 --- a/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/IssueTrackingCollectionsOneRequest.java @@ -31,7 +31,7 @@ public class IssueTrackingCollectionsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class IssueTrackingCollectionsOneRequest { @JsonCreator public IssueTrackingCollectionsOneRequest( String collectionId, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(collectionId, "collectionId"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.collectionId = collectionId; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String collectionId() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public IssueTrackingCollectionsOneRequest withCollectionId(String collectionId) /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public IssueTrackingCollectionsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public IssueTrackingCollectionsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public IssueTrackingCollectionsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { IssueTrackingCollectionsOneRequest other = (IssueTrackingCollectionsOneRequest) o; return Objects.deepEquals(this.collectionId, other.collectionId) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( collectionId, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(IssueTrackingCollectionsOneRequest.class, "collectionId", collectionId, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String collectionId; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder collectionId(String collectionId) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public IssueTrackingCollectionsOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new IssueTrackingCollectionsOneRequest( collectionId, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsAddRequest.java deleted file mode 100644 index e32294c..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAddRequest.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.LeadInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class LeadLeadsAddRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - @SpeakeasyMetadata("request:mediaType=application/json") - private LeadInput lead; - - @JsonCreator - public LeadLeadsAddRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - LeadInput lead) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(lead, "lead"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.lead = lead; - } - - public LeadLeadsAddRequest( - LeadInput lead) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), lead); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - @JsonIgnore - public LeadInput lead() { - return lead; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public LeadLeadsAddRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public LeadLeadsAddRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public LeadLeadsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public LeadLeadsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public LeadLeadsAddRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public LeadLeadsAddRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public LeadLeadsAddRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public LeadLeadsAddRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public LeadLeadsAddRequest withLead(LeadInput lead) { - Utils.checkNotNull(lead, "lead"); - this.lead = lead; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LeadLeadsAddRequest other = (LeadLeadsAddRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.lead, other.lead); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - lead); - } - - @Override - public String toString() { - return Utils.toString(LeadLeadsAddRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "lead", lead); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private LeadInput lead; - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public Builder lead(LeadInput lead) { - Utils.checkNotNull(lead, "lead"); - this.lead = lead; - return this; - } - - public LeadLeadsAddRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new LeadLeadsAddRequest( - raw, - customerId, - appId, - serviceId, - lead); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAddRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsAddRequestBuilder.java deleted file mode 100644 index 1b5ec0b..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAddRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class LeadLeadsAddRequestBuilder { - - private LeadLeadsAddRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallLeadLeadsAdd sdk; - - public LeadLeadsAddRequestBuilder(SDKMethodInterfaces.MethodCallLeadLeadsAdd sdk) { - this.sdk = sdk; - } - - public LeadLeadsAddRequestBuilder request(LeadLeadsAddRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public LeadLeadsAddRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public LeadLeadsAddRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public LeadLeadsAddResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.create( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAddResponse.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsAddResponse.java deleted file mode 100644 index 5cde9b3..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAddResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.CreateLeadResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class LeadLeadsAddResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Lead created - */ - private Optional createLeadResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public LeadLeadsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional createLeadResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(createLeadResponse, "createLeadResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.createLeadResponse = createLeadResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public LeadLeadsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Lead created - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createLeadResponse() { - return (Optional) createLeadResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public LeadLeadsAddResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public LeadLeadsAddResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public LeadLeadsAddResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Lead created - */ - public LeadLeadsAddResponse withCreateLeadResponse(CreateLeadResponse createLeadResponse) { - Utils.checkNotNull(createLeadResponse, "createLeadResponse"); - this.createLeadResponse = Optional.ofNullable(createLeadResponse); - return this; - } - - /** - * Lead created - */ - public LeadLeadsAddResponse withCreateLeadResponse(Optional createLeadResponse) { - Utils.checkNotNull(createLeadResponse, "createLeadResponse"); - this.createLeadResponse = createLeadResponse; - return this; - } - - /** - * Unexpected error - */ - public LeadLeadsAddResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public LeadLeadsAddResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LeadLeadsAddResponse other = (LeadLeadsAddResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.createLeadResponse, other.createLeadResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - createLeadResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(LeadLeadsAddResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "createLeadResponse", createLeadResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional createLeadResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Lead created - */ - public Builder createLeadResponse(CreateLeadResponse createLeadResponse) { - Utils.checkNotNull(createLeadResponse, "createLeadResponse"); - this.createLeadResponse = Optional.ofNullable(createLeadResponse); - return this; - } - - /** - * Lead created - */ - public Builder createLeadResponse(Optional createLeadResponse) { - Utils.checkNotNull(createLeadResponse, "createLeadResponse"); - this.createLeadResponse = createLeadResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public LeadLeadsAddResponse build() { - return new LeadLeadsAddResponse( - contentType, - statusCode, - rawResponse, - createLeadResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsAllRequest.java deleted file mode 100644 index 6305ce0..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAllRequest.java +++ /dev/null @@ -1,623 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.LeadsFilter; -import com.apideck.unify.models.components.LeadsSort; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class LeadLeadsAllRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private JsonNullable cursor; - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - /** - * Apply filters - */ - @SpeakeasyMetadata("queryParam:style=deepObject,explode=true,name=filter") - private Optional filter; - - /** - * Apply sorting - */ - @SpeakeasyMetadata("queryParam:style=deepObject,explode=true,name=sort") - private Optional sort; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public LeadLeadsAllRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - JsonNullable cursor, - Optional limit, - Optional filter, - Optional sort, - JsonNullable fields) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(limit, "limit"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(sort, "sort"); - Utils.checkNotNull(fields, "fields"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.cursor = cursor; - this.limit = limit; - this.filter = filter; - this.sort = sort; - this.fields = fields; - } - - public LeadLeadsAllRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @JsonIgnore - public JsonNullable cursor() { - return cursor; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @JsonIgnore - public Optional limit() { - return limit; - } - - /** - * Apply filters - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - /** - * Apply sorting - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional sort() { - return (Optional) sort; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public LeadLeadsAllRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public LeadLeadsAllRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public LeadLeadsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public LeadLeadsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public LeadLeadsAllRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public LeadLeadsAllRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public LeadLeadsAllRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public LeadLeadsAllRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public LeadLeadsAllRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public LeadLeadsAllRequest withCursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public LeadLeadsAllRequest withLimit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public LeadLeadsAllRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * Apply filters - */ - public LeadLeadsAllRequest withFilter(LeadsFilter filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - /** - * Apply filters - */ - public LeadLeadsAllRequest withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - /** - * Apply sorting - */ - public LeadLeadsAllRequest withSort(LeadsSort sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = Optional.ofNullable(sort); - return this; - } - - /** - * Apply sorting - */ - public LeadLeadsAllRequest withSort(Optional sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = sort; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public LeadLeadsAllRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public LeadLeadsAllRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LeadLeadsAllRequest other = (LeadLeadsAllRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.filter, other.filter) && - Objects.deepEquals(this.sort, other.sort) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - filter, - sort, - fields); - } - - @Override - public String toString() { - return Utils.toString(LeadLeadsAllRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "cursor", cursor, - "limit", limit, - "filter", filter, - "sort", sort, - "fields", fields); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private JsonNullable cursor = JsonNullable.undefined(); - - private Optional limit; - - private Optional filter = Optional.empty(); - - private Optional sort = Optional.empty(); - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * Apply filters - */ - public Builder filter(LeadsFilter filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - /** - * Apply filters - */ - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - /** - * Apply sorting - */ - public Builder sort(LeadsSort sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = Optional.ofNullable(sort); - return this; - } - - /** - * Apply sorting - */ - public Builder sort(Optional sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = sort; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public LeadLeadsAllRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } return new LeadLeadsAllRequest( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - filter, - sort, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "20", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsAllRequestBuilder.java deleted file mode 100644 index 3eaeddb..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAllRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class LeadLeadsAllRequestBuilder { - - private LeadLeadsAllRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallLeadLeadsAll sdk; - - public LeadLeadsAllRequestBuilder(SDKMethodInterfaces.MethodCallLeadLeadsAll sdk) { - this.sdk = sdk; - } - - public LeadLeadsAllRequestBuilder request(LeadLeadsAllRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public LeadLeadsAllRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public LeadLeadsAllRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public LeadLeadsAllResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.list( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAllResponse.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsAllResponse.java deleted file mode 100644 index a7670e9..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsAllResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetLeadsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class LeadLeadsAllResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Leads - */ - private Optional getLeadsResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public LeadLeadsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getLeadsResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getLeadsResponse, "getLeadsResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getLeadsResponse = getLeadsResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public LeadLeadsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Leads - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getLeadsResponse() { - return (Optional) getLeadsResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public LeadLeadsAllResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public LeadLeadsAllResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public LeadLeadsAllResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Leads - */ - public LeadLeadsAllResponse withGetLeadsResponse(GetLeadsResponse getLeadsResponse) { - Utils.checkNotNull(getLeadsResponse, "getLeadsResponse"); - this.getLeadsResponse = Optional.ofNullable(getLeadsResponse); - return this; - } - - /** - * Leads - */ - public LeadLeadsAllResponse withGetLeadsResponse(Optional getLeadsResponse) { - Utils.checkNotNull(getLeadsResponse, "getLeadsResponse"); - this.getLeadsResponse = getLeadsResponse; - return this; - } - - /** - * Unexpected error - */ - public LeadLeadsAllResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public LeadLeadsAllResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LeadLeadsAllResponse other = (LeadLeadsAllResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getLeadsResponse, other.getLeadsResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getLeadsResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(LeadLeadsAllResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getLeadsResponse", getLeadsResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getLeadsResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Leads - */ - public Builder getLeadsResponse(GetLeadsResponse getLeadsResponse) { - Utils.checkNotNull(getLeadsResponse, "getLeadsResponse"); - this.getLeadsResponse = Optional.ofNullable(getLeadsResponse); - return this; - } - - /** - * Leads - */ - public Builder getLeadsResponse(Optional getLeadsResponse) { - Utils.checkNotNull(getLeadsResponse, "getLeadsResponse"); - this.getLeadsResponse = getLeadsResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public LeadLeadsAllResponse build() { - return new LeadLeadsAllResponse( - contentType, - statusCode, - rawResponse, - getLeadsResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteRequest.java deleted file mode 100644 index 608f23c..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteRequest.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class LeadLeadsDeleteRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @JsonCreator - public LeadLeadsDeleteRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - } - - public LeadLeadsDeleteRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public LeadLeadsDeleteRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public LeadLeadsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public LeadLeadsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public LeadLeadsDeleteRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public LeadLeadsDeleteRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public LeadLeadsDeleteRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public LeadLeadsDeleteRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public LeadLeadsDeleteRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public LeadLeadsDeleteRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LeadLeadsDeleteRequest other = (LeadLeadsDeleteRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw); - } - - @Override - public String toString() { - return Utils.toString(LeadLeadsDeleteRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public LeadLeadsDeleteRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new LeadLeadsDeleteRequest( - id, - customerId, - appId, - serviceId, - raw); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteRequestBuilder.java deleted file mode 100644 index 447837d..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class LeadLeadsDeleteRequestBuilder { - - private LeadLeadsDeleteRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallLeadLeadsDelete sdk; - - public LeadLeadsDeleteRequestBuilder(SDKMethodInterfaces.MethodCallLeadLeadsDelete sdk) { - this.sdk = sdk; - } - - public LeadLeadsDeleteRequestBuilder request(LeadLeadsDeleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public LeadLeadsDeleteRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public LeadLeadsDeleteRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public LeadLeadsDeleteResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.delete( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteResponse.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteResponse.java deleted file mode 100644 index 22f35d6..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsDeleteResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.DeleteLeadResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class LeadLeadsDeleteResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Lead deleted - */ - private Optional deleteLeadResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public LeadLeadsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional deleteLeadResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(deleteLeadResponse, "deleteLeadResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.deleteLeadResponse = deleteLeadResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public LeadLeadsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Lead deleted - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deleteLeadResponse() { - return (Optional) deleteLeadResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public LeadLeadsDeleteResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public LeadLeadsDeleteResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public LeadLeadsDeleteResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Lead deleted - */ - public LeadLeadsDeleteResponse withDeleteLeadResponse(DeleteLeadResponse deleteLeadResponse) { - Utils.checkNotNull(deleteLeadResponse, "deleteLeadResponse"); - this.deleteLeadResponse = Optional.ofNullable(deleteLeadResponse); - return this; - } - - /** - * Lead deleted - */ - public LeadLeadsDeleteResponse withDeleteLeadResponse(Optional deleteLeadResponse) { - Utils.checkNotNull(deleteLeadResponse, "deleteLeadResponse"); - this.deleteLeadResponse = deleteLeadResponse; - return this; - } - - /** - * Unexpected error - */ - public LeadLeadsDeleteResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public LeadLeadsDeleteResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LeadLeadsDeleteResponse other = (LeadLeadsDeleteResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.deleteLeadResponse, other.deleteLeadResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - deleteLeadResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(LeadLeadsDeleteResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "deleteLeadResponse", deleteLeadResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional deleteLeadResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Lead deleted - */ - public Builder deleteLeadResponse(DeleteLeadResponse deleteLeadResponse) { - Utils.checkNotNull(deleteLeadResponse, "deleteLeadResponse"); - this.deleteLeadResponse = Optional.ofNullable(deleteLeadResponse); - return this; - } - - /** - * Lead deleted - */ - public Builder deleteLeadResponse(Optional deleteLeadResponse) { - Utils.checkNotNull(deleteLeadResponse, "deleteLeadResponse"); - this.deleteLeadResponse = deleteLeadResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public LeadLeadsDeleteResponse build() { - return new LeadLeadsDeleteResponse( - contentType, - statusCode, - rawResponse, - deleteLeadResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsOneRequest.java deleted file mode 100644 index 4395c98..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsOneRequest.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class LeadLeadsOneRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public LeadLeadsOneRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - JsonNullable fields) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(fields, "fields"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.fields = fields; - } - - public LeadLeadsOneRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public LeadLeadsOneRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public LeadLeadsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public LeadLeadsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public LeadLeadsOneRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public LeadLeadsOneRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public LeadLeadsOneRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public LeadLeadsOneRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public LeadLeadsOneRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public LeadLeadsOneRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public LeadLeadsOneRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public LeadLeadsOneRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LeadLeadsOneRequest other = (LeadLeadsOneRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - @Override - public String toString() { - return Utils.toString(LeadLeadsOneRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "fields", fields); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public LeadLeadsOneRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new LeadLeadsOneRequest( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsOneRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsOneRequestBuilder.java deleted file mode 100644 index 38b2137..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsOneRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class LeadLeadsOneRequestBuilder { - - private LeadLeadsOneRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallLeadLeadsOne sdk; - - public LeadLeadsOneRequestBuilder(SDKMethodInterfaces.MethodCallLeadLeadsOne sdk) { - this.sdk = sdk; - } - - public LeadLeadsOneRequestBuilder request(LeadLeadsOneRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public LeadLeadsOneRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public LeadLeadsOneRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public LeadLeadsOneResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.get( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsOneResponse.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsOneResponse.java deleted file mode 100644 index 8319dff..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsOneResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetLeadResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class LeadLeadsOneResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Lead - */ - private Optional getLeadResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public LeadLeadsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getLeadResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getLeadResponse, "getLeadResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getLeadResponse = getLeadResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public LeadLeadsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Lead - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getLeadResponse() { - return (Optional) getLeadResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public LeadLeadsOneResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public LeadLeadsOneResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public LeadLeadsOneResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Lead - */ - public LeadLeadsOneResponse withGetLeadResponse(GetLeadResponse getLeadResponse) { - Utils.checkNotNull(getLeadResponse, "getLeadResponse"); - this.getLeadResponse = Optional.ofNullable(getLeadResponse); - return this; - } - - /** - * Lead - */ - public LeadLeadsOneResponse withGetLeadResponse(Optional getLeadResponse) { - Utils.checkNotNull(getLeadResponse, "getLeadResponse"); - this.getLeadResponse = getLeadResponse; - return this; - } - - /** - * Unexpected error - */ - public LeadLeadsOneResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public LeadLeadsOneResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LeadLeadsOneResponse other = (LeadLeadsOneResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getLeadResponse, other.getLeadResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getLeadResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(LeadLeadsOneResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getLeadResponse", getLeadResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getLeadResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Lead - */ - public Builder getLeadResponse(GetLeadResponse getLeadResponse) { - Utils.checkNotNull(getLeadResponse, "getLeadResponse"); - this.getLeadResponse = Optional.ofNullable(getLeadResponse); - return this; - } - - /** - * Lead - */ - public Builder getLeadResponse(Optional getLeadResponse) { - Utils.checkNotNull(getLeadResponse, "getLeadResponse"); - this.getLeadResponse = getLeadResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public LeadLeadsOneResponse build() { - return new LeadLeadsOneResponse( - contentType, - statusCode, - rawResponse, - getLeadResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateRequest.java deleted file mode 100644 index a0bea70..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.LeadInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class LeadLeadsUpdateRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @SpeakeasyMetadata("request:mediaType=application/json") - private LeadInput lead; - - @JsonCreator - public LeadLeadsUpdateRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - LeadInput lead) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(lead, "lead"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.lead = lead; - } - - public LeadLeadsUpdateRequest( - String id, - LeadInput lead) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), lead); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - @JsonIgnore - public LeadInput lead() { - return lead; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public LeadLeadsUpdateRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public LeadLeadsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public LeadLeadsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public LeadLeadsUpdateRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public LeadLeadsUpdateRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public LeadLeadsUpdateRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public LeadLeadsUpdateRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public LeadLeadsUpdateRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public LeadLeadsUpdateRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public LeadLeadsUpdateRequest withLead(LeadInput lead) { - Utils.checkNotNull(lead, "lead"); - this.lead = lead; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LeadLeadsUpdateRequest other = (LeadLeadsUpdateRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.lead, other.lead); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - lead); - } - - @Override - public String toString() { - return Utils.toString(LeadLeadsUpdateRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "lead", lead); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private LeadInput lead; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public Builder lead(LeadInput lead) { - Utils.checkNotNull(lead, "lead"); - this.lead = lead; - return this; - } - - public LeadLeadsUpdateRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new LeadLeadsUpdateRequest( - id, - customerId, - appId, - serviceId, - raw, - lead); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateRequestBuilder.java deleted file mode 100644 index 1192121..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class LeadLeadsUpdateRequestBuilder { - - private LeadLeadsUpdateRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallLeadLeadsUpdate sdk; - - public LeadLeadsUpdateRequestBuilder(SDKMethodInterfaces.MethodCallLeadLeadsUpdate sdk) { - this.sdk = sdk; - } - - public LeadLeadsUpdateRequestBuilder request(LeadLeadsUpdateRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public LeadLeadsUpdateRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public LeadLeadsUpdateRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public LeadLeadsUpdateResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.update( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateResponse.java b/src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateResponse.java deleted file mode 100644 index 8b01e65..0000000 --- a/src/main/java/com/apideck/unify/models/operations/LeadLeadsUpdateResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateLeadResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class LeadLeadsUpdateResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Lead updated - */ - private Optional updateLeadResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public LeadLeadsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional updateLeadResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(updateLeadResponse, "updateLeadResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.updateLeadResponse = updateLeadResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public LeadLeadsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Lead updated - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updateLeadResponse() { - return (Optional) updateLeadResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public LeadLeadsUpdateResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public LeadLeadsUpdateResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public LeadLeadsUpdateResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Lead updated - */ - public LeadLeadsUpdateResponse withUpdateLeadResponse(UpdateLeadResponse updateLeadResponse) { - Utils.checkNotNull(updateLeadResponse, "updateLeadResponse"); - this.updateLeadResponse = Optional.ofNullable(updateLeadResponse); - return this; - } - - /** - * Lead updated - */ - public LeadLeadsUpdateResponse withUpdateLeadResponse(Optional updateLeadResponse) { - Utils.checkNotNull(updateLeadResponse, "updateLeadResponse"); - this.updateLeadResponse = updateLeadResponse; - return this; - } - - /** - * Unexpected error - */ - public LeadLeadsUpdateResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public LeadLeadsUpdateResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LeadLeadsUpdateResponse other = (LeadLeadsUpdateResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.updateLeadResponse, other.updateLeadResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - updateLeadResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(LeadLeadsUpdateResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "updateLeadResponse", updateLeadResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional updateLeadResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Lead updated - */ - public Builder updateLeadResponse(UpdateLeadResponse updateLeadResponse) { - Utils.checkNotNull(updateLeadResponse, "updateLeadResponse"); - this.updateLeadResponse = Optional.ofNullable(updateLeadResponse); - return this; - } - - /** - * Lead updated - */ - public Builder updateLeadResponse(Optional updateLeadResponse) { - Utils.checkNotNull(updateLeadResponse, "updateLeadResponse"); - this.updateLeadResponse = updateLeadResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public LeadLeadsUpdateResponse build() { - return new LeadLeadsUpdateResponse( - contentType, - statusCode, - rawResponse, - updateLeadResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/PosItemsAddRequest.java deleted file mode 100644 index f327e32..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsAddRequest.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.ItemInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosItemsAddRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - @SpeakeasyMetadata("request:mediaType=application/json") - private ItemInput item; - - @JsonCreator - public PosItemsAddRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - ItemInput item) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(item, "item"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.item = item; - } - - public PosItemsAddRequest( - ItemInput item) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), item); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - @JsonIgnore - public ItemInput item() { - return item; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosItemsAddRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosItemsAddRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosItemsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosItemsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosItemsAddRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosItemsAddRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosItemsAddRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosItemsAddRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public PosItemsAddRequest withItem(ItemInput item) { - Utils.checkNotNull(item, "item"); - this.item = item; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosItemsAddRequest other = (PosItemsAddRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.item, other.item); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - item); - } - - @Override - public String toString() { - return Utils.toString(PosItemsAddRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "item", item); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private ItemInput item; - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public Builder item(ItemInput item) { - Utils.checkNotNull(item, "item"); - this.item = item; - return this; - } - - public PosItemsAddRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosItemsAddRequest( - raw, - customerId, - appId, - serviceId, - item); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsAddRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosItemsAddRequestBuilder.java deleted file mode 100644 index 8d4c67d..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsAddRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosItemsAddRequestBuilder { - - private PosItemsAddRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosItemsAdd sdk; - - public PosItemsAddRequestBuilder(SDKMethodInterfaces.MethodCallPosItemsAdd sdk) { - this.sdk = sdk; - } - - public PosItemsAddRequestBuilder request(PosItemsAddRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosItemsAddRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosItemsAddRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosItemsAddResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.create( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsAddResponse.java b/src/main/java/com/apideck/unify/models/operations/PosItemsAddResponse.java deleted file mode 100644 index b768b4f..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsAddResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.CreateItemResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosItemsAddResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Items - */ - private Optional createItemResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosItemsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional createItemResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(createItemResponse, "createItemResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.createItemResponse = createItemResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosItemsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Items - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createItemResponse() { - return (Optional) createItemResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosItemsAddResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosItemsAddResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosItemsAddResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Items - */ - public PosItemsAddResponse withCreateItemResponse(CreateItemResponse createItemResponse) { - Utils.checkNotNull(createItemResponse, "createItemResponse"); - this.createItemResponse = Optional.ofNullable(createItemResponse); - return this; - } - - /** - * Items - */ - public PosItemsAddResponse withCreateItemResponse(Optional createItemResponse) { - Utils.checkNotNull(createItemResponse, "createItemResponse"); - this.createItemResponse = createItemResponse; - return this; - } - - /** - * Unexpected error - */ - public PosItemsAddResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosItemsAddResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosItemsAddResponse other = (PosItemsAddResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.createItemResponse, other.createItemResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - createItemResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosItemsAddResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "createItemResponse", createItemResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional createItemResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Items - */ - public Builder createItemResponse(CreateItemResponse createItemResponse) { - Utils.checkNotNull(createItemResponse, "createItemResponse"); - this.createItemResponse = Optional.ofNullable(createItemResponse); - return this; - } - - /** - * Items - */ - public Builder createItemResponse(Optional createItemResponse) { - Utils.checkNotNull(createItemResponse, "createItemResponse"); - this.createItemResponse = createItemResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosItemsAddResponse build() { - return new PosItemsAddResponse( - contentType, - statusCode, - rawResponse, - createItemResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/PosItemsAllRequest.java deleted file mode 100644 index 529c94f..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsAllRequest.java +++ /dev/null @@ -1,500 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosItemsAllRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private JsonNullable cursor; - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosItemsAllRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - JsonNullable cursor, - Optional limit, - JsonNullable fields) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(limit, "limit"); - Utils.checkNotNull(fields, "fields"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.cursor = cursor; - this.limit = limit; - this.fields = fields; - } - - public PosItemsAllRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @JsonIgnore - public JsonNullable cursor() { - return cursor; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @JsonIgnore - public Optional limit() { - return limit; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosItemsAllRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosItemsAllRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosItemsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosItemsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosItemsAllRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosItemsAllRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosItemsAllRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosItemsAllRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosItemsAllRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosItemsAllRequest withCursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosItemsAllRequest withLimit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosItemsAllRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosItemsAllRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosItemsAllRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosItemsAllRequest other = (PosItemsAllRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosItemsAllRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "cursor", cursor, - "limit", limit, - "fields", fields); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private JsonNullable cursor = JsonNullable.undefined(); - - private Optional limit; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosItemsAllRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } return new PosItemsAllRequest( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "20", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosItemsAllRequestBuilder.java deleted file mode 100644 index 66b8b17..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsAllRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosItemsAllRequestBuilder { - - private PosItemsAllRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosItemsAll sdk; - - public PosItemsAllRequestBuilder(SDKMethodInterfaces.MethodCallPosItemsAll sdk) { - this.sdk = sdk; - } - - public PosItemsAllRequestBuilder request(PosItemsAllRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosItemsAllRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosItemsAllRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosItemsAllResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.list( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsAllResponse.java b/src/main/java/com/apideck/unify/models/operations/PosItemsAllResponse.java deleted file mode 100644 index 276f345..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsAllResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetItemsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosItemsAllResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Items - */ - private Optional getItemsResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosItemsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getItemsResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getItemsResponse, "getItemsResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getItemsResponse = getItemsResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosItemsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Items - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getItemsResponse() { - return (Optional) getItemsResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosItemsAllResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosItemsAllResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosItemsAllResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Items - */ - public PosItemsAllResponse withGetItemsResponse(GetItemsResponse getItemsResponse) { - Utils.checkNotNull(getItemsResponse, "getItemsResponse"); - this.getItemsResponse = Optional.ofNullable(getItemsResponse); - return this; - } - - /** - * Items - */ - public PosItemsAllResponse withGetItemsResponse(Optional getItemsResponse) { - Utils.checkNotNull(getItemsResponse, "getItemsResponse"); - this.getItemsResponse = getItemsResponse; - return this; - } - - /** - * Unexpected error - */ - public PosItemsAllResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosItemsAllResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosItemsAllResponse other = (PosItemsAllResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getItemsResponse, other.getItemsResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getItemsResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosItemsAllResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getItemsResponse", getItemsResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getItemsResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Items - */ - public Builder getItemsResponse(GetItemsResponse getItemsResponse) { - Utils.checkNotNull(getItemsResponse, "getItemsResponse"); - this.getItemsResponse = Optional.ofNullable(getItemsResponse); - return this; - } - - /** - * Items - */ - public Builder getItemsResponse(Optional getItemsResponse) { - Utils.checkNotNull(getItemsResponse, "getItemsResponse"); - this.getItemsResponse = getItemsResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosItemsAllResponse build() { - return new PosItemsAllResponse( - contentType, - statusCode, - rawResponse, - getItemsResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/PosItemsDeleteRequest.java deleted file mode 100644 index f146019..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsDeleteRequest.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosItemsDeleteRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @JsonCreator - public PosItemsDeleteRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - } - - public PosItemsDeleteRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosItemsDeleteRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosItemsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosItemsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosItemsDeleteRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosItemsDeleteRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosItemsDeleteRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosItemsDeleteRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosItemsDeleteRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosItemsDeleteRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosItemsDeleteRequest other = (PosItemsDeleteRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw); - } - - @Override - public String toString() { - return Utils.toString(PosItemsDeleteRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosItemsDeleteRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosItemsDeleteRequest( - id, - customerId, - appId, - serviceId, - raw); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsDeleteRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosItemsDeleteRequestBuilder.java deleted file mode 100644 index 14c1a9c..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsDeleteRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosItemsDeleteRequestBuilder { - - private PosItemsDeleteRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosItemsDelete sdk; - - public PosItemsDeleteRequestBuilder(SDKMethodInterfaces.MethodCallPosItemsDelete sdk) { - this.sdk = sdk; - } - - public PosItemsDeleteRequestBuilder request(PosItemsDeleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosItemsDeleteRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosItemsDeleteRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosItemsDeleteResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.delete( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsDeleteResponse.java b/src/main/java/com/apideck/unify/models/operations/PosItemsDeleteResponse.java deleted file mode 100644 index 85193d2..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsDeleteResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.DeleteItemResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosItemsDeleteResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Items - */ - private Optional deleteItemResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosItemsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional deleteItemResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(deleteItemResponse, "deleteItemResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.deleteItemResponse = deleteItemResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosItemsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Items - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deleteItemResponse() { - return (Optional) deleteItemResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosItemsDeleteResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosItemsDeleteResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosItemsDeleteResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Items - */ - public PosItemsDeleteResponse withDeleteItemResponse(DeleteItemResponse deleteItemResponse) { - Utils.checkNotNull(deleteItemResponse, "deleteItemResponse"); - this.deleteItemResponse = Optional.ofNullable(deleteItemResponse); - return this; - } - - /** - * Items - */ - public PosItemsDeleteResponse withDeleteItemResponse(Optional deleteItemResponse) { - Utils.checkNotNull(deleteItemResponse, "deleteItemResponse"); - this.deleteItemResponse = deleteItemResponse; - return this; - } - - /** - * Unexpected error - */ - public PosItemsDeleteResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosItemsDeleteResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosItemsDeleteResponse other = (PosItemsDeleteResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.deleteItemResponse, other.deleteItemResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - deleteItemResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosItemsDeleteResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "deleteItemResponse", deleteItemResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional deleteItemResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Items - */ - public Builder deleteItemResponse(DeleteItemResponse deleteItemResponse) { - Utils.checkNotNull(deleteItemResponse, "deleteItemResponse"); - this.deleteItemResponse = Optional.ofNullable(deleteItemResponse); - return this; - } - - /** - * Items - */ - public Builder deleteItemResponse(Optional deleteItemResponse) { - Utils.checkNotNull(deleteItemResponse, "deleteItemResponse"); - this.deleteItemResponse = deleteItemResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosItemsDeleteResponse build() { - return new PosItemsDeleteResponse( - contentType, - statusCode, - rawResponse, - deleteItemResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/PosItemsOneRequest.java deleted file mode 100644 index 01170fa..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsOneRequest.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosItemsOneRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosItemsOneRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - JsonNullable fields) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(fields, "fields"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.fields = fields; - } - - public PosItemsOneRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosItemsOneRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosItemsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosItemsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosItemsOneRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosItemsOneRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosItemsOneRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosItemsOneRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosItemsOneRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosItemsOneRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosItemsOneRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosItemsOneRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosItemsOneRequest other = (PosItemsOneRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosItemsOneRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "fields", fields); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosItemsOneRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosItemsOneRequest( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsOneRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosItemsOneRequestBuilder.java deleted file mode 100644 index 598f046..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsOneRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosItemsOneRequestBuilder { - - private PosItemsOneRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosItemsOne sdk; - - public PosItemsOneRequestBuilder(SDKMethodInterfaces.MethodCallPosItemsOne sdk) { - this.sdk = sdk; - } - - public PosItemsOneRequestBuilder request(PosItemsOneRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosItemsOneRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosItemsOneRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosItemsOneResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.get( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsOneResponse.java b/src/main/java/com/apideck/unify/models/operations/PosItemsOneResponse.java deleted file mode 100644 index a76a3f2..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsOneResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetItemResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosItemsOneResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Items - */ - private Optional getItemResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosItemsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getItemResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getItemResponse, "getItemResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getItemResponse = getItemResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosItemsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Items - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getItemResponse() { - return (Optional) getItemResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosItemsOneResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosItemsOneResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosItemsOneResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Items - */ - public PosItemsOneResponse withGetItemResponse(GetItemResponse getItemResponse) { - Utils.checkNotNull(getItemResponse, "getItemResponse"); - this.getItemResponse = Optional.ofNullable(getItemResponse); - return this; - } - - /** - * Items - */ - public PosItemsOneResponse withGetItemResponse(Optional getItemResponse) { - Utils.checkNotNull(getItemResponse, "getItemResponse"); - this.getItemResponse = getItemResponse; - return this; - } - - /** - * Unexpected error - */ - public PosItemsOneResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosItemsOneResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosItemsOneResponse other = (PosItemsOneResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getItemResponse, other.getItemResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getItemResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosItemsOneResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getItemResponse", getItemResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getItemResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Items - */ - public Builder getItemResponse(GetItemResponse getItemResponse) { - Utils.checkNotNull(getItemResponse, "getItemResponse"); - this.getItemResponse = Optional.ofNullable(getItemResponse); - return this; - } - - /** - * Items - */ - public Builder getItemResponse(Optional getItemResponse) { - Utils.checkNotNull(getItemResponse, "getItemResponse"); - this.getItemResponse = getItemResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosItemsOneResponse build() { - return new PosItemsOneResponse( - contentType, - statusCode, - rawResponse, - getItemResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/PosItemsUpdateRequest.java deleted file mode 100644 index 28d7637..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsUpdateRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.ItemInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosItemsUpdateRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @SpeakeasyMetadata("request:mediaType=application/json") - private ItemInput item; - - @JsonCreator - public PosItemsUpdateRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - ItemInput item) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(item, "item"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.item = item; - } - - public PosItemsUpdateRequest( - String id, - ItemInput item) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), item); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - @JsonIgnore - public ItemInput item() { - return item; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosItemsUpdateRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosItemsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosItemsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosItemsUpdateRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosItemsUpdateRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosItemsUpdateRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosItemsUpdateRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosItemsUpdateRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosItemsUpdateRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosItemsUpdateRequest withItem(ItemInput item) { - Utils.checkNotNull(item, "item"); - this.item = item; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosItemsUpdateRequest other = (PosItemsUpdateRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.item, other.item); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - item); - } - - @Override - public String toString() { - return Utils.toString(PosItemsUpdateRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "item", item); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private ItemInput item; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public Builder item(ItemInput item) { - Utils.checkNotNull(item, "item"); - this.item = item; - return this; - } - - public PosItemsUpdateRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosItemsUpdateRequest( - id, - customerId, - appId, - serviceId, - raw, - item); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsUpdateRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosItemsUpdateRequestBuilder.java deleted file mode 100644 index ee4b8ed..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsUpdateRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosItemsUpdateRequestBuilder { - - private PosItemsUpdateRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosItemsUpdate sdk; - - public PosItemsUpdateRequestBuilder(SDKMethodInterfaces.MethodCallPosItemsUpdate sdk) { - this.sdk = sdk; - } - - public PosItemsUpdateRequestBuilder request(PosItemsUpdateRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosItemsUpdateRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosItemsUpdateRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosItemsUpdateResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.update( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosItemsUpdateResponse.java b/src/main/java/com/apideck/unify/models/operations/PosItemsUpdateResponse.java deleted file mode 100644 index 6436662..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosItemsUpdateResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateItemResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosItemsUpdateResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Items - */ - private Optional updateItemResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosItemsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional updateItemResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(updateItemResponse, "updateItemResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.updateItemResponse = updateItemResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosItemsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Items - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updateItemResponse() { - return (Optional) updateItemResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosItemsUpdateResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosItemsUpdateResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosItemsUpdateResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Items - */ - public PosItemsUpdateResponse withUpdateItemResponse(UpdateItemResponse updateItemResponse) { - Utils.checkNotNull(updateItemResponse, "updateItemResponse"); - this.updateItemResponse = Optional.ofNullable(updateItemResponse); - return this; - } - - /** - * Items - */ - public PosItemsUpdateResponse withUpdateItemResponse(Optional updateItemResponse) { - Utils.checkNotNull(updateItemResponse, "updateItemResponse"); - this.updateItemResponse = updateItemResponse; - return this; - } - - /** - * Unexpected error - */ - public PosItemsUpdateResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosItemsUpdateResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosItemsUpdateResponse other = (PosItemsUpdateResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.updateItemResponse, other.updateItemResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - updateItemResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosItemsUpdateResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "updateItemResponse", updateItemResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional updateItemResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Items - */ - public Builder updateItemResponse(UpdateItemResponse updateItemResponse) { - Utils.checkNotNull(updateItemResponse, "updateItemResponse"); - this.updateItemResponse = Optional.ofNullable(updateItemResponse); - return this; - } - - /** - * Items - */ - public Builder updateItemResponse(Optional updateItemResponse) { - Utils.checkNotNull(updateItemResponse, "updateItemResponse"); - this.updateItemResponse = updateItemResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosItemsUpdateResponse build() { - return new PosItemsUpdateResponse( - contentType, - statusCode, - rawResponse, - updateItemResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsAddRequest.java deleted file mode 100644 index 08e8830..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsAddRequest.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.LocationInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosLocationsAddRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - @SpeakeasyMetadata("request:mediaType=application/json") - private LocationInput location; - - @JsonCreator - public PosLocationsAddRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - LocationInput location) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(location, "location"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.location = location; - } - - public PosLocationsAddRequest( - LocationInput location) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), location); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - @JsonIgnore - public LocationInput location() { - return location; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosLocationsAddRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosLocationsAddRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosLocationsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosLocationsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosLocationsAddRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosLocationsAddRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosLocationsAddRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosLocationsAddRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public PosLocationsAddRequest withLocation(LocationInput location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosLocationsAddRequest other = (PosLocationsAddRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.location, other.location); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - location); - } - - @Override - public String toString() { - return Utils.toString(PosLocationsAddRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "location", location); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private LocationInput location; - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public Builder location(LocationInput location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - public PosLocationsAddRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosLocationsAddRequest( - raw, - customerId, - appId, - serviceId, - location); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsAddRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsAddRequestBuilder.java deleted file mode 100644 index ae9f489..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsAddRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosLocationsAddRequestBuilder { - - private PosLocationsAddRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosLocationsAdd sdk; - - public PosLocationsAddRequestBuilder(SDKMethodInterfaces.MethodCallPosLocationsAdd sdk) { - this.sdk = sdk; - } - - public PosLocationsAddRequestBuilder request(PosLocationsAddRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosLocationsAddRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosLocationsAddRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosLocationsAddResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.create( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsAddResponse.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsAddResponse.java deleted file mode 100644 index 5e87e90..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsAddResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.CreateLocationResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosLocationsAddResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Locations - */ - private Optional createLocationResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosLocationsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional createLocationResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(createLocationResponse, "createLocationResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.createLocationResponse = createLocationResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosLocationsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Locations - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createLocationResponse() { - return (Optional) createLocationResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosLocationsAddResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosLocationsAddResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosLocationsAddResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Locations - */ - public PosLocationsAddResponse withCreateLocationResponse(CreateLocationResponse createLocationResponse) { - Utils.checkNotNull(createLocationResponse, "createLocationResponse"); - this.createLocationResponse = Optional.ofNullable(createLocationResponse); - return this; - } - - /** - * Locations - */ - public PosLocationsAddResponse withCreateLocationResponse(Optional createLocationResponse) { - Utils.checkNotNull(createLocationResponse, "createLocationResponse"); - this.createLocationResponse = createLocationResponse; - return this; - } - - /** - * Unexpected error - */ - public PosLocationsAddResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosLocationsAddResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosLocationsAddResponse other = (PosLocationsAddResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.createLocationResponse, other.createLocationResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - createLocationResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosLocationsAddResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "createLocationResponse", createLocationResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional createLocationResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Locations - */ - public Builder createLocationResponse(CreateLocationResponse createLocationResponse) { - Utils.checkNotNull(createLocationResponse, "createLocationResponse"); - this.createLocationResponse = Optional.ofNullable(createLocationResponse); - return this; - } - - /** - * Locations - */ - public Builder createLocationResponse(Optional createLocationResponse) { - Utils.checkNotNull(createLocationResponse, "createLocationResponse"); - this.createLocationResponse = createLocationResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosLocationsAddResponse build() { - return new PosLocationsAddResponse( - contentType, - statusCode, - rawResponse, - createLocationResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsAllRequest.java deleted file mode 100644 index 76e84f2..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsAllRequest.java +++ /dev/null @@ -1,500 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosLocationsAllRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private JsonNullable cursor; - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosLocationsAllRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - JsonNullable cursor, - Optional limit, - JsonNullable fields) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(limit, "limit"); - Utils.checkNotNull(fields, "fields"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.cursor = cursor; - this.limit = limit; - this.fields = fields; - } - - public PosLocationsAllRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @JsonIgnore - public JsonNullable cursor() { - return cursor; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @JsonIgnore - public Optional limit() { - return limit; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosLocationsAllRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosLocationsAllRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosLocationsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosLocationsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosLocationsAllRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosLocationsAllRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosLocationsAllRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosLocationsAllRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosLocationsAllRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosLocationsAllRequest withCursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosLocationsAllRequest withLimit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosLocationsAllRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosLocationsAllRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosLocationsAllRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosLocationsAllRequest other = (PosLocationsAllRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosLocationsAllRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "cursor", cursor, - "limit", limit, - "fields", fields); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private JsonNullable cursor = JsonNullable.undefined(); - - private Optional limit; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosLocationsAllRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } return new PosLocationsAllRequest( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "20", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsAllRequestBuilder.java deleted file mode 100644 index 0e11fde..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsAllRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosLocationsAllRequestBuilder { - - private PosLocationsAllRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosLocationsAll sdk; - - public PosLocationsAllRequestBuilder(SDKMethodInterfaces.MethodCallPosLocationsAll sdk) { - this.sdk = sdk; - } - - public PosLocationsAllRequestBuilder request(PosLocationsAllRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosLocationsAllRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosLocationsAllRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosLocationsAllResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.list( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsAllResponse.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsAllResponse.java deleted file mode 100644 index eba85e7..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsAllResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetLocationsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosLocationsAllResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Locations - */ - private Optional getLocationsResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosLocationsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getLocationsResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getLocationsResponse, "getLocationsResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getLocationsResponse = getLocationsResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosLocationsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Locations - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getLocationsResponse() { - return (Optional) getLocationsResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosLocationsAllResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosLocationsAllResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosLocationsAllResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Locations - */ - public PosLocationsAllResponse withGetLocationsResponse(GetLocationsResponse getLocationsResponse) { - Utils.checkNotNull(getLocationsResponse, "getLocationsResponse"); - this.getLocationsResponse = Optional.ofNullable(getLocationsResponse); - return this; - } - - /** - * Locations - */ - public PosLocationsAllResponse withGetLocationsResponse(Optional getLocationsResponse) { - Utils.checkNotNull(getLocationsResponse, "getLocationsResponse"); - this.getLocationsResponse = getLocationsResponse; - return this; - } - - /** - * Unexpected error - */ - public PosLocationsAllResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosLocationsAllResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosLocationsAllResponse other = (PosLocationsAllResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getLocationsResponse, other.getLocationsResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getLocationsResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosLocationsAllResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getLocationsResponse", getLocationsResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getLocationsResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Locations - */ - public Builder getLocationsResponse(GetLocationsResponse getLocationsResponse) { - Utils.checkNotNull(getLocationsResponse, "getLocationsResponse"); - this.getLocationsResponse = Optional.ofNullable(getLocationsResponse); - return this; - } - - /** - * Locations - */ - public Builder getLocationsResponse(Optional getLocationsResponse) { - Utils.checkNotNull(getLocationsResponse, "getLocationsResponse"); - this.getLocationsResponse = getLocationsResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosLocationsAllResponse build() { - return new PosLocationsAllResponse( - contentType, - statusCode, - rawResponse, - getLocationsResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteRequest.java deleted file mode 100644 index 10c5480..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteRequest.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosLocationsDeleteRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @JsonCreator - public PosLocationsDeleteRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - } - - public PosLocationsDeleteRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosLocationsDeleteRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosLocationsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosLocationsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosLocationsDeleteRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosLocationsDeleteRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosLocationsDeleteRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosLocationsDeleteRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosLocationsDeleteRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosLocationsDeleteRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosLocationsDeleteRequest other = (PosLocationsDeleteRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw); - } - - @Override - public String toString() { - return Utils.toString(PosLocationsDeleteRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosLocationsDeleteRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosLocationsDeleteRequest( - id, - customerId, - appId, - serviceId, - raw); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteRequestBuilder.java deleted file mode 100644 index 1d697c0..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosLocationsDeleteRequestBuilder { - - private PosLocationsDeleteRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosLocationsDelete sdk; - - public PosLocationsDeleteRequestBuilder(SDKMethodInterfaces.MethodCallPosLocationsDelete sdk) { - this.sdk = sdk; - } - - public PosLocationsDeleteRequestBuilder request(PosLocationsDeleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosLocationsDeleteRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosLocationsDeleteRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosLocationsDeleteResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.delete( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteResponse.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteResponse.java deleted file mode 100644 index 6c7f0fb..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsDeleteResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.DeleteLocationResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosLocationsDeleteResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Locations - */ - private Optional deleteLocationResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosLocationsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional deleteLocationResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(deleteLocationResponse, "deleteLocationResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.deleteLocationResponse = deleteLocationResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosLocationsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Locations - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deleteLocationResponse() { - return (Optional) deleteLocationResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosLocationsDeleteResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosLocationsDeleteResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosLocationsDeleteResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Locations - */ - public PosLocationsDeleteResponse withDeleteLocationResponse(DeleteLocationResponse deleteLocationResponse) { - Utils.checkNotNull(deleteLocationResponse, "deleteLocationResponse"); - this.deleteLocationResponse = Optional.ofNullable(deleteLocationResponse); - return this; - } - - /** - * Locations - */ - public PosLocationsDeleteResponse withDeleteLocationResponse(Optional deleteLocationResponse) { - Utils.checkNotNull(deleteLocationResponse, "deleteLocationResponse"); - this.deleteLocationResponse = deleteLocationResponse; - return this; - } - - /** - * Unexpected error - */ - public PosLocationsDeleteResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosLocationsDeleteResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosLocationsDeleteResponse other = (PosLocationsDeleteResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.deleteLocationResponse, other.deleteLocationResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - deleteLocationResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosLocationsDeleteResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "deleteLocationResponse", deleteLocationResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional deleteLocationResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Locations - */ - public Builder deleteLocationResponse(DeleteLocationResponse deleteLocationResponse) { - Utils.checkNotNull(deleteLocationResponse, "deleteLocationResponse"); - this.deleteLocationResponse = Optional.ofNullable(deleteLocationResponse); - return this; - } - - /** - * Locations - */ - public Builder deleteLocationResponse(Optional deleteLocationResponse) { - Utils.checkNotNull(deleteLocationResponse, "deleteLocationResponse"); - this.deleteLocationResponse = deleteLocationResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosLocationsDeleteResponse build() { - return new PosLocationsDeleteResponse( - contentType, - statusCode, - rawResponse, - deleteLocationResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsOneRequest.java deleted file mode 100644 index 66b2768..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsOneRequest.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosLocationsOneRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosLocationsOneRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - JsonNullable fields) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(fields, "fields"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.fields = fields; - } - - public PosLocationsOneRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosLocationsOneRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosLocationsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosLocationsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosLocationsOneRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosLocationsOneRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosLocationsOneRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosLocationsOneRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosLocationsOneRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosLocationsOneRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosLocationsOneRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosLocationsOneRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosLocationsOneRequest other = (PosLocationsOneRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosLocationsOneRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "fields", fields); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosLocationsOneRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosLocationsOneRequest( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsOneRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsOneRequestBuilder.java deleted file mode 100644 index ce92e3b..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsOneRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosLocationsOneRequestBuilder { - - private PosLocationsOneRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosLocationsOne sdk; - - public PosLocationsOneRequestBuilder(SDKMethodInterfaces.MethodCallPosLocationsOne sdk) { - this.sdk = sdk; - } - - public PosLocationsOneRequestBuilder request(PosLocationsOneRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosLocationsOneRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosLocationsOneRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosLocationsOneResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.get( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsOneResponse.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsOneResponse.java deleted file mode 100644 index 43ad7f4..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsOneResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetLocationResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosLocationsOneResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Locations - */ - private Optional getLocationResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosLocationsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getLocationResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getLocationResponse, "getLocationResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getLocationResponse = getLocationResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosLocationsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Locations - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getLocationResponse() { - return (Optional) getLocationResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosLocationsOneResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosLocationsOneResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosLocationsOneResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Locations - */ - public PosLocationsOneResponse withGetLocationResponse(GetLocationResponse getLocationResponse) { - Utils.checkNotNull(getLocationResponse, "getLocationResponse"); - this.getLocationResponse = Optional.ofNullable(getLocationResponse); - return this; - } - - /** - * Locations - */ - public PosLocationsOneResponse withGetLocationResponse(Optional getLocationResponse) { - Utils.checkNotNull(getLocationResponse, "getLocationResponse"); - this.getLocationResponse = getLocationResponse; - return this; - } - - /** - * Unexpected error - */ - public PosLocationsOneResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosLocationsOneResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosLocationsOneResponse other = (PosLocationsOneResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getLocationResponse, other.getLocationResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getLocationResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosLocationsOneResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getLocationResponse", getLocationResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getLocationResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Locations - */ - public Builder getLocationResponse(GetLocationResponse getLocationResponse) { - Utils.checkNotNull(getLocationResponse, "getLocationResponse"); - this.getLocationResponse = Optional.ofNullable(getLocationResponse); - return this; - } - - /** - * Locations - */ - public Builder getLocationResponse(Optional getLocationResponse) { - Utils.checkNotNull(getLocationResponse, "getLocationResponse"); - this.getLocationResponse = getLocationResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosLocationsOneResponse build() { - return new PosLocationsOneResponse( - contentType, - statusCode, - rawResponse, - getLocationResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateRequest.java deleted file mode 100644 index 44b1cd0..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.LocationInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosLocationsUpdateRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @SpeakeasyMetadata("request:mediaType=application/json") - private LocationInput location; - - @JsonCreator - public PosLocationsUpdateRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - LocationInput location) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(location, "location"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.location = location; - } - - public PosLocationsUpdateRequest( - String id, - LocationInput location) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), location); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - @JsonIgnore - public LocationInput location() { - return location; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosLocationsUpdateRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosLocationsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosLocationsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosLocationsUpdateRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosLocationsUpdateRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosLocationsUpdateRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosLocationsUpdateRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosLocationsUpdateRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosLocationsUpdateRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosLocationsUpdateRequest withLocation(LocationInput location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosLocationsUpdateRequest other = (PosLocationsUpdateRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.location, other.location); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - location); - } - - @Override - public String toString() { - return Utils.toString(PosLocationsUpdateRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "location", location); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private LocationInput location; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public Builder location(LocationInput location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - public PosLocationsUpdateRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosLocationsUpdateRequest( - id, - customerId, - appId, - serviceId, - raw, - location); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateRequestBuilder.java deleted file mode 100644 index 1edab80..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosLocationsUpdateRequestBuilder { - - private PosLocationsUpdateRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosLocationsUpdate sdk; - - public PosLocationsUpdateRequestBuilder(SDKMethodInterfaces.MethodCallPosLocationsUpdate sdk) { - this.sdk = sdk; - } - - public PosLocationsUpdateRequestBuilder request(PosLocationsUpdateRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosLocationsUpdateRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosLocationsUpdateRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosLocationsUpdateResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.update( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateResponse.java b/src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateResponse.java deleted file mode 100644 index 1987774..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosLocationsUpdateResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateLocationResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosLocationsUpdateResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Locations - */ - private Optional updateLocationResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosLocationsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional updateLocationResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(updateLocationResponse, "updateLocationResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.updateLocationResponse = updateLocationResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosLocationsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Locations - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updateLocationResponse() { - return (Optional) updateLocationResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosLocationsUpdateResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosLocationsUpdateResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosLocationsUpdateResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Locations - */ - public PosLocationsUpdateResponse withUpdateLocationResponse(UpdateLocationResponse updateLocationResponse) { - Utils.checkNotNull(updateLocationResponse, "updateLocationResponse"); - this.updateLocationResponse = Optional.ofNullable(updateLocationResponse); - return this; - } - - /** - * Locations - */ - public PosLocationsUpdateResponse withUpdateLocationResponse(Optional updateLocationResponse) { - Utils.checkNotNull(updateLocationResponse, "updateLocationResponse"); - this.updateLocationResponse = updateLocationResponse; - return this; - } - - /** - * Unexpected error - */ - public PosLocationsUpdateResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosLocationsUpdateResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosLocationsUpdateResponse other = (PosLocationsUpdateResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.updateLocationResponse, other.updateLocationResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - updateLocationResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosLocationsUpdateResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "updateLocationResponse", updateLocationResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional updateLocationResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Locations - */ - public Builder updateLocationResponse(UpdateLocationResponse updateLocationResponse) { - Utils.checkNotNull(updateLocationResponse, "updateLocationResponse"); - this.updateLocationResponse = Optional.ofNullable(updateLocationResponse); - return this; - } - - /** - * Locations - */ - public Builder updateLocationResponse(Optional updateLocationResponse) { - Utils.checkNotNull(updateLocationResponse, "updateLocationResponse"); - this.updateLocationResponse = updateLocationResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosLocationsUpdateResponse build() { - return new PosLocationsUpdateResponse( - contentType, - statusCode, - rawResponse, - updateLocationResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsAddRequest.java deleted file mode 100644 index 5958fb8..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAddRequest.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.MerchantInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosMerchantsAddRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - @SpeakeasyMetadata("request:mediaType=application/json") - private MerchantInput merchant; - - @JsonCreator - public PosMerchantsAddRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - MerchantInput merchant) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(merchant, "merchant"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.merchant = merchant; - } - - public PosMerchantsAddRequest( - MerchantInput merchant) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), merchant); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - @JsonIgnore - public MerchantInput merchant() { - return merchant; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosMerchantsAddRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosMerchantsAddRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosMerchantsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosMerchantsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosMerchantsAddRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosMerchantsAddRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosMerchantsAddRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosMerchantsAddRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public PosMerchantsAddRequest withMerchant(MerchantInput merchant) { - Utils.checkNotNull(merchant, "merchant"); - this.merchant = merchant; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosMerchantsAddRequest other = (PosMerchantsAddRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.merchant, other.merchant); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - merchant); - } - - @Override - public String toString() { - return Utils.toString(PosMerchantsAddRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "merchant", merchant); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private MerchantInput merchant; - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public Builder merchant(MerchantInput merchant) { - Utils.checkNotNull(merchant, "merchant"); - this.merchant = merchant; - return this; - } - - public PosMerchantsAddRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosMerchantsAddRequest( - raw, - customerId, - appId, - serviceId, - merchant); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAddRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsAddRequestBuilder.java deleted file mode 100644 index a8f80e5..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAddRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosMerchantsAddRequestBuilder { - - private PosMerchantsAddRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosMerchantsAdd sdk; - - public PosMerchantsAddRequestBuilder(SDKMethodInterfaces.MethodCallPosMerchantsAdd sdk) { - this.sdk = sdk; - } - - public PosMerchantsAddRequestBuilder request(PosMerchantsAddRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosMerchantsAddRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosMerchantsAddRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosMerchantsAddResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.create( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAddResponse.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsAddResponse.java deleted file mode 100644 index 80f86dd..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAddResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.CreateMerchantResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosMerchantsAddResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Merchants - */ - private Optional createMerchantResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosMerchantsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional createMerchantResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(createMerchantResponse, "createMerchantResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.createMerchantResponse = createMerchantResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosMerchantsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Merchants - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createMerchantResponse() { - return (Optional) createMerchantResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosMerchantsAddResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosMerchantsAddResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosMerchantsAddResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Merchants - */ - public PosMerchantsAddResponse withCreateMerchantResponse(CreateMerchantResponse createMerchantResponse) { - Utils.checkNotNull(createMerchantResponse, "createMerchantResponse"); - this.createMerchantResponse = Optional.ofNullable(createMerchantResponse); - return this; - } - - /** - * Merchants - */ - public PosMerchantsAddResponse withCreateMerchantResponse(Optional createMerchantResponse) { - Utils.checkNotNull(createMerchantResponse, "createMerchantResponse"); - this.createMerchantResponse = createMerchantResponse; - return this; - } - - /** - * Unexpected error - */ - public PosMerchantsAddResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosMerchantsAddResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosMerchantsAddResponse other = (PosMerchantsAddResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.createMerchantResponse, other.createMerchantResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - createMerchantResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosMerchantsAddResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "createMerchantResponse", createMerchantResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional createMerchantResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Merchants - */ - public Builder createMerchantResponse(CreateMerchantResponse createMerchantResponse) { - Utils.checkNotNull(createMerchantResponse, "createMerchantResponse"); - this.createMerchantResponse = Optional.ofNullable(createMerchantResponse); - return this; - } - - /** - * Merchants - */ - public Builder createMerchantResponse(Optional createMerchantResponse) { - Utils.checkNotNull(createMerchantResponse, "createMerchantResponse"); - this.createMerchantResponse = createMerchantResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosMerchantsAddResponse build() { - return new PosMerchantsAddResponse( - contentType, - statusCode, - rawResponse, - createMerchantResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsAllRequest.java deleted file mode 100644 index 3ebfe23..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAllRequest.java +++ /dev/null @@ -1,500 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosMerchantsAllRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private JsonNullable cursor; - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosMerchantsAllRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - JsonNullable cursor, - Optional limit, - JsonNullable fields) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(limit, "limit"); - Utils.checkNotNull(fields, "fields"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.cursor = cursor; - this.limit = limit; - this.fields = fields; - } - - public PosMerchantsAllRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @JsonIgnore - public JsonNullable cursor() { - return cursor; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @JsonIgnore - public Optional limit() { - return limit; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosMerchantsAllRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosMerchantsAllRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosMerchantsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosMerchantsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosMerchantsAllRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosMerchantsAllRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosMerchantsAllRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosMerchantsAllRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosMerchantsAllRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosMerchantsAllRequest withCursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosMerchantsAllRequest withLimit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosMerchantsAllRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosMerchantsAllRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosMerchantsAllRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosMerchantsAllRequest other = (PosMerchantsAllRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosMerchantsAllRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "cursor", cursor, - "limit", limit, - "fields", fields); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private JsonNullable cursor = JsonNullable.undefined(); - - private Optional limit; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosMerchantsAllRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } return new PosMerchantsAllRequest( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "20", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsAllRequestBuilder.java deleted file mode 100644 index 7f6942e..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAllRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosMerchantsAllRequestBuilder { - - private PosMerchantsAllRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosMerchantsAll sdk; - - public PosMerchantsAllRequestBuilder(SDKMethodInterfaces.MethodCallPosMerchantsAll sdk) { - this.sdk = sdk; - } - - public PosMerchantsAllRequestBuilder request(PosMerchantsAllRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosMerchantsAllRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosMerchantsAllRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosMerchantsAllResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.list( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAllResponse.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsAllResponse.java deleted file mode 100644 index 9070448..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsAllResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetMerchantsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosMerchantsAllResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Merchants - */ - private Optional getMerchantsResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosMerchantsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getMerchantsResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getMerchantsResponse, "getMerchantsResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getMerchantsResponse = getMerchantsResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosMerchantsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Merchants - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getMerchantsResponse() { - return (Optional) getMerchantsResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosMerchantsAllResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosMerchantsAllResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosMerchantsAllResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Merchants - */ - public PosMerchantsAllResponse withGetMerchantsResponse(GetMerchantsResponse getMerchantsResponse) { - Utils.checkNotNull(getMerchantsResponse, "getMerchantsResponse"); - this.getMerchantsResponse = Optional.ofNullable(getMerchantsResponse); - return this; - } - - /** - * Merchants - */ - public PosMerchantsAllResponse withGetMerchantsResponse(Optional getMerchantsResponse) { - Utils.checkNotNull(getMerchantsResponse, "getMerchantsResponse"); - this.getMerchantsResponse = getMerchantsResponse; - return this; - } - - /** - * Unexpected error - */ - public PosMerchantsAllResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosMerchantsAllResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosMerchantsAllResponse other = (PosMerchantsAllResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getMerchantsResponse, other.getMerchantsResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getMerchantsResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosMerchantsAllResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getMerchantsResponse", getMerchantsResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getMerchantsResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Merchants - */ - public Builder getMerchantsResponse(GetMerchantsResponse getMerchantsResponse) { - Utils.checkNotNull(getMerchantsResponse, "getMerchantsResponse"); - this.getMerchantsResponse = Optional.ofNullable(getMerchantsResponse); - return this; - } - - /** - * Merchants - */ - public Builder getMerchantsResponse(Optional getMerchantsResponse) { - Utils.checkNotNull(getMerchantsResponse, "getMerchantsResponse"); - this.getMerchantsResponse = getMerchantsResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosMerchantsAllResponse build() { - return new PosMerchantsAllResponse( - contentType, - statusCode, - rawResponse, - getMerchantsResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteRequest.java deleted file mode 100644 index 61eca14..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteRequest.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosMerchantsDeleteRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @JsonCreator - public PosMerchantsDeleteRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - } - - public PosMerchantsDeleteRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosMerchantsDeleteRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosMerchantsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosMerchantsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosMerchantsDeleteRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosMerchantsDeleteRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosMerchantsDeleteRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosMerchantsDeleteRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosMerchantsDeleteRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosMerchantsDeleteRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosMerchantsDeleteRequest other = (PosMerchantsDeleteRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw); - } - - @Override - public String toString() { - return Utils.toString(PosMerchantsDeleteRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosMerchantsDeleteRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosMerchantsDeleteRequest( - id, - customerId, - appId, - serviceId, - raw); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteRequestBuilder.java deleted file mode 100644 index 9d91967..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosMerchantsDeleteRequestBuilder { - - private PosMerchantsDeleteRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosMerchantsDelete sdk; - - public PosMerchantsDeleteRequestBuilder(SDKMethodInterfaces.MethodCallPosMerchantsDelete sdk) { - this.sdk = sdk; - } - - public PosMerchantsDeleteRequestBuilder request(PosMerchantsDeleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosMerchantsDeleteRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosMerchantsDeleteRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosMerchantsDeleteResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.delete( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteResponse.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteResponse.java deleted file mode 100644 index e587c60..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsDeleteResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.DeleteMerchantResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosMerchantsDeleteResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Merchants - */ - private Optional deleteMerchantResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosMerchantsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional deleteMerchantResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(deleteMerchantResponse, "deleteMerchantResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.deleteMerchantResponse = deleteMerchantResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosMerchantsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Merchants - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deleteMerchantResponse() { - return (Optional) deleteMerchantResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosMerchantsDeleteResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosMerchantsDeleteResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosMerchantsDeleteResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Merchants - */ - public PosMerchantsDeleteResponse withDeleteMerchantResponse(DeleteMerchantResponse deleteMerchantResponse) { - Utils.checkNotNull(deleteMerchantResponse, "deleteMerchantResponse"); - this.deleteMerchantResponse = Optional.ofNullable(deleteMerchantResponse); - return this; - } - - /** - * Merchants - */ - public PosMerchantsDeleteResponse withDeleteMerchantResponse(Optional deleteMerchantResponse) { - Utils.checkNotNull(deleteMerchantResponse, "deleteMerchantResponse"); - this.deleteMerchantResponse = deleteMerchantResponse; - return this; - } - - /** - * Unexpected error - */ - public PosMerchantsDeleteResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosMerchantsDeleteResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosMerchantsDeleteResponse other = (PosMerchantsDeleteResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.deleteMerchantResponse, other.deleteMerchantResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - deleteMerchantResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosMerchantsDeleteResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "deleteMerchantResponse", deleteMerchantResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional deleteMerchantResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Merchants - */ - public Builder deleteMerchantResponse(DeleteMerchantResponse deleteMerchantResponse) { - Utils.checkNotNull(deleteMerchantResponse, "deleteMerchantResponse"); - this.deleteMerchantResponse = Optional.ofNullable(deleteMerchantResponse); - return this; - } - - /** - * Merchants - */ - public Builder deleteMerchantResponse(Optional deleteMerchantResponse) { - Utils.checkNotNull(deleteMerchantResponse, "deleteMerchantResponse"); - this.deleteMerchantResponse = deleteMerchantResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosMerchantsDeleteResponse build() { - return new PosMerchantsDeleteResponse( - contentType, - statusCode, - rawResponse, - deleteMerchantResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsOneRequest.java deleted file mode 100644 index 5431d8c..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsOneRequest.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosMerchantsOneRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosMerchantsOneRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - JsonNullable fields) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(fields, "fields"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.fields = fields; - } - - public PosMerchantsOneRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosMerchantsOneRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosMerchantsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosMerchantsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosMerchantsOneRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosMerchantsOneRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosMerchantsOneRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosMerchantsOneRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosMerchantsOneRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosMerchantsOneRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosMerchantsOneRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosMerchantsOneRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosMerchantsOneRequest other = (PosMerchantsOneRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosMerchantsOneRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "fields", fields); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosMerchantsOneRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosMerchantsOneRequest( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsOneRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsOneRequestBuilder.java deleted file mode 100644 index cc7f636..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsOneRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosMerchantsOneRequestBuilder { - - private PosMerchantsOneRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosMerchantsOne sdk; - - public PosMerchantsOneRequestBuilder(SDKMethodInterfaces.MethodCallPosMerchantsOne sdk) { - this.sdk = sdk; - } - - public PosMerchantsOneRequestBuilder request(PosMerchantsOneRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosMerchantsOneRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosMerchantsOneRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosMerchantsOneResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.get( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsOneResponse.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsOneResponse.java deleted file mode 100644 index 8746e88..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsOneResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetMerchantResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosMerchantsOneResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Merchants - */ - private Optional getMerchantResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosMerchantsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getMerchantResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getMerchantResponse, "getMerchantResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getMerchantResponse = getMerchantResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosMerchantsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Merchants - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getMerchantResponse() { - return (Optional) getMerchantResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosMerchantsOneResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosMerchantsOneResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosMerchantsOneResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Merchants - */ - public PosMerchantsOneResponse withGetMerchantResponse(GetMerchantResponse getMerchantResponse) { - Utils.checkNotNull(getMerchantResponse, "getMerchantResponse"); - this.getMerchantResponse = Optional.ofNullable(getMerchantResponse); - return this; - } - - /** - * Merchants - */ - public PosMerchantsOneResponse withGetMerchantResponse(Optional getMerchantResponse) { - Utils.checkNotNull(getMerchantResponse, "getMerchantResponse"); - this.getMerchantResponse = getMerchantResponse; - return this; - } - - /** - * Unexpected error - */ - public PosMerchantsOneResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosMerchantsOneResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosMerchantsOneResponse other = (PosMerchantsOneResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getMerchantResponse, other.getMerchantResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getMerchantResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosMerchantsOneResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getMerchantResponse", getMerchantResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getMerchantResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Merchants - */ - public Builder getMerchantResponse(GetMerchantResponse getMerchantResponse) { - Utils.checkNotNull(getMerchantResponse, "getMerchantResponse"); - this.getMerchantResponse = Optional.ofNullable(getMerchantResponse); - return this; - } - - /** - * Merchants - */ - public Builder getMerchantResponse(Optional getMerchantResponse) { - Utils.checkNotNull(getMerchantResponse, "getMerchantResponse"); - this.getMerchantResponse = getMerchantResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosMerchantsOneResponse build() { - return new PosMerchantsOneResponse( - contentType, - statusCode, - rawResponse, - getMerchantResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateRequest.java deleted file mode 100644 index ea14cae..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.MerchantInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosMerchantsUpdateRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @SpeakeasyMetadata("request:mediaType=application/json") - private MerchantInput merchant; - - @JsonCreator - public PosMerchantsUpdateRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - MerchantInput merchant) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(merchant, "merchant"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.merchant = merchant; - } - - public PosMerchantsUpdateRequest( - String id, - MerchantInput merchant) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), merchant); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - @JsonIgnore - public MerchantInput merchant() { - return merchant; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosMerchantsUpdateRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosMerchantsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosMerchantsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosMerchantsUpdateRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosMerchantsUpdateRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosMerchantsUpdateRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosMerchantsUpdateRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosMerchantsUpdateRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosMerchantsUpdateRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosMerchantsUpdateRequest withMerchant(MerchantInput merchant) { - Utils.checkNotNull(merchant, "merchant"); - this.merchant = merchant; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosMerchantsUpdateRequest other = (PosMerchantsUpdateRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.merchant, other.merchant); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - merchant); - } - - @Override - public String toString() { - return Utils.toString(PosMerchantsUpdateRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "merchant", merchant); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private MerchantInput merchant; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public Builder merchant(MerchantInput merchant) { - Utils.checkNotNull(merchant, "merchant"); - this.merchant = merchant; - return this; - } - - public PosMerchantsUpdateRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosMerchantsUpdateRequest( - id, - customerId, - appId, - serviceId, - raw, - merchant); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateRequestBuilder.java deleted file mode 100644 index 3d2e066..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosMerchantsUpdateRequestBuilder { - - private PosMerchantsUpdateRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosMerchantsUpdate sdk; - - public PosMerchantsUpdateRequestBuilder(SDKMethodInterfaces.MethodCallPosMerchantsUpdate sdk) { - this.sdk = sdk; - } - - public PosMerchantsUpdateRequestBuilder request(PosMerchantsUpdateRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosMerchantsUpdateRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosMerchantsUpdateRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosMerchantsUpdateResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.update( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateResponse.java b/src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateResponse.java deleted file mode 100644 index b46fccd..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosMerchantsUpdateResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateMerchantResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosMerchantsUpdateResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Merchants - */ - private Optional updateMerchantResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosMerchantsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional updateMerchantResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(updateMerchantResponse, "updateMerchantResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.updateMerchantResponse = updateMerchantResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosMerchantsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Merchants - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updateMerchantResponse() { - return (Optional) updateMerchantResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosMerchantsUpdateResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosMerchantsUpdateResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosMerchantsUpdateResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Merchants - */ - public PosMerchantsUpdateResponse withUpdateMerchantResponse(UpdateMerchantResponse updateMerchantResponse) { - Utils.checkNotNull(updateMerchantResponse, "updateMerchantResponse"); - this.updateMerchantResponse = Optional.ofNullable(updateMerchantResponse); - return this; - } - - /** - * Merchants - */ - public PosMerchantsUpdateResponse withUpdateMerchantResponse(Optional updateMerchantResponse) { - Utils.checkNotNull(updateMerchantResponse, "updateMerchantResponse"); - this.updateMerchantResponse = updateMerchantResponse; - return this; - } - - /** - * Unexpected error - */ - public PosMerchantsUpdateResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosMerchantsUpdateResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosMerchantsUpdateResponse other = (PosMerchantsUpdateResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.updateMerchantResponse, other.updateMerchantResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - updateMerchantResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosMerchantsUpdateResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "updateMerchantResponse", updateMerchantResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional updateMerchantResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Merchants - */ - public Builder updateMerchantResponse(UpdateMerchantResponse updateMerchantResponse) { - Utils.checkNotNull(updateMerchantResponse, "updateMerchantResponse"); - this.updateMerchantResponse = Optional.ofNullable(updateMerchantResponse); - return this; - } - - /** - * Merchants - */ - public Builder updateMerchantResponse(Optional updateMerchantResponse) { - Utils.checkNotNull(updateMerchantResponse, "updateMerchantResponse"); - this.updateMerchantResponse = updateMerchantResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosMerchantsUpdateResponse build() { - return new PosMerchantsUpdateResponse( - contentType, - statusCode, - rawResponse, - updateMerchantResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddRequest.java deleted file mode 100644 index 42c30cb..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddRequest.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.ModifierGroupInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifierGroupsAddRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - @SpeakeasyMetadata("request:mediaType=application/json") - private ModifierGroupInput modifierGroup; - - @JsonCreator - public PosModifierGroupsAddRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - ModifierGroupInput modifierGroup) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(modifierGroup, "modifierGroup"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.modifierGroup = modifierGroup; - } - - public PosModifierGroupsAddRequest( - ModifierGroupInput modifierGroup) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), modifierGroup); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - @JsonIgnore - public ModifierGroupInput modifierGroup() { - return modifierGroup; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifierGroupsAddRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifierGroupsAddRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifierGroupsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifierGroupsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifierGroupsAddRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifierGroupsAddRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifierGroupsAddRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifierGroupsAddRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public PosModifierGroupsAddRequest withModifierGroup(ModifierGroupInput modifierGroup) { - Utils.checkNotNull(modifierGroup, "modifierGroup"); - this.modifierGroup = modifierGroup; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifierGroupsAddRequest other = (PosModifierGroupsAddRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.modifierGroup, other.modifierGroup); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - modifierGroup); - } - - @Override - public String toString() { - return Utils.toString(PosModifierGroupsAddRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "modifierGroup", modifierGroup); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private ModifierGroupInput modifierGroup; - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public Builder modifierGroup(ModifierGroupInput modifierGroup) { - Utils.checkNotNull(modifierGroup, "modifierGroup"); - this.modifierGroup = modifierGroup; - return this; - } - - public PosModifierGroupsAddRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosModifierGroupsAddRequest( - raw, - customerId, - appId, - serviceId, - modifierGroup); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddRequestBuilder.java deleted file mode 100644 index 4eb084a..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosModifierGroupsAddRequestBuilder { - - private PosModifierGroupsAddRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosModifierGroupsAdd sdk; - - public PosModifierGroupsAddRequestBuilder(SDKMethodInterfaces.MethodCallPosModifierGroupsAdd sdk) { - this.sdk = sdk; - } - - public PosModifierGroupsAddRequestBuilder request(PosModifierGroupsAddRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosModifierGroupsAddRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosModifierGroupsAddRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosModifierGroupsAddResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.create( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddResponse.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddResponse.java deleted file mode 100644 index c2e2b7e..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAddResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.CreateModifierGroupResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifierGroupsAddResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * ModifierGroups - */ - private Optional createModifierGroupResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosModifierGroupsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional createModifierGroupResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(createModifierGroupResponse, "createModifierGroupResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.createModifierGroupResponse = createModifierGroupResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosModifierGroupsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * ModifierGroups - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createModifierGroupResponse() { - return (Optional) createModifierGroupResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosModifierGroupsAddResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosModifierGroupsAddResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosModifierGroupsAddResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * ModifierGroups - */ - public PosModifierGroupsAddResponse withCreateModifierGroupResponse(CreateModifierGroupResponse createModifierGroupResponse) { - Utils.checkNotNull(createModifierGroupResponse, "createModifierGroupResponse"); - this.createModifierGroupResponse = Optional.ofNullable(createModifierGroupResponse); - return this; - } - - /** - * ModifierGroups - */ - public PosModifierGroupsAddResponse withCreateModifierGroupResponse(Optional createModifierGroupResponse) { - Utils.checkNotNull(createModifierGroupResponse, "createModifierGroupResponse"); - this.createModifierGroupResponse = createModifierGroupResponse; - return this; - } - - /** - * Unexpected error - */ - public PosModifierGroupsAddResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosModifierGroupsAddResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifierGroupsAddResponse other = (PosModifierGroupsAddResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.createModifierGroupResponse, other.createModifierGroupResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - createModifierGroupResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosModifierGroupsAddResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "createModifierGroupResponse", createModifierGroupResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional createModifierGroupResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * ModifierGroups - */ - public Builder createModifierGroupResponse(CreateModifierGroupResponse createModifierGroupResponse) { - Utils.checkNotNull(createModifierGroupResponse, "createModifierGroupResponse"); - this.createModifierGroupResponse = Optional.ofNullable(createModifierGroupResponse); - return this; - } - - /** - * ModifierGroups - */ - public Builder createModifierGroupResponse(Optional createModifierGroupResponse) { - Utils.checkNotNull(createModifierGroupResponse, "createModifierGroupResponse"); - this.createModifierGroupResponse = createModifierGroupResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosModifierGroupsAddResponse build() { - return new PosModifierGroupsAddResponse( - contentType, - statusCode, - rawResponse, - createModifierGroupResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllRequest.java deleted file mode 100644 index e66df14..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllRequest.java +++ /dev/null @@ -1,500 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosModifierGroupsAllRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private JsonNullable cursor; - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosModifierGroupsAllRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - JsonNullable cursor, - Optional limit, - JsonNullable fields) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(limit, "limit"); - Utils.checkNotNull(fields, "fields"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.cursor = cursor; - this.limit = limit; - this.fields = fields; - } - - public PosModifierGroupsAllRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @JsonIgnore - public JsonNullable cursor() { - return cursor; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @JsonIgnore - public Optional limit() { - return limit; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifierGroupsAllRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifierGroupsAllRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifierGroupsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifierGroupsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifierGroupsAllRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifierGroupsAllRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifierGroupsAllRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifierGroupsAllRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosModifierGroupsAllRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosModifierGroupsAllRequest withCursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosModifierGroupsAllRequest withLimit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosModifierGroupsAllRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosModifierGroupsAllRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosModifierGroupsAllRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifierGroupsAllRequest other = (PosModifierGroupsAllRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosModifierGroupsAllRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "cursor", cursor, - "limit", limit, - "fields", fields); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private JsonNullable cursor = JsonNullable.undefined(); - - private Optional limit; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosModifierGroupsAllRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } return new PosModifierGroupsAllRequest( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "20", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllRequestBuilder.java deleted file mode 100644 index 3c0ca35..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosModifierGroupsAllRequestBuilder { - - private PosModifierGroupsAllRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosModifierGroupsAll sdk; - - public PosModifierGroupsAllRequestBuilder(SDKMethodInterfaces.MethodCallPosModifierGroupsAll sdk) { - this.sdk = sdk; - } - - public PosModifierGroupsAllRequestBuilder request(PosModifierGroupsAllRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosModifierGroupsAllRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosModifierGroupsAllRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosModifierGroupsAllResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.list( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllResponse.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllResponse.java deleted file mode 100644 index 24301be..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsAllResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetModifierGroupsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifierGroupsAllResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * ModifierGroups - */ - private Optional getModifierGroupsResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosModifierGroupsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getModifierGroupsResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getModifierGroupsResponse, "getModifierGroupsResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getModifierGroupsResponse = getModifierGroupsResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosModifierGroupsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * ModifierGroups - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getModifierGroupsResponse() { - return (Optional) getModifierGroupsResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosModifierGroupsAllResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosModifierGroupsAllResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosModifierGroupsAllResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * ModifierGroups - */ - public PosModifierGroupsAllResponse withGetModifierGroupsResponse(GetModifierGroupsResponse getModifierGroupsResponse) { - Utils.checkNotNull(getModifierGroupsResponse, "getModifierGroupsResponse"); - this.getModifierGroupsResponse = Optional.ofNullable(getModifierGroupsResponse); - return this; - } - - /** - * ModifierGroups - */ - public PosModifierGroupsAllResponse withGetModifierGroupsResponse(Optional getModifierGroupsResponse) { - Utils.checkNotNull(getModifierGroupsResponse, "getModifierGroupsResponse"); - this.getModifierGroupsResponse = getModifierGroupsResponse; - return this; - } - - /** - * Unexpected error - */ - public PosModifierGroupsAllResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosModifierGroupsAllResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifierGroupsAllResponse other = (PosModifierGroupsAllResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getModifierGroupsResponse, other.getModifierGroupsResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getModifierGroupsResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosModifierGroupsAllResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getModifierGroupsResponse", getModifierGroupsResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getModifierGroupsResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * ModifierGroups - */ - public Builder getModifierGroupsResponse(GetModifierGroupsResponse getModifierGroupsResponse) { - Utils.checkNotNull(getModifierGroupsResponse, "getModifierGroupsResponse"); - this.getModifierGroupsResponse = Optional.ofNullable(getModifierGroupsResponse); - return this; - } - - /** - * ModifierGroups - */ - public Builder getModifierGroupsResponse(Optional getModifierGroupsResponse) { - Utils.checkNotNull(getModifierGroupsResponse, "getModifierGroupsResponse"); - this.getModifierGroupsResponse = getModifierGroupsResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosModifierGroupsAllResponse build() { - return new PosModifierGroupsAllResponse( - contentType, - statusCode, - rawResponse, - getModifierGroupsResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteRequest.java deleted file mode 100644 index 5b1149a..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteRequest.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifierGroupsDeleteRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @JsonCreator - public PosModifierGroupsDeleteRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - } - - public PosModifierGroupsDeleteRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosModifierGroupsDeleteRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifierGroupsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifierGroupsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifierGroupsDeleteRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifierGroupsDeleteRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifierGroupsDeleteRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifierGroupsDeleteRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifierGroupsDeleteRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifierGroupsDeleteRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifierGroupsDeleteRequest other = (PosModifierGroupsDeleteRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw); - } - - @Override - public String toString() { - return Utils.toString(PosModifierGroupsDeleteRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosModifierGroupsDeleteRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosModifierGroupsDeleteRequest( - id, - customerId, - appId, - serviceId, - raw); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteRequestBuilder.java deleted file mode 100644 index ecab5b5..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosModifierGroupsDeleteRequestBuilder { - - private PosModifierGroupsDeleteRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosModifierGroupsDelete sdk; - - public PosModifierGroupsDeleteRequestBuilder(SDKMethodInterfaces.MethodCallPosModifierGroupsDelete sdk) { - this.sdk = sdk; - } - - public PosModifierGroupsDeleteRequestBuilder request(PosModifierGroupsDeleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosModifierGroupsDeleteRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosModifierGroupsDeleteRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosModifierGroupsDeleteResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.delete( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteResponse.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteResponse.java deleted file mode 100644 index 4c22162..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsDeleteResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.DeleteModifierGroupResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifierGroupsDeleteResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * ModifierGroups - */ - private Optional deleteModifierGroupResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosModifierGroupsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional deleteModifierGroupResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(deleteModifierGroupResponse, "deleteModifierGroupResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.deleteModifierGroupResponse = deleteModifierGroupResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosModifierGroupsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * ModifierGroups - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deleteModifierGroupResponse() { - return (Optional) deleteModifierGroupResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosModifierGroupsDeleteResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosModifierGroupsDeleteResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosModifierGroupsDeleteResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * ModifierGroups - */ - public PosModifierGroupsDeleteResponse withDeleteModifierGroupResponse(DeleteModifierGroupResponse deleteModifierGroupResponse) { - Utils.checkNotNull(deleteModifierGroupResponse, "deleteModifierGroupResponse"); - this.deleteModifierGroupResponse = Optional.ofNullable(deleteModifierGroupResponse); - return this; - } - - /** - * ModifierGroups - */ - public PosModifierGroupsDeleteResponse withDeleteModifierGroupResponse(Optional deleteModifierGroupResponse) { - Utils.checkNotNull(deleteModifierGroupResponse, "deleteModifierGroupResponse"); - this.deleteModifierGroupResponse = deleteModifierGroupResponse; - return this; - } - - /** - * Unexpected error - */ - public PosModifierGroupsDeleteResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosModifierGroupsDeleteResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifierGroupsDeleteResponse other = (PosModifierGroupsDeleteResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.deleteModifierGroupResponse, other.deleteModifierGroupResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - deleteModifierGroupResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosModifierGroupsDeleteResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "deleteModifierGroupResponse", deleteModifierGroupResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional deleteModifierGroupResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * ModifierGroups - */ - public Builder deleteModifierGroupResponse(DeleteModifierGroupResponse deleteModifierGroupResponse) { - Utils.checkNotNull(deleteModifierGroupResponse, "deleteModifierGroupResponse"); - this.deleteModifierGroupResponse = Optional.ofNullable(deleteModifierGroupResponse); - return this; - } - - /** - * ModifierGroups - */ - public Builder deleteModifierGroupResponse(Optional deleteModifierGroupResponse) { - Utils.checkNotNull(deleteModifierGroupResponse, "deleteModifierGroupResponse"); - this.deleteModifierGroupResponse = deleteModifierGroupResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosModifierGroupsDeleteResponse build() { - return new PosModifierGroupsDeleteResponse( - contentType, - statusCode, - rawResponse, - deleteModifierGroupResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneRequest.java deleted file mode 100644 index cc44c77..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneRequest.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosModifierGroupsOneRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosModifierGroupsOneRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - JsonNullable fields) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(fields, "fields"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.fields = fields; - } - - public PosModifierGroupsOneRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosModifierGroupsOneRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifierGroupsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifierGroupsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifierGroupsOneRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifierGroupsOneRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifierGroupsOneRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifierGroupsOneRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifierGroupsOneRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifierGroupsOneRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosModifierGroupsOneRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosModifierGroupsOneRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifierGroupsOneRequest other = (PosModifierGroupsOneRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosModifierGroupsOneRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "fields", fields); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosModifierGroupsOneRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosModifierGroupsOneRequest( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneRequestBuilder.java deleted file mode 100644 index 3358bf8..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosModifierGroupsOneRequestBuilder { - - private PosModifierGroupsOneRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosModifierGroupsOne sdk; - - public PosModifierGroupsOneRequestBuilder(SDKMethodInterfaces.MethodCallPosModifierGroupsOne sdk) { - this.sdk = sdk; - } - - public PosModifierGroupsOneRequestBuilder request(PosModifierGroupsOneRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosModifierGroupsOneRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosModifierGroupsOneRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosModifierGroupsOneResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.get( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneResponse.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneResponse.java deleted file mode 100644 index 6ef48c8..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsOneResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetModifierGroupResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifierGroupsOneResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * ModifierGroups - */ - private Optional getModifierGroupResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosModifierGroupsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getModifierGroupResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getModifierGroupResponse, "getModifierGroupResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getModifierGroupResponse = getModifierGroupResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosModifierGroupsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * ModifierGroups - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getModifierGroupResponse() { - return (Optional) getModifierGroupResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosModifierGroupsOneResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosModifierGroupsOneResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosModifierGroupsOneResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * ModifierGroups - */ - public PosModifierGroupsOneResponse withGetModifierGroupResponse(GetModifierGroupResponse getModifierGroupResponse) { - Utils.checkNotNull(getModifierGroupResponse, "getModifierGroupResponse"); - this.getModifierGroupResponse = Optional.ofNullable(getModifierGroupResponse); - return this; - } - - /** - * ModifierGroups - */ - public PosModifierGroupsOneResponse withGetModifierGroupResponse(Optional getModifierGroupResponse) { - Utils.checkNotNull(getModifierGroupResponse, "getModifierGroupResponse"); - this.getModifierGroupResponse = getModifierGroupResponse; - return this; - } - - /** - * Unexpected error - */ - public PosModifierGroupsOneResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosModifierGroupsOneResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifierGroupsOneResponse other = (PosModifierGroupsOneResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getModifierGroupResponse, other.getModifierGroupResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getModifierGroupResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosModifierGroupsOneResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getModifierGroupResponse", getModifierGroupResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getModifierGroupResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * ModifierGroups - */ - public Builder getModifierGroupResponse(GetModifierGroupResponse getModifierGroupResponse) { - Utils.checkNotNull(getModifierGroupResponse, "getModifierGroupResponse"); - this.getModifierGroupResponse = Optional.ofNullable(getModifierGroupResponse); - return this; - } - - /** - * ModifierGroups - */ - public Builder getModifierGroupResponse(Optional getModifierGroupResponse) { - Utils.checkNotNull(getModifierGroupResponse, "getModifierGroupResponse"); - this.getModifierGroupResponse = getModifierGroupResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosModifierGroupsOneResponse build() { - return new PosModifierGroupsOneResponse( - contentType, - statusCode, - rawResponse, - getModifierGroupResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateRequest.java deleted file mode 100644 index eb28f96..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.ModifierGroupInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifierGroupsUpdateRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @SpeakeasyMetadata("request:mediaType=application/json") - private ModifierGroupInput modifierGroup; - - @JsonCreator - public PosModifierGroupsUpdateRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - ModifierGroupInput modifierGroup) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(modifierGroup, "modifierGroup"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.modifierGroup = modifierGroup; - } - - public PosModifierGroupsUpdateRequest( - String id, - ModifierGroupInput modifierGroup) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), modifierGroup); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - @JsonIgnore - public ModifierGroupInput modifierGroup() { - return modifierGroup; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosModifierGroupsUpdateRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifierGroupsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifierGroupsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifierGroupsUpdateRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifierGroupsUpdateRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifierGroupsUpdateRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifierGroupsUpdateRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifierGroupsUpdateRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifierGroupsUpdateRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosModifierGroupsUpdateRequest withModifierGroup(ModifierGroupInput modifierGroup) { - Utils.checkNotNull(modifierGroup, "modifierGroup"); - this.modifierGroup = modifierGroup; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifierGroupsUpdateRequest other = (PosModifierGroupsUpdateRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.modifierGroup, other.modifierGroup); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - modifierGroup); - } - - @Override - public String toString() { - return Utils.toString(PosModifierGroupsUpdateRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "modifierGroup", modifierGroup); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private ModifierGroupInput modifierGroup; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public Builder modifierGroup(ModifierGroupInput modifierGroup) { - Utils.checkNotNull(modifierGroup, "modifierGroup"); - this.modifierGroup = modifierGroup; - return this; - } - - public PosModifierGroupsUpdateRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosModifierGroupsUpdateRequest( - id, - customerId, - appId, - serviceId, - raw, - modifierGroup); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateRequestBuilder.java deleted file mode 100644 index 0cec1ef..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosModifierGroupsUpdateRequestBuilder { - - private PosModifierGroupsUpdateRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosModifierGroupsUpdate sdk; - - public PosModifierGroupsUpdateRequestBuilder(SDKMethodInterfaces.MethodCallPosModifierGroupsUpdate sdk) { - this.sdk = sdk; - } - - public PosModifierGroupsUpdateRequestBuilder request(PosModifierGroupsUpdateRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosModifierGroupsUpdateRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosModifierGroupsUpdateRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosModifierGroupsUpdateResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.update( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateResponse.java b/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateResponse.java deleted file mode 100644 index eb9520e..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifierGroupsUpdateResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateModifierGroupResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifierGroupsUpdateResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * ModifierGroups - */ - private Optional updateModifierGroupResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosModifierGroupsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional updateModifierGroupResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(updateModifierGroupResponse, "updateModifierGroupResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.updateModifierGroupResponse = updateModifierGroupResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosModifierGroupsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * ModifierGroups - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updateModifierGroupResponse() { - return (Optional) updateModifierGroupResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosModifierGroupsUpdateResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosModifierGroupsUpdateResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosModifierGroupsUpdateResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * ModifierGroups - */ - public PosModifierGroupsUpdateResponse withUpdateModifierGroupResponse(UpdateModifierGroupResponse updateModifierGroupResponse) { - Utils.checkNotNull(updateModifierGroupResponse, "updateModifierGroupResponse"); - this.updateModifierGroupResponse = Optional.ofNullable(updateModifierGroupResponse); - return this; - } - - /** - * ModifierGroups - */ - public PosModifierGroupsUpdateResponse withUpdateModifierGroupResponse(Optional updateModifierGroupResponse) { - Utils.checkNotNull(updateModifierGroupResponse, "updateModifierGroupResponse"); - this.updateModifierGroupResponse = updateModifierGroupResponse; - return this; - } - - /** - * Unexpected error - */ - public PosModifierGroupsUpdateResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosModifierGroupsUpdateResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifierGroupsUpdateResponse other = (PosModifierGroupsUpdateResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.updateModifierGroupResponse, other.updateModifierGroupResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - updateModifierGroupResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosModifierGroupsUpdateResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "updateModifierGroupResponse", updateModifierGroupResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional updateModifierGroupResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * ModifierGroups - */ - public Builder updateModifierGroupResponse(UpdateModifierGroupResponse updateModifierGroupResponse) { - Utils.checkNotNull(updateModifierGroupResponse, "updateModifierGroupResponse"); - this.updateModifierGroupResponse = Optional.ofNullable(updateModifierGroupResponse); - return this; - } - - /** - * ModifierGroups - */ - public Builder updateModifierGroupResponse(Optional updateModifierGroupResponse) { - Utils.checkNotNull(updateModifierGroupResponse, "updateModifierGroupResponse"); - this.updateModifierGroupResponse = updateModifierGroupResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosModifierGroupsUpdateResponse build() { - return new PosModifierGroupsUpdateResponse( - contentType, - statusCode, - rawResponse, - updateModifierGroupResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersAddRequest.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersAddRequest.java deleted file mode 100644 index 225d8bb..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersAddRequest.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.ModifierInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifiersAddRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - @SpeakeasyMetadata("request:mediaType=application/json") - private ModifierInput modifier; - - @JsonCreator - public PosModifiersAddRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - ModifierInput modifier) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(modifier, "modifier"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.modifier = modifier; - } - - public PosModifiersAddRequest( - ModifierInput modifier) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), modifier); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - @JsonIgnore - public ModifierInput modifier() { - return modifier; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifiersAddRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifiersAddRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifiersAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifiersAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifiersAddRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifiersAddRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifiersAddRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifiersAddRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public PosModifiersAddRequest withModifier(ModifierInput modifier) { - Utils.checkNotNull(modifier, "modifier"); - this.modifier = modifier; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifiersAddRequest other = (PosModifiersAddRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.modifier, other.modifier); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - modifier); - } - - @Override - public String toString() { - return Utils.toString(PosModifiersAddRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "modifier", modifier); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private ModifierInput modifier; - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public Builder modifier(ModifierInput modifier) { - Utils.checkNotNull(modifier, "modifier"); - this.modifier = modifier; - return this; - } - - public PosModifiersAddRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosModifiersAddRequest( - raw, - customerId, - appId, - serviceId, - modifier); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersAddRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersAddRequestBuilder.java deleted file mode 100644 index dedc066..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersAddRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosModifiersAddRequestBuilder { - - private PosModifiersAddRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosModifiersAdd sdk; - - public PosModifiersAddRequestBuilder(SDKMethodInterfaces.MethodCallPosModifiersAdd sdk) { - this.sdk = sdk; - } - - public PosModifiersAddRequestBuilder request(PosModifiersAddRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosModifiersAddRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosModifiersAddRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosModifiersAddResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.create( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersAddResponse.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersAddResponse.java deleted file mode 100644 index e3bb304..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersAddResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.CreateModifierResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifiersAddResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Modifiers - */ - private Optional createModifierResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosModifiersAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional createModifierResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(createModifierResponse, "createModifierResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.createModifierResponse = createModifierResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosModifiersAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Modifiers - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createModifierResponse() { - return (Optional) createModifierResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosModifiersAddResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosModifiersAddResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosModifiersAddResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Modifiers - */ - public PosModifiersAddResponse withCreateModifierResponse(CreateModifierResponse createModifierResponse) { - Utils.checkNotNull(createModifierResponse, "createModifierResponse"); - this.createModifierResponse = Optional.ofNullable(createModifierResponse); - return this; - } - - /** - * Modifiers - */ - public PosModifiersAddResponse withCreateModifierResponse(Optional createModifierResponse) { - Utils.checkNotNull(createModifierResponse, "createModifierResponse"); - this.createModifierResponse = createModifierResponse; - return this; - } - - /** - * Unexpected error - */ - public PosModifiersAddResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosModifiersAddResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifiersAddResponse other = (PosModifiersAddResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.createModifierResponse, other.createModifierResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - createModifierResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosModifiersAddResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "createModifierResponse", createModifierResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional createModifierResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Modifiers - */ - public Builder createModifierResponse(CreateModifierResponse createModifierResponse) { - Utils.checkNotNull(createModifierResponse, "createModifierResponse"); - this.createModifierResponse = Optional.ofNullable(createModifierResponse); - return this; - } - - /** - * Modifiers - */ - public Builder createModifierResponse(Optional createModifierResponse) { - Utils.checkNotNull(createModifierResponse, "createModifierResponse"); - this.createModifierResponse = createModifierResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosModifiersAddResponse build() { - return new PosModifiersAddResponse( - contentType, - statusCode, - rawResponse, - createModifierResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersAllRequest.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersAllRequest.java deleted file mode 100644 index a50c3e1..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersAllRequest.java +++ /dev/null @@ -1,500 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosModifiersAllRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private JsonNullable cursor; - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosModifiersAllRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - JsonNullable cursor, - Optional limit, - JsonNullable fields) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(limit, "limit"); - Utils.checkNotNull(fields, "fields"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.cursor = cursor; - this.limit = limit; - this.fields = fields; - } - - public PosModifiersAllRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @JsonIgnore - public JsonNullable cursor() { - return cursor; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @JsonIgnore - public Optional limit() { - return limit; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifiersAllRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifiersAllRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifiersAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifiersAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifiersAllRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifiersAllRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifiersAllRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifiersAllRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosModifiersAllRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosModifiersAllRequest withCursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosModifiersAllRequest withLimit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosModifiersAllRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosModifiersAllRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosModifiersAllRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifiersAllRequest other = (PosModifiersAllRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosModifiersAllRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "cursor", cursor, - "limit", limit, - "fields", fields); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private JsonNullable cursor = JsonNullable.undefined(); - - private Optional limit; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosModifiersAllRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } return new PosModifiersAllRequest( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "20", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersAllRequestBuilder.java deleted file mode 100644 index 184a5f8..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersAllRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosModifiersAllRequestBuilder { - - private PosModifiersAllRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosModifiersAll sdk; - - public PosModifiersAllRequestBuilder(SDKMethodInterfaces.MethodCallPosModifiersAll sdk) { - this.sdk = sdk; - } - - public PosModifiersAllRequestBuilder request(PosModifiersAllRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosModifiersAllRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosModifiersAllRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosModifiersAllResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.list( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersAllResponse.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersAllResponse.java deleted file mode 100644 index 5cd1cdd..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersAllResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetModifiersResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifiersAllResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Modifiers - */ - private Optional getModifiersResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosModifiersAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getModifiersResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getModifiersResponse, "getModifiersResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getModifiersResponse = getModifiersResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosModifiersAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Modifiers - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getModifiersResponse() { - return (Optional) getModifiersResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosModifiersAllResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosModifiersAllResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosModifiersAllResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Modifiers - */ - public PosModifiersAllResponse withGetModifiersResponse(GetModifiersResponse getModifiersResponse) { - Utils.checkNotNull(getModifiersResponse, "getModifiersResponse"); - this.getModifiersResponse = Optional.ofNullable(getModifiersResponse); - return this; - } - - /** - * Modifiers - */ - public PosModifiersAllResponse withGetModifiersResponse(Optional getModifiersResponse) { - Utils.checkNotNull(getModifiersResponse, "getModifiersResponse"); - this.getModifiersResponse = getModifiersResponse; - return this; - } - - /** - * Unexpected error - */ - public PosModifiersAllResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosModifiersAllResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifiersAllResponse other = (PosModifiersAllResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getModifiersResponse, other.getModifiersResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getModifiersResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosModifiersAllResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getModifiersResponse", getModifiersResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getModifiersResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Modifiers - */ - public Builder getModifiersResponse(GetModifiersResponse getModifiersResponse) { - Utils.checkNotNull(getModifiersResponse, "getModifiersResponse"); - this.getModifiersResponse = Optional.ofNullable(getModifiersResponse); - return this; - } - - /** - * Modifiers - */ - public Builder getModifiersResponse(Optional getModifiersResponse) { - Utils.checkNotNull(getModifiersResponse, "getModifiersResponse"); - this.getModifiersResponse = getModifiersResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosModifiersAllResponse build() { - return new PosModifiersAllResponse( - contentType, - statusCode, - rawResponse, - getModifiersResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteRequest.java deleted file mode 100644 index 835059d..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteRequest.java +++ /dev/null @@ -1,416 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.ModifierGroupFilter; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifiersDeleteRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * Apply filters - */ - @SpeakeasyMetadata("queryParam:style=deepObject,explode=true,name=filter") - private Optional filter; - - @JsonCreator - public PosModifiersDeleteRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - Optional filter) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(filter, "filter"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.filter = filter; - } - - public PosModifiersDeleteRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * Apply filters - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosModifiersDeleteRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifiersDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifiersDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifiersDeleteRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifiersDeleteRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifiersDeleteRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifiersDeleteRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifiersDeleteRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifiersDeleteRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * Apply filters - */ - public PosModifiersDeleteRequest withFilter(ModifierGroupFilter filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - /** - * Apply filters - */ - public PosModifiersDeleteRequest withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifiersDeleteRequest other = (PosModifiersDeleteRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.filter, other.filter); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - filter); - } - - @Override - public String toString() { - return Utils.toString(PosModifiersDeleteRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "filter", filter); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private Optional filter = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * Apply filters - */ - public Builder filter(ModifierGroupFilter filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - /** - * Apply filters - */ - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public PosModifiersDeleteRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosModifiersDeleteRequest( - id, - customerId, - appId, - serviceId, - raw, - filter); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteRequestBuilder.java deleted file mode 100644 index ae06c30..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosModifiersDeleteRequestBuilder { - - private PosModifiersDeleteRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosModifiersDelete sdk; - - public PosModifiersDeleteRequestBuilder(SDKMethodInterfaces.MethodCallPosModifiersDelete sdk) { - this.sdk = sdk; - } - - public PosModifiersDeleteRequestBuilder request(PosModifiersDeleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosModifiersDeleteRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosModifiersDeleteRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosModifiersDeleteResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.delete( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteResponse.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteResponse.java deleted file mode 100644 index dcc2584..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersDeleteResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.DeleteModifierResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifiersDeleteResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Modifiers - */ - private Optional deleteModifierResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosModifiersDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional deleteModifierResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(deleteModifierResponse, "deleteModifierResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.deleteModifierResponse = deleteModifierResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosModifiersDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Modifiers - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deleteModifierResponse() { - return (Optional) deleteModifierResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosModifiersDeleteResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosModifiersDeleteResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosModifiersDeleteResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Modifiers - */ - public PosModifiersDeleteResponse withDeleteModifierResponse(DeleteModifierResponse deleteModifierResponse) { - Utils.checkNotNull(deleteModifierResponse, "deleteModifierResponse"); - this.deleteModifierResponse = Optional.ofNullable(deleteModifierResponse); - return this; - } - - /** - * Modifiers - */ - public PosModifiersDeleteResponse withDeleteModifierResponse(Optional deleteModifierResponse) { - Utils.checkNotNull(deleteModifierResponse, "deleteModifierResponse"); - this.deleteModifierResponse = deleteModifierResponse; - return this; - } - - /** - * Unexpected error - */ - public PosModifiersDeleteResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosModifiersDeleteResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifiersDeleteResponse other = (PosModifiersDeleteResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.deleteModifierResponse, other.deleteModifierResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - deleteModifierResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosModifiersDeleteResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "deleteModifierResponse", deleteModifierResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional deleteModifierResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Modifiers - */ - public Builder deleteModifierResponse(DeleteModifierResponse deleteModifierResponse) { - Utils.checkNotNull(deleteModifierResponse, "deleteModifierResponse"); - this.deleteModifierResponse = Optional.ofNullable(deleteModifierResponse); - return this; - } - - /** - * Modifiers - */ - public Builder deleteModifierResponse(Optional deleteModifierResponse) { - Utils.checkNotNull(deleteModifierResponse, "deleteModifierResponse"); - this.deleteModifierResponse = deleteModifierResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosModifiersDeleteResponse build() { - return new PosModifiersDeleteResponse( - contentType, - statusCode, - rawResponse, - deleteModifierResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersOneRequest.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersOneRequest.java deleted file mode 100644 index 63b8561..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersOneRequest.java +++ /dev/null @@ -1,476 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.ModifierGroupFilter; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosModifiersOneRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * Apply filters - */ - @SpeakeasyMetadata("queryParam:style=deepObject,explode=true,name=filter") - private Optional filter; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosModifiersOneRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - Optional filter, - JsonNullable fields) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(fields, "fields"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.filter = filter; - this.fields = fields; - } - - public PosModifiersOneRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * Apply filters - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosModifiersOneRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifiersOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifiersOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifiersOneRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifiersOneRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifiersOneRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifiersOneRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifiersOneRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifiersOneRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * Apply filters - */ - public PosModifiersOneRequest withFilter(ModifierGroupFilter filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - /** - * Apply filters - */ - public PosModifiersOneRequest withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosModifiersOneRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosModifiersOneRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifiersOneRequest other = (PosModifiersOneRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.filter, other.filter) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - filter, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosModifiersOneRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "filter", filter, - "fields", fields); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private Optional filter = Optional.empty(); - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * Apply filters - */ - public Builder filter(ModifierGroupFilter filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - /** - * Apply filters - */ - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosModifiersOneRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosModifiersOneRequest( - id, - customerId, - appId, - serviceId, - raw, - filter, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersOneRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersOneRequestBuilder.java deleted file mode 100644 index 6de2c9d..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersOneRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosModifiersOneRequestBuilder { - - private PosModifiersOneRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosModifiersOne sdk; - - public PosModifiersOneRequestBuilder(SDKMethodInterfaces.MethodCallPosModifiersOne sdk) { - this.sdk = sdk; - } - - public PosModifiersOneRequestBuilder request(PosModifiersOneRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosModifiersOneRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosModifiersOneRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosModifiersOneResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.get( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersOneResponse.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersOneResponse.java deleted file mode 100644 index d48265d..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersOneResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetModifierResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifiersOneResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Modifiers - */ - private Optional getModifierResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosModifiersOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getModifierResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getModifierResponse, "getModifierResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getModifierResponse = getModifierResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosModifiersOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Modifiers - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getModifierResponse() { - return (Optional) getModifierResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosModifiersOneResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosModifiersOneResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosModifiersOneResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Modifiers - */ - public PosModifiersOneResponse withGetModifierResponse(GetModifierResponse getModifierResponse) { - Utils.checkNotNull(getModifierResponse, "getModifierResponse"); - this.getModifierResponse = Optional.ofNullable(getModifierResponse); - return this; - } - - /** - * Modifiers - */ - public PosModifiersOneResponse withGetModifierResponse(Optional getModifierResponse) { - Utils.checkNotNull(getModifierResponse, "getModifierResponse"); - this.getModifierResponse = getModifierResponse; - return this; - } - - /** - * Unexpected error - */ - public PosModifiersOneResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosModifiersOneResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifiersOneResponse other = (PosModifiersOneResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getModifierResponse, other.getModifierResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getModifierResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosModifiersOneResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getModifierResponse", getModifierResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getModifierResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Modifiers - */ - public Builder getModifierResponse(GetModifierResponse getModifierResponse) { - Utils.checkNotNull(getModifierResponse, "getModifierResponse"); - this.getModifierResponse = Optional.ofNullable(getModifierResponse); - return this; - } - - /** - * Modifiers - */ - public Builder getModifierResponse(Optional getModifierResponse) { - Utils.checkNotNull(getModifierResponse, "getModifierResponse"); - this.getModifierResponse = getModifierResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosModifiersOneResponse build() { - return new PosModifiersOneResponse( - contentType, - statusCode, - rawResponse, - getModifierResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateRequest.java deleted file mode 100644 index 8e4e166..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.ModifierInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifiersUpdateRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @SpeakeasyMetadata("request:mediaType=application/json") - private ModifierInput modifier; - - @JsonCreator - public PosModifiersUpdateRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - ModifierInput modifier) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(modifier, "modifier"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.modifier = modifier; - } - - public PosModifiersUpdateRequest( - String id, - ModifierInput modifier) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), modifier); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - @JsonIgnore - public ModifierInput modifier() { - return modifier; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosModifiersUpdateRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifiersUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosModifiersUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifiersUpdateRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosModifiersUpdateRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifiersUpdateRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosModifiersUpdateRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifiersUpdateRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosModifiersUpdateRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosModifiersUpdateRequest withModifier(ModifierInput modifier) { - Utils.checkNotNull(modifier, "modifier"); - this.modifier = modifier; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifiersUpdateRequest other = (PosModifiersUpdateRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.modifier, other.modifier); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - modifier); - } - - @Override - public String toString() { - return Utils.toString(PosModifiersUpdateRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "modifier", modifier); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private ModifierInput modifier; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public Builder modifier(ModifierInput modifier) { - Utils.checkNotNull(modifier, "modifier"); - this.modifier = modifier; - return this; - } - - public PosModifiersUpdateRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosModifiersUpdateRequest( - id, - customerId, - appId, - serviceId, - raw, - modifier); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateRequestBuilder.java deleted file mode 100644 index 1109025..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosModifiersUpdateRequestBuilder { - - private PosModifiersUpdateRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosModifiersUpdate sdk; - - public PosModifiersUpdateRequestBuilder(SDKMethodInterfaces.MethodCallPosModifiersUpdate sdk) { - this.sdk = sdk; - } - - public PosModifiersUpdateRequestBuilder request(PosModifiersUpdateRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosModifiersUpdateRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosModifiersUpdateRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosModifiersUpdateResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.update( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateResponse.java b/src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateResponse.java deleted file mode 100644 index 1bf64cc..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosModifiersUpdateResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateModifierResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosModifiersUpdateResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Modifiers - */ - private Optional updateModifierResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosModifiersUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional updateModifierResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(updateModifierResponse, "updateModifierResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.updateModifierResponse = updateModifierResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosModifiersUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Modifiers - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updateModifierResponse() { - return (Optional) updateModifierResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosModifiersUpdateResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosModifiersUpdateResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosModifiersUpdateResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Modifiers - */ - public PosModifiersUpdateResponse withUpdateModifierResponse(UpdateModifierResponse updateModifierResponse) { - Utils.checkNotNull(updateModifierResponse, "updateModifierResponse"); - this.updateModifierResponse = Optional.ofNullable(updateModifierResponse); - return this; - } - - /** - * Modifiers - */ - public PosModifiersUpdateResponse withUpdateModifierResponse(Optional updateModifierResponse) { - Utils.checkNotNull(updateModifierResponse, "updateModifierResponse"); - this.updateModifierResponse = updateModifierResponse; - return this; - } - - /** - * Unexpected error - */ - public PosModifiersUpdateResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosModifiersUpdateResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosModifiersUpdateResponse other = (PosModifiersUpdateResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.updateModifierResponse, other.updateModifierResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - updateModifierResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosModifiersUpdateResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "updateModifierResponse", updateModifierResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional updateModifierResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Modifiers - */ - public Builder updateModifierResponse(UpdateModifierResponse updateModifierResponse) { - Utils.checkNotNull(updateModifierResponse, "updateModifierResponse"); - this.updateModifierResponse = Optional.ofNullable(updateModifierResponse); - return this; - } - - /** - * Modifiers - */ - public Builder updateModifierResponse(Optional updateModifierResponse) { - Utils.checkNotNull(updateModifierResponse, "updateModifierResponse"); - this.updateModifierResponse = updateModifierResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosModifiersUpdateResponse build() { - return new PosModifiersUpdateResponse( - contentType, - statusCode, - rawResponse, - updateModifierResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddRequest.java deleted file mode 100644 index ece174c..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddRequest.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.OrderTypeInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrderTypesAddRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - @SpeakeasyMetadata("request:mediaType=application/json") - private OrderTypeInput orderType; - - @JsonCreator - public PosOrderTypesAddRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - OrderTypeInput orderType) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(orderType, "orderType"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.orderType = orderType; - } - - public PosOrderTypesAddRequest( - OrderTypeInput orderType) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), orderType); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - @JsonIgnore - public OrderTypeInput orderType() { - return orderType; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrderTypesAddRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrderTypesAddRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrderTypesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrderTypesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrderTypesAddRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrderTypesAddRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrderTypesAddRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrderTypesAddRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public PosOrderTypesAddRequest withOrderType(OrderTypeInput orderType) { - Utils.checkNotNull(orderType, "orderType"); - this.orderType = orderType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrderTypesAddRequest other = (PosOrderTypesAddRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.orderType, other.orderType); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - orderType); - } - - @Override - public String toString() { - return Utils.toString(PosOrderTypesAddRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "orderType", orderType); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private OrderTypeInput orderType; - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public Builder orderType(OrderTypeInput orderType) { - Utils.checkNotNull(orderType, "orderType"); - this.orderType = orderType; - return this; - } - - public PosOrderTypesAddRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosOrderTypesAddRequest( - raw, - customerId, - appId, - serviceId, - orderType); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddRequestBuilder.java deleted file mode 100644 index aa60ce2..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosOrderTypesAddRequestBuilder { - - private PosOrderTypesAddRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosOrderTypesAdd sdk; - - public PosOrderTypesAddRequestBuilder(SDKMethodInterfaces.MethodCallPosOrderTypesAdd sdk) { - this.sdk = sdk; - } - - public PosOrderTypesAddRequestBuilder request(PosOrderTypesAddRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosOrderTypesAddRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosOrderTypesAddRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosOrderTypesAddResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.create( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddResponse.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddResponse.java deleted file mode 100644 index bad751c..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAddResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.CreateOrderTypeResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrderTypesAddResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * OrderTypes - */ - private Optional createOrderTypeResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosOrderTypesAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional createOrderTypeResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(createOrderTypeResponse, "createOrderTypeResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.createOrderTypeResponse = createOrderTypeResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosOrderTypesAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * OrderTypes - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createOrderTypeResponse() { - return (Optional) createOrderTypeResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosOrderTypesAddResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosOrderTypesAddResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosOrderTypesAddResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * OrderTypes - */ - public PosOrderTypesAddResponse withCreateOrderTypeResponse(CreateOrderTypeResponse createOrderTypeResponse) { - Utils.checkNotNull(createOrderTypeResponse, "createOrderTypeResponse"); - this.createOrderTypeResponse = Optional.ofNullable(createOrderTypeResponse); - return this; - } - - /** - * OrderTypes - */ - public PosOrderTypesAddResponse withCreateOrderTypeResponse(Optional createOrderTypeResponse) { - Utils.checkNotNull(createOrderTypeResponse, "createOrderTypeResponse"); - this.createOrderTypeResponse = createOrderTypeResponse; - return this; - } - - /** - * Unexpected error - */ - public PosOrderTypesAddResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosOrderTypesAddResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrderTypesAddResponse other = (PosOrderTypesAddResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.createOrderTypeResponse, other.createOrderTypeResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - createOrderTypeResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosOrderTypesAddResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "createOrderTypeResponse", createOrderTypeResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional createOrderTypeResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * OrderTypes - */ - public Builder createOrderTypeResponse(CreateOrderTypeResponse createOrderTypeResponse) { - Utils.checkNotNull(createOrderTypeResponse, "createOrderTypeResponse"); - this.createOrderTypeResponse = Optional.ofNullable(createOrderTypeResponse); - return this; - } - - /** - * OrderTypes - */ - public Builder createOrderTypeResponse(Optional createOrderTypeResponse) { - Utils.checkNotNull(createOrderTypeResponse, "createOrderTypeResponse"); - this.createOrderTypeResponse = createOrderTypeResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosOrderTypesAddResponse build() { - return new PosOrderTypesAddResponse( - contentType, - statusCode, - rawResponse, - createOrderTypeResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllRequest.java deleted file mode 100644 index 47659ff..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllRequest.java +++ /dev/null @@ -1,500 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosOrderTypesAllRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private JsonNullable cursor; - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosOrderTypesAllRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - JsonNullable cursor, - Optional limit, - JsonNullable fields) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(limit, "limit"); - Utils.checkNotNull(fields, "fields"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.cursor = cursor; - this.limit = limit; - this.fields = fields; - } - - public PosOrderTypesAllRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @JsonIgnore - public JsonNullable cursor() { - return cursor; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @JsonIgnore - public Optional limit() { - return limit; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrderTypesAllRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrderTypesAllRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrderTypesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrderTypesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrderTypesAllRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrderTypesAllRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrderTypesAllRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrderTypesAllRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosOrderTypesAllRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosOrderTypesAllRequest withCursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosOrderTypesAllRequest withLimit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosOrderTypesAllRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosOrderTypesAllRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosOrderTypesAllRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrderTypesAllRequest other = (PosOrderTypesAllRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosOrderTypesAllRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "cursor", cursor, - "limit", limit, - "fields", fields); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private JsonNullable cursor = JsonNullable.undefined(); - - private Optional limit; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosOrderTypesAllRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } return new PosOrderTypesAllRequest( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "20", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllRequestBuilder.java deleted file mode 100644 index 464f8fb..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosOrderTypesAllRequestBuilder { - - private PosOrderTypesAllRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosOrderTypesAll sdk; - - public PosOrderTypesAllRequestBuilder(SDKMethodInterfaces.MethodCallPosOrderTypesAll sdk) { - this.sdk = sdk; - } - - public PosOrderTypesAllRequestBuilder request(PosOrderTypesAllRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosOrderTypesAllRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosOrderTypesAllRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosOrderTypesAllResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.list( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllResponse.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllResponse.java deleted file mode 100644 index 8467d54..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesAllResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetOrderTypesResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrderTypesAllResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * OrderTypes - */ - private Optional getOrderTypesResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosOrderTypesAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getOrderTypesResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getOrderTypesResponse, "getOrderTypesResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getOrderTypesResponse = getOrderTypesResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosOrderTypesAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * OrderTypes - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getOrderTypesResponse() { - return (Optional) getOrderTypesResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosOrderTypesAllResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosOrderTypesAllResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosOrderTypesAllResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * OrderTypes - */ - public PosOrderTypesAllResponse withGetOrderTypesResponse(GetOrderTypesResponse getOrderTypesResponse) { - Utils.checkNotNull(getOrderTypesResponse, "getOrderTypesResponse"); - this.getOrderTypesResponse = Optional.ofNullable(getOrderTypesResponse); - return this; - } - - /** - * OrderTypes - */ - public PosOrderTypesAllResponse withGetOrderTypesResponse(Optional getOrderTypesResponse) { - Utils.checkNotNull(getOrderTypesResponse, "getOrderTypesResponse"); - this.getOrderTypesResponse = getOrderTypesResponse; - return this; - } - - /** - * Unexpected error - */ - public PosOrderTypesAllResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosOrderTypesAllResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrderTypesAllResponse other = (PosOrderTypesAllResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getOrderTypesResponse, other.getOrderTypesResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getOrderTypesResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosOrderTypesAllResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getOrderTypesResponse", getOrderTypesResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getOrderTypesResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * OrderTypes - */ - public Builder getOrderTypesResponse(GetOrderTypesResponse getOrderTypesResponse) { - Utils.checkNotNull(getOrderTypesResponse, "getOrderTypesResponse"); - this.getOrderTypesResponse = Optional.ofNullable(getOrderTypesResponse); - return this; - } - - /** - * OrderTypes - */ - public Builder getOrderTypesResponse(Optional getOrderTypesResponse) { - Utils.checkNotNull(getOrderTypesResponse, "getOrderTypesResponse"); - this.getOrderTypesResponse = getOrderTypesResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosOrderTypesAllResponse build() { - return new PosOrderTypesAllResponse( - contentType, - statusCode, - rawResponse, - getOrderTypesResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteRequest.java deleted file mode 100644 index ba7ea9f..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteRequest.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrderTypesDeleteRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @JsonCreator - public PosOrderTypesDeleteRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - } - - public PosOrderTypesDeleteRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosOrderTypesDeleteRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrderTypesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrderTypesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrderTypesDeleteRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrderTypesDeleteRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrderTypesDeleteRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrderTypesDeleteRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrderTypesDeleteRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrderTypesDeleteRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrderTypesDeleteRequest other = (PosOrderTypesDeleteRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw); - } - - @Override - public String toString() { - return Utils.toString(PosOrderTypesDeleteRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosOrderTypesDeleteRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosOrderTypesDeleteRequest( - id, - customerId, - appId, - serviceId, - raw); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteRequestBuilder.java deleted file mode 100644 index 4b24e09..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosOrderTypesDeleteRequestBuilder { - - private PosOrderTypesDeleteRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosOrderTypesDelete sdk; - - public PosOrderTypesDeleteRequestBuilder(SDKMethodInterfaces.MethodCallPosOrderTypesDelete sdk) { - this.sdk = sdk; - } - - public PosOrderTypesDeleteRequestBuilder request(PosOrderTypesDeleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosOrderTypesDeleteRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosOrderTypesDeleteRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosOrderTypesDeleteResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.delete( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteResponse.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteResponse.java deleted file mode 100644 index b320cbd..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesDeleteResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.DeleteOrderTypeResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrderTypesDeleteResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * OrderTypes - */ - private Optional deleteOrderTypeResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosOrderTypesDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional deleteOrderTypeResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(deleteOrderTypeResponse, "deleteOrderTypeResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.deleteOrderTypeResponse = deleteOrderTypeResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosOrderTypesDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * OrderTypes - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deleteOrderTypeResponse() { - return (Optional) deleteOrderTypeResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosOrderTypesDeleteResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosOrderTypesDeleteResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosOrderTypesDeleteResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * OrderTypes - */ - public PosOrderTypesDeleteResponse withDeleteOrderTypeResponse(DeleteOrderTypeResponse deleteOrderTypeResponse) { - Utils.checkNotNull(deleteOrderTypeResponse, "deleteOrderTypeResponse"); - this.deleteOrderTypeResponse = Optional.ofNullable(deleteOrderTypeResponse); - return this; - } - - /** - * OrderTypes - */ - public PosOrderTypesDeleteResponse withDeleteOrderTypeResponse(Optional deleteOrderTypeResponse) { - Utils.checkNotNull(deleteOrderTypeResponse, "deleteOrderTypeResponse"); - this.deleteOrderTypeResponse = deleteOrderTypeResponse; - return this; - } - - /** - * Unexpected error - */ - public PosOrderTypesDeleteResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosOrderTypesDeleteResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrderTypesDeleteResponse other = (PosOrderTypesDeleteResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.deleteOrderTypeResponse, other.deleteOrderTypeResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - deleteOrderTypeResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosOrderTypesDeleteResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "deleteOrderTypeResponse", deleteOrderTypeResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional deleteOrderTypeResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * OrderTypes - */ - public Builder deleteOrderTypeResponse(DeleteOrderTypeResponse deleteOrderTypeResponse) { - Utils.checkNotNull(deleteOrderTypeResponse, "deleteOrderTypeResponse"); - this.deleteOrderTypeResponse = Optional.ofNullable(deleteOrderTypeResponse); - return this; - } - - /** - * OrderTypes - */ - public Builder deleteOrderTypeResponse(Optional deleteOrderTypeResponse) { - Utils.checkNotNull(deleteOrderTypeResponse, "deleteOrderTypeResponse"); - this.deleteOrderTypeResponse = deleteOrderTypeResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosOrderTypesDeleteResponse build() { - return new PosOrderTypesDeleteResponse( - contentType, - statusCode, - rawResponse, - deleteOrderTypeResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneRequest.java deleted file mode 100644 index e7ef21c..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneRequest.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosOrderTypesOneRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosOrderTypesOneRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - JsonNullable fields) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(fields, "fields"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.fields = fields; - } - - public PosOrderTypesOneRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosOrderTypesOneRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrderTypesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrderTypesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrderTypesOneRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrderTypesOneRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrderTypesOneRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrderTypesOneRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrderTypesOneRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrderTypesOneRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosOrderTypesOneRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosOrderTypesOneRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrderTypesOneRequest other = (PosOrderTypesOneRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosOrderTypesOneRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "fields", fields); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosOrderTypesOneRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosOrderTypesOneRequest( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneRequestBuilder.java deleted file mode 100644 index 08c51f8..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosOrderTypesOneRequestBuilder { - - private PosOrderTypesOneRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosOrderTypesOne sdk; - - public PosOrderTypesOneRequestBuilder(SDKMethodInterfaces.MethodCallPosOrderTypesOne sdk) { - this.sdk = sdk; - } - - public PosOrderTypesOneRequestBuilder request(PosOrderTypesOneRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosOrderTypesOneRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosOrderTypesOneRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosOrderTypesOneResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.get( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneResponse.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneResponse.java deleted file mode 100644 index 21ae6cf..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesOneResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetOrderTypeResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrderTypesOneResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * OrderTypes - */ - private Optional getOrderTypeResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosOrderTypesOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getOrderTypeResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getOrderTypeResponse, "getOrderTypeResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getOrderTypeResponse = getOrderTypeResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosOrderTypesOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * OrderTypes - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getOrderTypeResponse() { - return (Optional) getOrderTypeResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosOrderTypesOneResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosOrderTypesOneResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosOrderTypesOneResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * OrderTypes - */ - public PosOrderTypesOneResponse withGetOrderTypeResponse(GetOrderTypeResponse getOrderTypeResponse) { - Utils.checkNotNull(getOrderTypeResponse, "getOrderTypeResponse"); - this.getOrderTypeResponse = Optional.ofNullable(getOrderTypeResponse); - return this; - } - - /** - * OrderTypes - */ - public PosOrderTypesOneResponse withGetOrderTypeResponse(Optional getOrderTypeResponse) { - Utils.checkNotNull(getOrderTypeResponse, "getOrderTypeResponse"); - this.getOrderTypeResponse = getOrderTypeResponse; - return this; - } - - /** - * Unexpected error - */ - public PosOrderTypesOneResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosOrderTypesOneResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrderTypesOneResponse other = (PosOrderTypesOneResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getOrderTypeResponse, other.getOrderTypeResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getOrderTypeResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosOrderTypesOneResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getOrderTypeResponse", getOrderTypeResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getOrderTypeResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * OrderTypes - */ - public Builder getOrderTypeResponse(GetOrderTypeResponse getOrderTypeResponse) { - Utils.checkNotNull(getOrderTypeResponse, "getOrderTypeResponse"); - this.getOrderTypeResponse = Optional.ofNullable(getOrderTypeResponse); - return this; - } - - /** - * OrderTypes - */ - public Builder getOrderTypeResponse(Optional getOrderTypeResponse) { - Utils.checkNotNull(getOrderTypeResponse, "getOrderTypeResponse"); - this.getOrderTypeResponse = getOrderTypeResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosOrderTypesOneResponse build() { - return new PosOrderTypesOneResponse( - contentType, - statusCode, - rawResponse, - getOrderTypeResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateRequest.java deleted file mode 100644 index 3988dfa..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.OrderTypeInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrderTypesUpdateRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @SpeakeasyMetadata("request:mediaType=application/json") - private OrderTypeInput orderType; - - @JsonCreator - public PosOrderTypesUpdateRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - OrderTypeInput orderType) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(orderType, "orderType"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.orderType = orderType; - } - - public PosOrderTypesUpdateRequest( - String id, - OrderTypeInput orderType) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), orderType); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - @JsonIgnore - public OrderTypeInput orderType() { - return orderType; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosOrderTypesUpdateRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrderTypesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrderTypesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrderTypesUpdateRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrderTypesUpdateRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrderTypesUpdateRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrderTypesUpdateRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrderTypesUpdateRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrderTypesUpdateRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosOrderTypesUpdateRequest withOrderType(OrderTypeInput orderType) { - Utils.checkNotNull(orderType, "orderType"); - this.orderType = orderType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrderTypesUpdateRequest other = (PosOrderTypesUpdateRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.orderType, other.orderType); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - orderType); - } - - @Override - public String toString() { - return Utils.toString(PosOrderTypesUpdateRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "orderType", orderType); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private OrderTypeInput orderType; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public Builder orderType(OrderTypeInput orderType) { - Utils.checkNotNull(orderType, "orderType"); - this.orderType = orderType; - return this; - } - - public PosOrderTypesUpdateRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosOrderTypesUpdateRequest( - id, - customerId, - appId, - serviceId, - raw, - orderType); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateRequestBuilder.java deleted file mode 100644 index 9eb6ad1..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosOrderTypesUpdateRequestBuilder { - - private PosOrderTypesUpdateRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosOrderTypesUpdate sdk; - - public PosOrderTypesUpdateRequestBuilder(SDKMethodInterfaces.MethodCallPosOrderTypesUpdate sdk) { - this.sdk = sdk; - } - - public PosOrderTypesUpdateRequestBuilder request(PosOrderTypesUpdateRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosOrderTypesUpdateRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosOrderTypesUpdateRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosOrderTypesUpdateResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.update( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateResponse.java b/src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateResponse.java deleted file mode 100644 index aa54082..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrderTypesUpdateResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateOrderTypeResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrderTypesUpdateResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * OrderTypes - */ - private Optional updateOrderTypeResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosOrderTypesUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional updateOrderTypeResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(updateOrderTypeResponse, "updateOrderTypeResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.updateOrderTypeResponse = updateOrderTypeResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosOrderTypesUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * OrderTypes - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updateOrderTypeResponse() { - return (Optional) updateOrderTypeResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosOrderTypesUpdateResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosOrderTypesUpdateResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosOrderTypesUpdateResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * OrderTypes - */ - public PosOrderTypesUpdateResponse withUpdateOrderTypeResponse(UpdateOrderTypeResponse updateOrderTypeResponse) { - Utils.checkNotNull(updateOrderTypeResponse, "updateOrderTypeResponse"); - this.updateOrderTypeResponse = Optional.ofNullable(updateOrderTypeResponse); - return this; - } - - /** - * OrderTypes - */ - public PosOrderTypesUpdateResponse withUpdateOrderTypeResponse(Optional updateOrderTypeResponse) { - Utils.checkNotNull(updateOrderTypeResponse, "updateOrderTypeResponse"); - this.updateOrderTypeResponse = updateOrderTypeResponse; - return this; - } - - /** - * Unexpected error - */ - public PosOrderTypesUpdateResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosOrderTypesUpdateResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrderTypesUpdateResponse other = (PosOrderTypesUpdateResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.updateOrderTypeResponse, other.updateOrderTypeResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - updateOrderTypeResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosOrderTypesUpdateResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "updateOrderTypeResponse", updateOrderTypeResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional updateOrderTypeResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * OrderTypes - */ - public Builder updateOrderTypeResponse(UpdateOrderTypeResponse updateOrderTypeResponse) { - Utils.checkNotNull(updateOrderTypeResponse, "updateOrderTypeResponse"); - this.updateOrderTypeResponse = Optional.ofNullable(updateOrderTypeResponse); - return this; - } - - /** - * OrderTypes - */ - public Builder updateOrderTypeResponse(Optional updateOrderTypeResponse) { - Utils.checkNotNull(updateOrderTypeResponse, "updateOrderTypeResponse"); - this.updateOrderTypeResponse = updateOrderTypeResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosOrderTypesUpdateResponse build() { - return new PosOrderTypesUpdateResponse( - contentType, - statusCode, - rawResponse, - updateOrderTypeResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersAddRequest.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersAddRequest.java deleted file mode 100644 index 0d06711..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersAddRequest.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.OrderInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrdersAddRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - @SpeakeasyMetadata("request:mediaType=application/json") - private OrderInput order; - - @JsonCreator - public PosOrdersAddRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - OrderInput order) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(order, "order"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.order = order; - } - - public PosOrdersAddRequest( - OrderInput order) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), order); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - @JsonIgnore - public OrderInput order() { - return order; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersAddRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersAddRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersAddRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersAddRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersAddRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersAddRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public PosOrdersAddRequest withOrder(OrderInput order) { - Utils.checkNotNull(order, "order"); - this.order = order; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersAddRequest other = (PosOrdersAddRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.order, other.order); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - order); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersAddRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "order", order); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private OrderInput order; - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public Builder order(OrderInput order) { - Utils.checkNotNull(order, "order"); - this.order = order; - return this; - } - - public PosOrdersAddRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosOrdersAddRequest( - raw, - customerId, - appId, - serviceId, - order); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersAddRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersAddRequestBuilder.java deleted file mode 100644 index b1d7dfa..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersAddRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosOrdersAddRequestBuilder { - - private PosOrdersAddRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosOrdersAdd sdk; - - public PosOrdersAddRequestBuilder(SDKMethodInterfaces.MethodCallPosOrdersAdd sdk) { - this.sdk = sdk; - } - - public PosOrdersAddRequestBuilder request(PosOrdersAddRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosOrdersAddRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosOrdersAddRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosOrdersAddResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.create( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersAddResponse.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersAddResponse.java deleted file mode 100644 index d02d83b..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersAddResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.CreateOrderResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrdersAddResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Orders - */ - private Optional createOrderResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosOrdersAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional createOrderResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(createOrderResponse, "createOrderResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.createOrderResponse = createOrderResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosOrdersAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Orders - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createOrderResponse() { - return (Optional) createOrderResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosOrdersAddResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosOrdersAddResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosOrdersAddResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public PosOrdersAddResponse withCreateOrderResponse(CreateOrderResponse createOrderResponse) { - Utils.checkNotNull(createOrderResponse, "createOrderResponse"); - this.createOrderResponse = Optional.ofNullable(createOrderResponse); - return this; - } - - /** - * Orders - */ - public PosOrdersAddResponse withCreateOrderResponse(Optional createOrderResponse) { - Utils.checkNotNull(createOrderResponse, "createOrderResponse"); - this.createOrderResponse = createOrderResponse; - return this; - } - - /** - * Unexpected error - */ - public PosOrdersAddResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosOrdersAddResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersAddResponse other = (PosOrdersAddResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.createOrderResponse, other.createOrderResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - createOrderResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersAddResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "createOrderResponse", createOrderResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional createOrderResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public Builder createOrderResponse(CreateOrderResponse createOrderResponse) { - Utils.checkNotNull(createOrderResponse, "createOrderResponse"); - this.createOrderResponse = Optional.ofNullable(createOrderResponse); - return this; - } - - /** - * Orders - */ - public Builder createOrderResponse(Optional createOrderResponse) { - Utils.checkNotNull(createOrderResponse, "createOrderResponse"); - this.createOrderResponse = createOrderResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosOrdersAddResponse build() { - return new PosOrdersAddResponse( - contentType, - statusCode, - rawResponse, - createOrderResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersAllRequest.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersAllRequest.java deleted file mode 100644 index 10ad444..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersAllRequest.java +++ /dev/null @@ -1,559 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosOrdersAllRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private JsonNullable cursor; - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - /** - * ID of the location. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=location_id") - private Optional locationId; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosOrdersAllRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - JsonNullable cursor, - Optional limit, - Optional locationId, - JsonNullable fields) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(limit, "limit"); - Utils.checkNotNull(locationId, "locationId"); - Utils.checkNotNull(fields, "fields"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.cursor = cursor; - this.limit = limit; - this.locationId = locationId; - this.fields = fields; - } - - public PosOrdersAllRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @JsonIgnore - public JsonNullable cursor() { - return cursor; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @JsonIgnore - public Optional limit() { - return limit; - } - - /** - * ID of the location. - */ - @JsonIgnore - public Optional locationId() { - return locationId; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersAllRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersAllRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersAllRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersAllRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersAllRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersAllRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosOrdersAllRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosOrdersAllRequest withCursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosOrdersAllRequest withLimit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosOrdersAllRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * ID of the location. - */ - public PosOrdersAllRequest withLocationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = Optional.ofNullable(locationId); - return this; - } - - /** - * ID of the location. - */ - public PosOrdersAllRequest withLocationId(Optional locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosOrdersAllRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosOrdersAllRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersAllRequest other = (PosOrdersAllRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.locationId, other.locationId) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - locationId, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersAllRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "cursor", cursor, - "limit", limit, - "locationId", locationId, - "fields", fields); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private JsonNullable cursor = JsonNullable.undefined(); - - private Optional limit; - - private Optional locationId = Optional.empty(); - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * ID of the location. - */ - public Builder locationId(String locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = Optional.ofNullable(locationId); - return this; - } - - /** - * ID of the location. - */ - public Builder locationId(Optional locationId) { - Utils.checkNotNull(locationId, "locationId"); - this.locationId = locationId; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosOrdersAllRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } return new PosOrdersAllRequest( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - locationId, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "20", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersAllRequestBuilder.java deleted file mode 100644 index 162b4ee..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersAllRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosOrdersAllRequestBuilder { - - private PosOrdersAllRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosOrdersAll sdk; - - public PosOrdersAllRequestBuilder(SDKMethodInterfaces.MethodCallPosOrdersAll sdk) { - this.sdk = sdk; - } - - public PosOrdersAllRequestBuilder request(PosOrdersAllRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosOrdersAllRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosOrdersAllRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosOrdersAllResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.list( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersAllResponse.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersAllResponse.java deleted file mode 100644 index 36a8e7e..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersAllResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetOrdersResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrdersAllResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Orders - */ - private Optional getOrdersResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosOrdersAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getOrdersResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getOrdersResponse, "getOrdersResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getOrdersResponse = getOrdersResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosOrdersAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Orders - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getOrdersResponse() { - return (Optional) getOrdersResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosOrdersAllResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosOrdersAllResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosOrdersAllResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public PosOrdersAllResponse withGetOrdersResponse(GetOrdersResponse getOrdersResponse) { - Utils.checkNotNull(getOrdersResponse, "getOrdersResponse"); - this.getOrdersResponse = Optional.ofNullable(getOrdersResponse); - return this; - } - - /** - * Orders - */ - public PosOrdersAllResponse withGetOrdersResponse(Optional getOrdersResponse) { - Utils.checkNotNull(getOrdersResponse, "getOrdersResponse"); - this.getOrdersResponse = getOrdersResponse; - return this; - } - - /** - * Unexpected error - */ - public PosOrdersAllResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosOrdersAllResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersAllResponse other = (PosOrdersAllResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getOrdersResponse, other.getOrdersResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getOrdersResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersAllResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getOrdersResponse", getOrdersResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getOrdersResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public Builder getOrdersResponse(GetOrdersResponse getOrdersResponse) { - Utils.checkNotNull(getOrdersResponse, "getOrdersResponse"); - this.getOrdersResponse = Optional.ofNullable(getOrdersResponse); - return this; - } - - /** - * Orders - */ - public Builder getOrdersResponse(Optional getOrdersResponse) { - Utils.checkNotNull(getOrdersResponse, "getOrdersResponse"); - this.getOrdersResponse = getOrdersResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosOrdersAllResponse build() { - return new PosOrdersAllResponse( - contentType, - statusCode, - rawResponse, - getOrdersResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteRequest.java deleted file mode 100644 index f1bda2f..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteRequest.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrdersDeleteRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @JsonCreator - public PosOrdersDeleteRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - } - - public PosOrdersDeleteRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosOrdersDeleteRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersDeleteRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersDeleteRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersDeleteRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersDeleteRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersDeleteRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersDeleteRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersDeleteRequest other = (PosOrdersDeleteRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersDeleteRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosOrdersDeleteRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosOrdersDeleteRequest( - id, - customerId, - appId, - serviceId, - raw); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteRequestBuilder.java deleted file mode 100644 index 7e75f3f..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosOrdersDeleteRequestBuilder { - - private PosOrdersDeleteRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosOrdersDelete sdk; - - public PosOrdersDeleteRequestBuilder(SDKMethodInterfaces.MethodCallPosOrdersDelete sdk) { - this.sdk = sdk; - } - - public PosOrdersDeleteRequestBuilder request(PosOrdersDeleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosOrdersDeleteRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosOrdersDeleteRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosOrdersDeleteResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.delete( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteResponse.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteResponse.java deleted file mode 100644 index c501b0a..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersDeleteResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.DeleteOrderResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrdersDeleteResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Orders - */ - private Optional deleteOrderResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosOrdersDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional deleteOrderResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(deleteOrderResponse, "deleteOrderResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.deleteOrderResponse = deleteOrderResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosOrdersDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Orders - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deleteOrderResponse() { - return (Optional) deleteOrderResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosOrdersDeleteResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosOrdersDeleteResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosOrdersDeleteResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public PosOrdersDeleteResponse withDeleteOrderResponse(DeleteOrderResponse deleteOrderResponse) { - Utils.checkNotNull(deleteOrderResponse, "deleteOrderResponse"); - this.deleteOrderResponse = Optional.ofNullable(deleteOrderResponse); - return this; - } - - /** - * Orders - */ - public PosOrdersDeleteResponse withDeleteOrderResponse(Optional deleteOrderResponse) { - Utils.checkNotNull(deleteOrderResponse, "deleteOrderResponse"); - this.deleteOrderResponse = deleteOrderResponse; - return this; - } - - /** - * Unexpected error - */ - public PosOrdersDeleteResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosOrdersDeleteResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersDeleteResponse other = (PosOrdersDeleteResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.deleteOrderResponse, other.deleteOrderResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - deleteOrderResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersDeleteResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "deleteOrderResponse", deleteOrderResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional deleteOrderResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public Builder deleteOrderResponse(DeleteOrderResponse deleteOrderResponse) { - Utils.checkNotNull(deleteOrderResponse, "deleteOrderResponse"); - this.deleteOrderResponse = Optional.ofNullable(deleteOrderResponse); - return this; - } - - /** - * Orders - */ - public Builder deleteOrderResponse(Optional deleteOrderResponse) { - Utils.checkNotNull(deleteOrderResponse, "deleteOrderResponse"); - this.deleteOrderResponse = deleteOrderResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosOrdersDeleteResponse build() { - return new PosOrdersDeleteResponse( - contentType, - statusCode, - rawResponse, - deleteOrderResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersOneRequest.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersOneRequest.java deleted file mode 100644 index 890540f..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersOneRequest.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosOrdersOneRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosOrdersOneRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - JsonNullable fields) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(fields, "fields"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.fields = fields; - } - - public PosOrdersOneRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosOrdersOneRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersOneRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersOneRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersOneRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersOneRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersOneRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersOneRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosOrdersOneRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosOrdersOneRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersOneRequest other = (PosOrdersOneRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersOneRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "fields", fields); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosOrdersOneRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosOrdersOneRequest( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersOneRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersOneRequestBuilder.java deleted file mode 100644 index 8c0d092..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersOneRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosOrdersOneRequestBuilder { - - private PosOrdersOneRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosOrdersOne sdk; - - public PosOrdersOneRequestBuilder(SDKMethodInterfaces.MethodCallPosOrdersOne sdk) { - this.sdk = sdk; - } - - public PosOrdersOneRequestBuilder request(PosOrdersOneRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosOrdersOneRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosOrdersOneRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosOrdersOneResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.get( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersOneResponse.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersOneResponse.java deleted file mode 100644 index 1c76bae..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersOneResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetOrderResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrdersOneResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Orders - */ - private Optional getOrderResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosOrdersOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getOrderResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getOrderResponse, "getOrderResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getOrderResponse = getOrderResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosOrdersOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Orders - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getOrderResponse() { - return (Optional) getOrderResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosOrdersOneResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosOrdersOneResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosOrdersOneResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public PosOrdersOneResponse withGetOrderResponse(GetOrderResponse getOrderResponse) { - Utils.checkNotNull(getOrderResponse, "getOrderResponse"); - this.getOrderResponse = Optional.ofNullable(getOrderResponse); - return this; - } - - /** - * Orders - */ - public PosOrdersOneResponse withGetOrderResponse(Optional getOrderResponse) { - Utils.checkNotNull(getOrderResponse, "getOrderResponse"); - this.getOrderResponse = getOrderResponse; - return this; - } - - /** - * Unexpected error - */ - public PosOrdersOneResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosOrdersOneResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersOneResponse other = (PosOrdersOneResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getOrderResponse, other.getOrderResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getOrderResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersOneResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getOrderResponse", getOrderResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getOrderResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public Builder getOrderResponse(GetOrderResponse getOrderResponse) { - Utils.checkNotNull(getOrderResponse, "getOrderResponse"); - this.getOrderResponse = Optional.ofNullable(getOrderResponse); - return this; - } - - /** - * Orders - */ - public Builder getOrderResponse(Optional getOrderResponse) { - Utils.checkNotNull(getOrderResponse, "getOrderResponse"); - this.getOrderResponse = getOrderResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosOrdersOneResponse build() { - return new PosOrdersOneResponse( - contentType, - statusCode, - rawResponse, - getOrderResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersPayRequest.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersPayRequest.java deleted file mode 100644 index 5c0389e..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersPayRequest.java +++ /dev/null @@ -1,445 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.OrderInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosOrdersPayRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @SpeakeasyMetadata("request:mediaType=application/json") - private OrderInput order; - - @JsonCreator - public PosOrdersPayRequest( - String id, - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - JsonNullable fields, - OrderInput order) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(fields, "fields"); - Utils.checkNotNull(order, "order"); - this.id = id; - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.fields = fields; - this.order = order; - } - - public PosOrdersPayRequest( - String id, - OrderInput order) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), order); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - @JsonIgnore - public OrderInput order() { - return order; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosOrdersPayRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersPayRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersPayRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersPayRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersPayRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersPayRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersPayRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersPayRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersPayRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosOrdersPayRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosOrdersPayRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosOrdersPayRequest withOrder(OrderInput order) { - Utils.checkNotNull(order, "order"); - this.order = order; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersPayRequest other = (PosOrdersPayRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.fields, other.fields) && - Objects.deepEquals(this.order, other.order); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - raw, - customerId, - appId, - serviceId, - fields, - order); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersPayRequest.class, - "id", id, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "fields", fields, - "order", order); - } - - public final static class Builder { - - private String id; - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private JsonNullable fields = JsonNullable.undefined(); - - private OrderInput order; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public Builder order(OrderInput order) { - Utils.checkNotNull(order, "order"); - this.order = order; - return this; - } - - public PosOrdersPayRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosOrdersPayRequest( - id, - raw, - customerId, - appId, - serviceId, - fields, - order); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersPayRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersPayRequestBuilder.java deleted file mode 100644 index 0ac0454..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersPayRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosOrdersPayRequestBuilder { - - private PosOrdersPayRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosOrdersPay sdk; - - public PosOrdersPayRequestBuilder(SDKMethodInterfaces.MethodCallPosOrdersPay sdk) { - this.sdk = sdk; - } - - public PosOrdersPayRequestBuilder request(PosOrdersPayRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosOrdersPayRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosOrdersPayRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosOrdersPayResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.pay( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersPayResponse.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersPayResponse.java deleted file mode 100644 index 41a5a4e..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersPayResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.CreateOrderResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrdersPayResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Orders - */ - private Optional createOrderResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosOrdersPayResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional createOrderResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(createOrderResponse, "createOrderResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.createOrderResponse = createOrderResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosOrdersPayResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Orders - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createOrderResponse() { - return (Optional) createOrderResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosOrdersPayResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosOrdersPayResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosOrdersPayResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public PosOrdersPayResponse withCreateOrderResponse(CreateOrderResponse createOrderResponse) { - Utils.checkNotNull(createOrderResponse, "createOrderResponse"); - this.createOrderResponse = Optional.ofNullable(createOrderResponse); - return this; - } - - /** - * Orders - */ - public PosOrdersPayResponse withCreateOrderResponse(Optional createOrderResponse) { - Utils.checkNotNull(createOrderResponse, "createOrderResponse"); - this.createOrderResponse = createOrderResponse; - return this; - } - - /** - * Unexpected error - */ - public PosOrdersPayResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosOrdersPayResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersPayResponse other = (PosOrdersPayResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.createOrderResponse, other.createOrderResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - createOrderResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersPayResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "createOrderResponse", createOrderResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional createOrderResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public Builder createOrderResponse(CreateOrderResponse createOrderResponse) { - Utils.checkNotNull(createOrderResponse, "createOrderResponse"); - this.createOrderResponse = Optional.ofNullable(createOrderResponse); - return this; - } - - /** - * Orders - */ - public Builder createOrderResponse(Optional createOrderResponse) { - Utils.checkNotNull(createOrderResponse, "createOrderResponse"); - this.createOrderResponse = createOrderResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosOrdersPayResponse build() { - return new PosOrdersPayResponse( - contentType, - statusCode, - rawResponse, - createOrderResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateRequest.java deleted file mode 100644 index b5333c6..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.OrderInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrdersUpdateRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @SpeakeasyMetadata("request:mediaType=application/json") - private OrderInput order; - - @JsonCreator - public PosOrdersUpdateRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - OrderInput order) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(order, "order"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.order = order; - } - - public PosOrdersUpdateRequest( - String id, - OrderInput order) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), order); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - @JsonIgnore - public OrderInput order() { - return order; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosOrdersUpdateRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosOrdersUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersUpdateRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosOrdersUpdateRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersUpdateRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosOrdersUpdateRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersUpdateRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosOrdersUpdateRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosOrdersUpdateRequest withOrder(OrderInput order) { - Utils.checkNotNull(order, "order"); - this.order = order; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersUpdateRequest other = (PosOrdersUpdateRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.order, other.order); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - order); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersUpdateRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "order", order); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private OrderInput order; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public Builder order(OrderInput order) { - Utils.checkNotNull(order, "order"); - this.order = order; - return this; - } - - public PosOrdersUpdateRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosOrdersUpdateRequest( - id, - customerId, - appId, - serviceId, - raw, - order); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateRequestBuilder.java deleted file mode 100644 index 101c25a..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosOrdersUpdateRequestBuilder { - - private PosOrdersUpdateRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosOrdersUpdate sdk; - - public PosOrdersUpdateRequestBuilder(SDKMethodInterfaces.MethodCallPosOrdersUpdate sdk) { - this.sdk = sdk; - } - - public PosOrdersUpdateRequestBuilder request(PosOrdersUpdateRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosOrdersUpdateRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosOrdersUpdateRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosOrdersUpdateResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.update( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateResponse.java b/src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateResponse.java deleted file mode 100644 index f10335b..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosOrdersUpdateResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateOrderResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosOrdersUpdateResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Orders - */ - private Optional updateOrderResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosOrdersUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional updateOrderResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(updateOrderResponse, "updateOrderResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.updateOrderResponse = updateOrderResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosOrdersUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Orders - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updateOrderResponse() { - return (Optional) updateOrderResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosOrdersUpdateResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosOrdersUpdateResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosOrdersUpdateResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public PosOrdersUpdateResponse withUpdateOrderResponse(UpdateOrderResponse updateOrderResponse) { - Utils.checkNotNull(updateOrderResponse, "updateOrderResponse"); - this.updateOrderResponse = Optional.ofNullable(updateOrderResponse); - return this; - } - - /** - * Orders - */ - public PosOrdersUpdateResponse withUpdateOrderResponse(Optional updateOrderResponse) { - Utils.checkNotNull(updateOrderResponse, "updateOrderResponse"); - this.updateOrderResponse = updateOrderResponse; - return this; - } - - /** - * Unexpected error - */ - public PosOrdersUpdateResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosOrdersUpdateResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosOrdersUpdateResponse other = (PosOrdersUpdateResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.updateOrderResponse, other.updateOrderResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - updateOrderResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosOrdersUpdateResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "updateOrderResponse", updateOrderResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional updateOrderResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Orders - */ - public Builder updateOrderResponse(UpdateOrderResponse updateOrderResponse) { - Utils.checkNotNull(updateOrderResponse, "updateOrderResponse"); - this.updateOrderResponse = Optional.ofNullable(updateOrderResponse); - return this; - } - - /** - * Orders - */ - public Builder updateOrderResponse(Optional updateOrderResponse) { - Utils.checkNotNull(updateOrderResponse, "updateOrderResponse"); - this.updateOrderResponse = updateOrderResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosOrdersUpdateResponse build() { - return new PosOrdersUpdateResponse( - contentType, - statusCode, - rawResponse, - updateOrderResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAddRequest.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsAddRequest.java deleted file mode 100644 index 13770b9..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAddRequest.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.PosPaymentInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosPaymentsAddRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - @SpeakeasyMetadata("request:mediaType=application/json") - private PosPaymentInput posPayment; - - @JsonCreator - public PosPaymentsAddRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - PosPaymentInput posPayment) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(posPayment, "posPayment"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.posPayment = posPayment; - } - - public PosPaymentsAddRequest( - PosPaymentInput posPayment) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), posPayment); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - @JsonIgnore - public PosPaymentInput posPayment() { - return posPayment; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosPaymentsAddRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosPaymentsAddRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosPaymentsAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosPaymentsAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosPaymentsAddRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosPaymentsAddRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosPaymentsAddRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosPaymentsAddRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public PosPaymentsAddRequest withPosPayment(PosPaymentInput posPayment) { - Utils.checkNotNull(posPayment, "posPayment"); - this.posPayment = posPayment; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentsAddRequest other = (PosPaymentsAddRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.posPayment, other.posPayment); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - posPayment); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentsAddRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "posPayment", posPayment); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private PosPaymentInput posPayment; - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public Builder posPayment(PosPaymentInput posPayment) { - Utils.checkNotNull(posPayment, "posPayment"); - this.posPayment = posPayment; - return this; - } - - public PosPaymentsAddRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosPaymentsAddRequest( - raw, - customerId, - appId, - serviceId, - posPayment); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAddRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsAddRequestBuilder.java deleted file mode 100644 index b036b92..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAddRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosPaymentsAddRequestBuilder { - - private PosPaymentsAddRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosPaymentsAdd sdk; - - public PosPaymentsAddRequestBuilder(SDKMethodInterfaces.MethodCallPosPaymentsAdd sdk) { - this.sdk = sdk; - } - - public PosPaymentsAddRequestBuilder request(PosPaymentsAddRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosPaymentsAddRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosPaymentsAddRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosPaymentsAddResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.create( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAddResponse.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsAddResponse.java deleted file mode 100644 index 6832c8d..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAddResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.CreatePosPaymentResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosPaymentsAddResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * PosPayments - */ - private Optional createPosPaymentResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosPaymentsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional createPosPaymentResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(createPosPaymentResponse, "createPosPaymentResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.createPosPaymentResponse = createPosPaymentResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosPaymentsAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * PosPayments - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createPosPaymentResponse() { - return (Optional) createPosPaymentResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosPaymentsAddResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosPaymentsAddResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosPaymentsAddResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * PosPayments - */ - public PosPaymentsAddResponse withCreatePosPaymentResponse(CreatePosPaymentResponse createPosPaymentResponse) { - Utils.checkNotNull(createPosPaymentResponse, "createPosPaymentResponse"); - this.createPosPaymentResponse = Optional.ofNullable(createPosPaymentResponse); - return this; - } - - /** - * PosPayments - */ - public PosPaymentsAddResponse withCreatePosPaymentResponse(Optional createPosPaymentResponse) { - Utils.checkNotNull(createPosPaymentResponse, "createPosPaymentResponse"); - this.createPosPaymentResponse = createPosPaymentResponse; - return this; - } - - /** - * Unexpected error - */ - public PosPaymentsAddResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosPaymentsAddResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentsAddResponse other = (PosPaymentsAddResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.createPosPaymentResponse, other.createPosPaymentResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - createPosPaymentResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentsAddResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "createPosPaymentResponse", createPosPaymentResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional createPosPaymentResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * PosPayments - */ - public Builder createPosPaymentResponse(CreatePosPaymentResponse createPosPaymentResponse) { - Utils.checkNotNull(createPosPaymentResponse, "createPosPaymentResponse"); - this.createPosPaymentResponse = Optional.ofNullable(createPosPaymentResponse); - return this; - } - - /** - * PosPayments - */ - public Builder createPosPaymentResponse(Optional createPosPaymentResponse) { - Utils.checkNotNull(createPosPaymentResponse, "createPosPaymentResponse"); - this.createPosPaymentResponse = createPosPaymentResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosPaymentsAddResponse build() { - return new PosPaymentsAddResponse( - contentType, - statusCode, - rawResponse, - createPosPaymentResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsAllRequest.java deleted file mode 100644 index 3a12877..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAllRequest.java +++ /dev/null @@ -1,500 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosPaymentsAllRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private JsonNullable cursor; - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosPaymentsAllRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - JsonNullable cursor, - Optional limit, - JsonNullable fields) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(limit, "limit"); - Utils.checkNotNull(fields, "fields"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.cursor = cursor; - this.limit = limit; - this.fields = fields; - } - - public PosPaymentsAllRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @JsonIgnore - public JsonNullable cursor() { - return cursor; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @JsonIgnore - public Optional limit() { - return limit; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosPaymentsAllRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosPaymentsAllRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosPaymentsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosPaymentsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosPaymentsAllRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosPaymentsAllRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosPaymentsAllRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosPaymentsAllRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosPaymentsAllRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosPaymentsAllRequest withCursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosPaymentsAllRequest withLimit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosPaymentsAllRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosPaymentsAllRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosPaymentsAllRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentsAllRequest other = (PosPaymentsAllRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentsAllRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "cursor", cursor, - "limit", limit, - "fields", fields); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private JsonNullable cursor = JsonNullable.undefined(); - - private Optional limit; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosPaymentsAllRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } return new PosPaymentsAllRequest( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "20", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsAllRequestBuilder.java deleted file mode 100644 index f560d3a..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAllRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosPaymentsAllRequestBuilder { - - private PosPaymentsAllRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosPaymentsAll sdk; - - public PosPaymentsAllRequestBuilder(SDKMethodInterfaces.MethodCallPosPaymentsAll sdk) { - this.sdk = sdk; - } - - public PosPaymentsAllRequestBuilder request(PosPaymentsAllRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosPaymentsAllRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosPaymentsAllRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosPaymentsAllResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.list( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAllResponse.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsAllResponse.java deleted file mode 100644 index e229059..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsAllResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetPosPaymentsResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosPaymentsAllResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * PosPayments - */ - private Optional getPosPaymentsResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosPaymentsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getPosPaymentsResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getPosPaymentsResponse, "getPosPaymentsResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getPosPaymentsResponse = getPosPaymentsResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosPaymentsAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * PosPayments - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getPosPaymentsResponse() { - return (Optional) getPosPaymentsResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosPaymentsAllResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosPaymentsAllResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosPaymentsAllResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * PosPayments - */ - public PosPaymentsAllResponse withGetPosPaymentsResponse(GetPosPaymentsResponse getPosPaymentsResponse) { - Utils.checkNotNull(getPosPaymentsResponse, "getPosPaymentsResponse"); - this.getPosPaymentsResponse = Optional.ofNullable(getPosPaymentsResponse); - return this; - } - - /** - * PosPayments - */ - public PosPaymentsAllResponse withGetPosPaymentsResponse(Optional getPosPaymentsResponse) { - Utils.checkNotNull(getPosPaymentsResponse, "getPosPaymentsResponse"); - this.getPosPaymentsResponse = getPosPaymentsResponse; - return this; - } - - /** - * Unexpected error - */ - public PosPaymentsAllResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosPaymentsAllResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentsAllResponse other = (PosPaymentsAllResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getPosPaymentsResponse, other.getPosPaymentsResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getPosPaymentsResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentsAllResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getPosPaymentsResponse", getPosPaymentsResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getPosPaymentsResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * PosPayments - */ - public Builder getPosPaymentsResponse(GetPosPaymentsResponse getPosPaymentsResponse) { - Utils.checkNotNull(getPosPaymentsResponse, "getPosPaymentsResponse"); - this.getPosPaymentsResponse = Optional.ofNullable(getPosPaymentsResponse); - return this; - } - - /** - * PosPayments - */ - public Builder getPosPaymentsResponse(Optional getPosPaymentsResponse) { - Utils.checkNotNull(getPosPaymentsResponse, "getPosPaymentsResponse"); - this.getPosPaymentsResponse = getPosPaymentsResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosPaymentsAllResponse build() { - return new PosPaymentsAllResponse( - contentType, - statusCode, - rawResponse, - getPosPaymentsResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteRequest.java deleted file mode 100644 index 812d671..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteRequest.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosPaymentsDeleteRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @JsonCreator - public PosPaymentsDeleteRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - } - - public PosPaymentsDeleteRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosPaymentsDeleteRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosPaymentsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosPaymentsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosPaymentsDeleteRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosPaymentsDeleteRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosPaymentsDeleteRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosPaymentsDeleteRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosPaymentsDeleteRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosPaymentsDeleteRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentsDeleteRequest other = (PosPaymentsDeleteRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentsDeleteRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosPaymentsDeleteRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosPaymentsDeleteRequest( - id, - customerId, - appId, - serviceId, - raw); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteRequestBuilder.java deleted file mode 100644 index 762ef5f..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosPaymentsDeleteRequestBuilder { - - private PosPaymentsDeleteRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosPaymentsDelete sdk; - - public PosPaymentsDeleteRequestBuilder(SDKMethodInterfaces.MethodCallPosPaymentsDelete sdk) { - this.sdk = sdk; - } - - public PosPaymentsDeleteRequestBuilder request(PosPaymentsDeleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosPaymentsDeleteRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosPaymentsDeleteRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosPaymentsDeleteResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.delete( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteResponse.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteResponse.java deleted file mode 100644 index bad2924..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsDeleteResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.DeletePosPaymentResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosPaymentsDeleteResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * PosPayments - */ - private Optional deletePosPaymentResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosPaymentsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional deletePosPaymentResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(deletePosPaymentResponse, "deletePosPaymentResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.deletePosPaymentResponse = deletePosPaymentResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosPaymentsDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * PosPayments - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deletePosPaymentResponse() { - return (Optional) deletePosPaymentResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosPaymentsDeleteResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosPaymentsDeleteResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosPaymentsDeleteResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * PosPayments - */ - public PosPaymentsDeleteResponse withDeletePosPaymentResponse(DeletePosPaymentResponse deletePosPaymentResponse) { - Utils.checkNotNull(deletePosPaymentResponse, "deletePosPaymentResponse"); - this.deletePosPaymentResponse = Optional.ofNullable(deletePosPaymentResponse); - return this; - } - - /** - * PosPayments - */ - public PosPaymentsDeleteResponse withDeletePosPaymentResponse(Optional deletePosPaymentResponse) { - Utils.checkNotNull(deletePosPaymentResponse, "deletePosPaymentResponse"); - this.deletePosPaymentResponse = deletePosPaymentResponse; - return this; - } - - /** - * Unexpected error - */ - public PosPaymentsDeleteResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosPaymentsDeleteResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentsDeleteResponse other = (PosPaymentsDeleteResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.deletePosPaymentResponse, other.deletePosPaymentResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - deletePosPaymentResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentsDeleteResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "deletePosPaymentResponse", deletePosPaymentResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional deletePosPaymentResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * PosPayments - */ - public Builder deletePosPaymentResponse(DeletePosPaymentResponse deletePosPaymentResponse) { - Utils.checkNotNull(deletePosPaymentResponse, "deletePosPaymentResponse"); - this.deletePosPaymentResponse = Optional.ofNullable(deletePosPaymentResponse); - return this; - } - - /** - * PosPayments - */ - public Builder deletePosPaymentResponse(Optional deletePosPaymentResponse) { - Utils.checkNotNull(deletePosPaymentResponse, "deletePosPaymentResponse"); - this.deletePosPaymentResponse = deletePosPaymentResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosPaymentsDeleteResponse build() { - return new PosPaymentsDeleteResponse( - contentType, - statusCode, - rawResponse, - deletePosPaymentResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsOneRequest.java deleted file mode 100644 index 873562d..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsOneRequest.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosPaymentsOneRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosPaymentsOneRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - JsonNullable fields) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(fields, "fields"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.fields = fields; - } - - public PosPaymentsOneRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosPaymentsOneRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosPaymentsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosPaymentsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosPaymentsOneRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosPaymentsOneRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosPaymentsOneRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosPaymentsOneRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosPaymentsOneRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosPaymentsOneRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosPaymentsOneRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosPaymentsOneRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentsOneRequest other = (PosPaymentsOneRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentsOneRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "fields", fields); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosPaymentsOneRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosPaymentsOneRequest( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsOneRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsOneRequestBuilder.java deleted file mode 100644 index 6653931..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsOneRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosPaymentsOneRequestBuilder { - - private PosPaymentsOneRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosPaymentsOne sdk; - - public PosPaymentsOneRequestBuilder(SDKMethodInterfaces.MethodCallPosPaymentsOne sdk) { - this.sdk = sdk; - } - - public PosPaymentsOneRequestBuilder request(PosPaymentsOneRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosPaymentsOneRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosPaymentsOneRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosPaymentsOneResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.get( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsOneResponse.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsOneResponse.java deleted file mode 100644 index d0d2b57..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsOneResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetPosPaymentResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosPaymentsOneResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * PosPayments - */ - private Optional getPosPaymentResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosPaymentsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getPosPaymentResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getPosPaymentResponse, "getPosPaymentResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getPosPaymentResponse = getPosPaymentResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosPaymentsOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * PosPayments - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getPosPaymentResponse() { - return (Optional) getPosPaymentResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosPaymentsOneResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosPaymentsOneResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosPaymentsOneResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * PosPayments - */ - public PosPaymentsOneResponse withGetPosPaymentResponse(GetPosPaymentResponse getPosPaymentResponse) { - Utils.checkNotNull(getPosPaymentResponse, "getPosPaymentResponse"); - this.getPosPaymentResponse = Optional.ofNullable(getPosPaymentResponse); - return this; - } - - /** - * PosPayments - */ - public PosPaymentsOneResponse withGetPosPaymentResponse(Optional getPosPaymentResponse) { - Utils.checkNotNull(getPosPaymentResponse, "getPosPaymentResponse"); - this.getPosPaymentResponse = getPosPaymentResponse; - return this; - } - - /** - * Unexpected error - */ - public PosPaymentsOneResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosPaymentsOneResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentsOneResponse other = (PosPaymentsOneResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getPosPaymentResponse, other.getPosPaymentResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getPosPaymentResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentsOneResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getPosPaymentResponse", getPosPaymentResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getPosPaymentResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * PosPayments - */ - public Builder getPosPaymentResponse(GetPosPaymentResponse getPosPaymentResponse) { - Utils.checkNotNull(getPosPaymentResponse, "getPosPaymentResponse"); - this.getPosPaymentResponse = Optional.ofNullable(getPosPaymentResponse); - return this; - } - - /** - * PosPayments - */ - public Builder getPosPaymentResponse(Optional getPosPaymentResponse) { - Utils.checkNotNull(getPosPaymentResponse, "getPosPaymentResponse"); - this.getPosPaymentResponse = getPosPaymentResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosPaymentsOneResponse build() { - return new PosPaymentsOneResponse( - contentType, - statusCode, - rawResponse, - getPosPaymentResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateRequest.java deleted file mode 100644 index 008efbb..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.PosPaymentInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosPaymentsUpdateRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @SpeakeasyMetadata("request:mediaType=application/json") - private PosPaymentInput posPayment; - - @JsonCreator - public PosPaymentsUpdateRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - PosPaymentInput posPayment) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(posPayment, "posPayment"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.posPayment = posPayment; - } - - public PosPaymentsUpdateRequest( - String id, - PosPaymentInput posPayment) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), posPayment); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - @JsonIgnore - public PosPaymentInput posPayment() { - return posPayment; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosPaymentsUpdateRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosPaymentsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosPaymentsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosPaymentsUpdateRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosPaymentsUpdateRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosPaymentsUpdateRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosPaymentsUpdateRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosPaymentsUpdateRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosPaymentsUpdateRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosPaymentsUpdateRequest withPosPayment(PosPaymentInput posPayment) { - Utils.checkNotNull(posPayment, "posPayment"); - this.posPayment = posPayment; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentsUpdateRequest other = (PosPaymentsUpdateRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.posPayment, other.posPayment); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - posPayment); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentsUpdateRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "posPayment", posPayment); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private PosPaymentInput posPayment; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public Builder posPayment(PosPaymentInput posPayment) { - Utils.checkNotNull(posPayment, "posPayment"); - this.posPayment = posPayment; - return this; - } - - public PosPaymentsUpdateRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosPaymentsUpdateRequest( - id, - customerId, - appId, - serviceId, - raw, - posPayment); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateRequestBuilder.java deleted file mode 100644 index 2ee7499..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosPaymentsUpdateRequestBuilder { - - private PosPaymentsUpdateRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosPaymentsUpdate sdk; - - public PosPaymentsUpdateRequestBuilder(SDKMethodInterfaces.MethodCallPosPaymentsUpdate sdk) { - this.sdk = sdk; - } - - public PosPaymentsUpdateRequestBuilder request(PosPaymentsUpdateRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosPaymentsUpdateRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosPaymentsUpdateRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosPaymentsUpdateResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.update( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateResponse.java b/src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateResponse.java deleted file mode 100644 index 79def86..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosPaymentsUpdateResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdatePosPaymentResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosPaymentsUpdateResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * PosPayments - */ - private Optional updatePosPaymentResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosPaymentsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional updatePosPaymentResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(updatePosPaymentResponse, "updatePosPaymentResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.updatePosPaymentResponse = updatePosPaymentResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosPaymentsUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * PosPayments - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatePosPaymentResponse() { - return (Optional) updatePosPaymentResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosPaymentsUpdateResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosPaymentsUpdateResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosPaymentsUpdateResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * PosPayments - */ - public PosPaymentsUpdateResponse withUpdatePosPaymentResponse(UpdatePosPaymentResponse updatePosPaymentResponse) { - Utils.checkNotNull(updatePosPaymentResponse, "updatePosPaymentResponse"); - this.updatePosPaymentResponse = Optional.ofNullable(updatePosPaymentResponse); - return this; - } - - /** - * PosPayments - */ - public PosPaymentsUpdateResponse withUpdatePosPaymentResponse(Optional updatePosPaymentResponse) { - Utils.checkNotNull(updatePosPaymentResponse, "updatePosPaymentResponse"); - this.updatePosPaymentResponse = updatePosPaymentResponse; - return this; - } - - /** - * Unexpected error - */ - public PosPaymentsUpdateResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosPaymentsUpdateResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosPaymentsUpdateResponse other = (PosPaymentsUpdateResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.updatePosPaymentResponse, other.updatePosPaymentResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - updatePosPaymentResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosPaymentsUpdateResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "updatePosPaymentResponse", updatePosPaymentResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional updatePosPaymentResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * PosPayments - */ - public Builder updatePosPaymentResponse(UpdatePosPaymentResponse updatePosPaymentResponse) { - Utils.checkNotNull(updatePosPaymentResponse, "updatePosPaymentResponse"); - this.updatePosPaymentResponse = Optional.ofNullable(updatePosPaymentResponse); - return this; - } - - /** - * PosPayments - */ - public Builder updatePosPaymentResponse(Optional updatePosPaymentResponse) { - Utils.checkNotNull(updatePosPaymentResponse, "updatePosPaymentResponse"); - this.updatePosPaymentResponse = updatePosPaymentResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosPaymentsUpdateResponse build() { - return new PosPaymentsUpdateResponse( - contentType, - statusCode, - rawResponse, - updatePosPaymentResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersAddRequest.java b/src/main/java/com/apideck/unify/models/operations/PosTendersAddRequest.java deleted file mode 100644 index 562a8f3..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersAddRequest.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.TenderInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosTendersAddRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - @SpeakeasyMetadata("request:mediaType=application/json") - private TenderInput tender; - - @JsonCreator - public PosTendersAddRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - TenderInput tender) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(tender, "tender"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.tender = tender; - } - - public PosTendersAddRequest( - TenderInput tender) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), tender); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - @JsonIgnore - public TenderInput tender() { - return tender; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosTendersAddRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosTendersAddRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosTendersAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosTendersAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosTendersAddRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosTendersAddRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosTendersAddRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosTendersAddRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public PosTendersAddRequest withTender(TenderInput tender) { - Utils.checkNotNull(tender, "tender"); - this.tender = tender; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosTendersAddRequest other = (PosTendersAddRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.tender, other.tender); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - tender); - } - - @Override - public String toString() { - return Utils.toString(PosTendersAddRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "tender", tender); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private TenderInput tender; - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - public Builder tender(TenderInput tender) { - Utils.checkNotNull(tender, "tender"); - this.tender = tender; - return this; - } - - public PosTendersAddRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosTendersAddRequest( - raw, - customerId, - appId, - serviceId, - tender); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersAddRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosTendersAddRequestBuilder.java deleted file mode 100644 index d1bef8a..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersAddRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosTendersAddRequestBuilder { - - private PosTendersAddRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosTendersAdd sdk; - - public PosTendersAddRequestBuilder(SDKMethodInterfaces.MethodCallPosTendersAdd sdk) { - this.sdk = sdk; - } - - public PosTendersAddRequestBuilder request(PosTendersAddRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosTendersAddRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosTendersAddRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosTendersAddResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.create( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersAddResponse.java b/src/main/java/com/apideck/unify/models/operations/PosTendersAddResponse.java deleted file mode 100644 index 3cfe3ae..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersAddResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.CreateTenderResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosTendersAddResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Tenders - */ - private Optional createTenderResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosTendersAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional createTenderResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(createTenderResponse, "createTenderResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.createTenderResponse = createTenderResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosTendersAddResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Tenders - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createTenderResponse() { - return (Optional) createTenderResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosTendersAddResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosTendersAddResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosTendersAddResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Tenders - */ - public PosTendersAddResponse withCreateTenderResponse(CreateTenderResponse createTenderResponse) { - Utils.checkNotNull(createTenderResponse, "createTenderResponse"); - this.createTenderResponse = Optional.ofNullable(createTenderResponse); - return this; - } - - /** - * Tenders - */ - public PosTendersAddResponse withCreateTenderResponse(Optional createTenderResponse) { - Utils.checkNotNull(createTenderResponse, "createTenderResponse"); - this.createTenderResponse = createTenderResponse; - return this; - } - - /** - * Unexpected error - */ - public PosTendersAddResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosTendersAddResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosTendersAddResponse other = (PosTendersAddResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.createTenderResponse, other.createTenderResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - createTenderResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosTendersAddResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "createTenderResponse", createTenderResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional createTenderResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Tenders - */ - public Builder createTenderResponse(CreateTenderResponse createTenderResponse) { - Utils.checkNotNull(createTenderResponse, "createTenderResponse"); - this.createTenderResponse = Optional.ofNullable(createTenderResponse); - return this; - } - - /** - * Tenders - */ - public Builder createTenderResponse(Optional createTenderResponse) { - Utils.checkNotNull(createTenderResponse, "createTenderResponse"); - this.createTenderResponse = createTenderResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosTendersAddResponse build() { - return new PosTendersAddResponse( - contentType, - statusCode, - rawResponse, - createTenderResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersAllRequest.java b/src/main/java/com/apideck/unify/models/operations/PosTendersAllRequest.java deleted file mode 100644 index 29db3dd..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersAllRequest.java +++ /dev/null @@ -1,500 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosTendersAllRequest { - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private JsonNullable cursor; - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosTendersAllRequest( - Optional raw, - Optional customerId, - Optional appId, - Optional serviceId, - JsonNullable cursor, - Optional limit, - JsonNullable fields) { - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(limit, "limit"); - Utils.checkNotNull(fields, "fields"); - this.raw = raw; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.cursor = cursor; - this.limit = limit; - this.fields = fields; - } - - public PosTendersAllRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - @JsonIgnore - public JsonNullable cursor() { - return cursor; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - @JsonIgnore - public Optional limit() { - return limit; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosTendersAllRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosTendersAllRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosTendersAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosTendersAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosTendersAllRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosTendersAllRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosTendersAllRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosTendersAllRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosTendersAllRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public PosTendersAllRequest withCursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosTendersAllRequest withLimit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public PosTendersAllRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosTendersAllRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosTendersAllRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosTendersAllRequest other = (PosTendersAllRequest) o; - return - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosTendersAllRequest.class, - "raw", raw, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "cursor", cursor, - "limit", limit, - "fields", fields); - } - - public final static class Builder { - - private Optional raw; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private JsonNullable cursor = JsonNullable.undefined(); - - private Optional limit; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = JsonNullable.of(cursor); - return this; - } - - /** - * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. - */ - public Builder cursor(JsonNullable cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(long limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * Number of results to return. Minimum 1, Maximum 200, Default 20 - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosTendersAllRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } return new PosTendersAllRequest( - raw, - customerId, - appId, - serviceId, - cursor, - limit, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "20", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosTendersAllRequestBuilder.java deleted file mode 100644 index 85aa0fc..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersAllRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosTendersAllRequestBuilder { - - private PosTendersAllRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosTendersAll sdk; - - public PosTendersAllRequestBuilder(SDKMethodInterfaces.MethodCallPosTendersAll sdk) { - this.sdk = sdk; - } - - public PosTendersAllRequestBuilder request(PosTendersAllRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosTendersAllRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosTendersAllRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosTendersAllResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.list( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersAllResponse.java b/src/main/java/com/apideck/unify/models/operations/PosTendersAllResponse.java deleted file mode 100644 index a874d42..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersAllResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetTendersResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosTendersAllResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Tenders - */ - private Optional getTendersResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosTendersAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getTendersResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getTendersResponse, "getTendersResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getTendersResponse = getTendersResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosTendersAllResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Tenders - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getTendersResponse() { - return (Optional) getTendersResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosTendersAllResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosTendersAllResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosTendersAllResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Tenders - */ - public PosTendersAllResponse withGetTendersResponse(GetTendersResponse getTendersResponse) { - Utils.checkNotNull(getTendersResponse, "getTendersResponse"); - this.getTendersResponse = Optional.ofNullable(getTendersResponse); - return this; - } - - /** - * Tenders - */ - public PosTendersAllResponse withGetTendersResponse(Optional getTendersResponse) { - Utils.checkNotNull(getTendersResponse, "getTendersResponse"); - this.getTendersResponse = getTendersResponse; - return this; - } - - /** - * Unexpected error - */ - public PosTendersAllResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosTendersAllResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosTendersAllResponse other = (PosTendersAllResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getTendersResponse, other.getTendersResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getTendersResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosTendersAllResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getTendersResponse", getTendersResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getTendersResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Tenders - */ - public Builder getTendersResponse(GetTendersResponse getTendersResponse) { - Utils.checkNotNull(getTendersResponse, "getTendersResponse"); - this.getTendersResponse = Optional.ofNullable(getTendersResponse); - return this; - } - - /** - * Tenders - */ - public Builder getTendersResponse(Optional getTendersResponse) { - Utils.checkNotNull(getTendersResponse, "getTendersResponse"); - this.getTendersResponse = getTendersResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosTendersAllResponse build() { - return new PosTendersAllResponse( - contentType, - statusCode, - rawResponse, - getTendersResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/PosTendersDeleteRequest.java deleted file mode 100644 index 517bb47..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersDeleteRequest.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosTendersDeleteRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @JsonCreator - public PosTendersDeleteRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - } - - public PosTendersDeleteRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosTendersDeleteRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosTendersDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosTendersDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosTendersDeleteRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosTendersDeleteRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosTendersDeleteRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosTendersDeleteRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosTendersDeleteRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosTendersDeleteRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosTendersDeleteRequest other = (PosTendersDeleteRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw); - } - - @Override - public String toString() { - return Utils.toString(PosTendersDeleteRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosTendersDeleteRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosTendersDeleteRequest( - id, - customerId, - appId, - serviceId, - raw); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersDeleteRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosTendersDeleteRequestBuilder.java deleted file mode 100644 index 3d547bd..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersDeleteRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosTendersDeleteRequestBuilder { - - private PosTendersDeleteRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosTendersDelete sdk; - - public PosTendersDeleteRequestBuilder(SDKMethodInterfaces.MethodCallPosTendersDelete sdk) { - this.sdk = sdk; - } - - public PosTendersDeleteRequestBuilder request(PosTendersDeleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosTendersDeleteRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosTendersDeleteRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosTendersDeleteResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.delete( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersDeleteResponse.java b/src/main/java/com/apideck/unify/models/operations/PosTendersDeleteResponse.java deleted file mode 100644 index f9e3426..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersDeleteResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.DeleteTenderResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosTendersDeleteResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Tenders - */ - private Optional deleteTenderResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosTendersDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional deleteTenderResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(deleteTenderResponse, "deleteTenderResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.deleteTenderResponse = deleteTenderResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosTendersDeleteResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Tenders - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deleteTenderResponse() { - return (Optional) deleteTenderResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosTendersDeleteResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosTendersDeleteResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosTendersDeleteResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Tenders - */ - public PosTendersDeleteResponse withDeleteTenderResponse(DeleteTenderResponse deleteTenderResponse) { - Utils.checkNotNull(deleteTenderResponse, "deleteTenderResponse"); - this.deleteTenderResponse = Optional.ofNullable(deleteTenderResponse); - return this; - } - - /** - * Tenders - */ - public PosTendersDeleteResponse withDeleteTenderResponse(Optional deleteTenderResponse) { - Utils.checkNotNull(deleteTenderResponse, "deleteTenderResponse"); - this.deleteTenderResponse = deleteTenderResponse; - return this; - } - - /** - * Unexpected error - */ - public PosTendersDeleteResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosTendersDeleteResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosTendersDeleteResponse other = (PosTendersDeleteResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.deleteTenderResponse, other.deleteTenderResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - deleteTenderResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosTendersDeleteResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "deleteTenderResponse", deleteTenderResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional deleteTenderResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Tenders - */ - public Builder deleteTenderResponse(DeleteTenderResponse deleteTenderResponse) { - Utils.checkNotNull(deleteTenderResponse, "deleteTenderResponse"); - this.deleteTenderResponse = Optional.ofNullable(deleteTenderResponse); - return this; - } - - /** - * Tenders - */ - public Builder deleteTenderResponse(Optional deleteTenderResponse) { - Utils.checkNotNull(deleteTenderResponse, "deleteTenderResponse"); - this.deleteTenderResponse = deleteTenderResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosTendersDeleteResponse build() { - return new PosTendersDeleteResponse( - contentType, - statusCode, - rawResponse, - deleteTenderResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersOneRequest.java b/src/main/java/com/apideck/unify/models/operations/PosTendersOneRequest.java deleted file mode 100644 index f24c3ce..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersOneRequest.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PosTendersOneRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fields") - private JsonNullable fields; - - @JsonCreator - public PosTendersOneRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - JsonNullable fields) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(fields, "fields"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.fields = fields; - } - - public PosTendersOneRequest( - String id) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - @JsonIgnore - public JsonNullable fields() { - return fields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosTendersOneRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosTendersOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosTendersOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosTendersOneRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosTendersOneRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosTendersOneRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosTendersOneRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosTendersOneRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosTendersOneRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosTendersOneRequest withFields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public PosTendersOneRequest withFields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosTendersOneRequest other = (PosTendersOneRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.fields, other.fields); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - @Override - public String toString() { - return Utils.toString(PosTendersOneRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "fields", fields); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private JsonNullable fields = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(String fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = JsonNullable.of(fields); - return this; - } - - /** - * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - */ - public Builder fields(JsonNullable fields) { - Utils.checkNotNull(fields, "fields"); - this.fields = fields; - return this; - } - - public PosTendersOneRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosTendersOneRequest( - id, - customerId, - appId, - serviceId, - raw, - fields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersOneRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosTendersOneRequestBuilder.java deleted file mode 100644 index af954ba..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersOneRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosTendersOneRequestBuilder { - - private PosTendersOneRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosTendersOne sdk; - - public PosTendersOneRequestBuilder(SDKMethodInterfaces.MethodCallPosTendersOne sdk) { - this.sdk = sdk; - } - - public PosTendersOneRequestBuilder request(PosTendersOneRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosTendersOneRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosTendersOneRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosTendersOneResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.get( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersOneResponse.java b/src/main/java/com/apideck/unify/models/operations/PosTendersOneResponse.java deleted file mode 100644 index 9812006..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersOneResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.GetTenderResponse; -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosTendersOneResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Tenders - */ - private Optional getTenderResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosTendersOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional getTenderResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(getTenderResponse, "getTenderResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.getTenderResponse = getTenderResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosTendersOneResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Tenders - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getTenderResponse() { - return (Optional) getTenderResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosTendersOneResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosTendersOneResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosTendersOneResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Tenders - */ - public PosTendersOneResponse withGetTenderResponse(GetTenderResponse getTenderResponse) { - Utils.checkNotNull(getTenderResponse, "getTenderResponse"); - this.getTenderResponse = Optional.ofNullable(getTenderResponse); - return this; - } - - /** - * Tenders - */ - public PosTendersOneResponse withGetTenderResponse(Optional getTenderResponse) { - Utils.checkNotNull(getTenderResponse, "getTenderResponse"); - this.getTenderResponse = getTenderResponse; - return this; - } - - /** - * Unexpected error - */ - public PosTendersOneResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosTendersOneResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosTendersOneResponse other = (PosTendersOneResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.getTenderResponse, other.getTenderResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - getTenderResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosTendersOneResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "getTenderResponse", getTenderResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional getTenderResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Tenders - */ - public Builder getTenderResponse(GetTenderResponse getTenderResponse) { - Utils.checkNotNull(getTenderResponse, "getTenderResponse"); - this.getTenderResponse = Optional.ofNullable(getTenderResponse); - return this; - } - - /** - * Tenders - */ - public Builder getTenderResponse(Optional getTenderResponse) { - Utils.checkNotNull(getTenderResponse, "getTenderResponse"); - this.getTenderResponse = getTenderResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosTendersOneResponse build() { - return new PosTendersOneResponse( - contentType, - statusCode, - rawResponse, - getTenderResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/PosTendersUpdateRequest.java deleted file mode 100644 index 06b6a05..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersUpdateRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.TenderInput; -import com.apideck.unify.utils.LazySingletonValue; -import com.apideck.unify.utils.SpeakeasyMetadata; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - - -public class PosTendersUpdateRequest { - - /** - * ID of the record you are acting upon. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") - private String id; - - /** - * ID of the consumer which you want to get or push data from - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; - - /** - * The ID of your Unify application - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-app-id") - private Optional appId; - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-service-id") - private Optional serviceId; - - /** - * Include raw response. Mostly used for debugging purposes - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=raw") - private Optional raw; - - @SpeakeasyMetadata("request:mediaType=application/json") - private TenderInput tender; - - @JsonCreator - public PosTendersUpdateRequest( - String id, - Optional customerId, - Optional appId, - Optional serviceId, - Optional raw, - TenderInput tender) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); - Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(serviceId, "serviceId"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(tender, "tender"); - this.id = id; - this.customerId = customerId; - this.appId = appId; - this.serviceId = serviceId; - this.raw = raw; - this.tender = tender; - } - - public PosTendersUpdateRequest( - String id, - TenderInput tender) { - this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), tender); - } - - /** - * ID of the record you are acting upon. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * ID of the consumer which you want to get or push data from - */ - @JsonIgnore - public Optional customerId() { - return customerId; - } - - /** - * The ID of your Unify application - */ - @JsonIgnore - public Optional appId() { - return appId; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - @JsonIgnore - public Optional serviceId() { - return serviceId; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - @JsonIgnore - public Optional raw() { - return raw; - } - - @JsonIgnore - public TenderInput tender() { - return tender; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * ID of the record you are acting upon. - */ - public PosTendersUpdateRequest withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosTendersUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public PosTendersUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public PosTendersUpdateRequest withAppId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public PosTendersUpdateRequest withAppId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosTendersUpdateRequest withServiceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public PosTendersUpdateRequest withServiceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosTendersUpdateRequest withRaw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public PosTendersUpdateRequest withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PosTendersUpdateRequest withTender(TenderInput tender) { - Utils.checkNotNull(tender, "tender"); - this.tender = tender; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosTendersUpdateRequest other = (PosTendersUpdateRequest) o; - return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.serviceId, other.serviceId) && - Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.tender, other.tender); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - customerId, - appId, - serviceId, - raw, - tender); - } - - @Override - public String toString() { - return Utils.toString(PosTendersUpdateRequest.class, - "id", id, - "customerId", customerId, - "appId", appId, - "serviceId", serviceId, - "raw", raw, - "tender", tender); - } - - public final static class Builder { - - private String id; - - private Optional customerId = Optional.empty(); - - private Optional appId = Optional.empty(); - - private Optional serviceId = Optional.empty(); - - private Optional raw; - - private TenderInput tender; - - private Builder() { - // force use of static builder() method - } - - /** - * ID of the record you are acting upon. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); - return this; - } - - /** - * ID of the consumer which you want to get or push data from - */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(String appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = Optional.ofNullable(appId); - return this; - } - - /** - * The ID of your Unify application - */ - public Builder appId(Optional appId) { - Utils.checkNotNull(appId, "appId"); - this.appId = appId; - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(String serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = Optional.ofNullable(serviceId); - return this; - } - - /** - * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - */ - public Builder serviceId(Optional serviceId) { - Utils.checkNotNull(serviceId, "serviceId"); - this.serviceId = serviceId; - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(boolean raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - /** - * Include raw response. Mostly used for debugging purposes - */ - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public Builder tender(TenderInput tender) { - Utils.checkNotNull(tender, "tender"); - this.tender = tender; - return this; - } - - public PosTendersUpdateRequest build() { - if (raw == null) { - raw = _SINGLETON_VALUE_Raw.value(); - } return new PosTendersUpdateRequest( - id, - customerId, - appId, - serviceId, - raw, - tender); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Raw = - new LazySingletonValue<>( - "raw", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersUpdateRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/PosTendersUpdateRequestBuilder.java deleted file mode 100644 index 800977c..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersUpdateRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - -import com.apideck.unify.utils.Options; -import com.apideck.unify.utils.RetryConfig; -import com.apideck.unify.utils.Utils; -import java.util.Optional; - -public class PosTendersUpdateRequestBuilder { - - private PosTendersUpdateRequest request; - private Optional retryConfig = Optional.empty(); - private final SDKMethodInterfaces.MethodCallPosTendersUpdate sdk; - - public PosTendersUpdateRequestBuilder(SDKMethodInterfaces.MethodCallPosTendersUpdate sdk) { - this.sdk = sdk; - } - - public PosTendersUpdateRequestBuilder request(PosTendersUpdateRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PosTendersUpdateRequestBuilder retryConfig(RetryConfig retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = Optional.of(retryConfig); - return this; - } - - public PosTendersUpdateRequestBuilder retryConfig(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - return this; - } - - public PosTendersUpdateResponse call() throws Exception { - Optional options = Optional.of(Options.builder() - .retryConfig(retryConfig) - .build()); - return sdk.update( - request, - options); - } -} diff --git a/src/main/java/com/apideck/unify/models/operations/PosTendersUpdateResponse.java b/src/main/java/com/apideck/unify/models/operations/PosTendersUpdateResponse.java deleted file mode 100644 index 6a77737..0000000 --- a/src/main/java/com/apideck/unify/models/operations/PosTendersUpdateResponse.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.apideck.unify.models.operations; - - -import com.apideck.unify.models.components.UnexpectedErrorResponse; -import com.apideck.unify.models.components.UpdateTenderResponse; -import com.apideck.unify.utils.Response; -import com.apideck.unify.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Objects; -import java.util.Optional; - - -public class PosTendersUpdateResponse implements Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Tenders - */ - private Optional updateTenderResponse; - - /** - * Unexpected error - */ - private Optional unexpectedErrorResponse; - - @JsonCreator - public PosTendersUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional updateTenderResponse, - Optional unexpectedErrorResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(updateTenderResponse, "updateTenderResponse"); - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.updateTenderResponse = updateTenderResponse; - this.unexpectedErrorResponse = unexpectedErrorResponse; - } - - public PosTendersUpdateResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Tenders - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updateTenderResponse() { - return (Optional) updateTenderResponse; - } - - /** - * Unexpected error - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional unexpectedErrorResponse() { - return (Optional) unexpectedErrorResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PosTendersUpdateResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PosTendersUpdateResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PosTendersUpdateResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Tenders - */ - public PosTendersUpdateResponse withUpdateTenderResponse(UpdateTenderResponse updateTenderResponse) { - Utils.checkNotNull(updateTenderResponse, "updateTenderResponse"); - this.updateTenderResponse = Optional.ofNullable(updateTenderResponse); - return this; - } - - /** - * Tenders - */ - public PosTendersUpdateResponse withUpdateTenderResponse(Optional updateTenderResponse) { - Utils.checkNotNull(updateTenderResponse, "updateTenderResponse"); - this.updateTenderResponse = updateTenderResponse; - return this; - } - - /** - * Unexpected error - */ - public PosTendersUpdateResponse withUnexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public PosTendersUpdateResponse withUnexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PosTendersUpdateResponse other = (PosTendersUpdateResponse) o; - return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.updateTenderResponse, other.updateTenderResponse) && - Objects.deepEquals(this.unexpectedErrorResponse, other.unexpectedErrorResponse); - } - - @Override - public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, - updateTenderResponse, - unexpectedErrorResponse); - } - - @Override - public String toString() { - return Utils.toString(PosTendersUpdateResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "updateTenderResponse", updateTenderResponse, - "unexpectedErrorResponse", unexpectedErrorResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional updateTenderResponse = Optional.empty(); - - private Optional unexpectedErrorResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Tenders - */ - public Builder updateTenderResponse(UpdateTenderResponse updateTenderResponse) { - Utils.checkNotNull(updateTenderResponse, "updateTenderResponse"); - this.updateTenderResponse = Optional.ofNullable(updateTenderResponse); - return this; - } - - /** - * Tenders - */ - public Builder updateTenderResponse(Optional updateTenderResponse) { - Utils.checkNotNull(updateTenderResponse, "updateTenderResponse"); - this.updateTenderResponse = updateTenderResponse; - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(UnexpectedErrorResponse unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = Optional.ofNullable(unexpectedErrorResponse); - return this; - } - - /** - * Unexpected error - */ - public Builder unexpectedErrorResponse(Optional unexpectedErrorResponse) { - Utils.checkNotNull(unexpectedErrorResponse, "unexpectedErrorResponse"); - this.unexpectedErrorResponse = unexpectedErrorResponse; - return this; - } - - public PosTendersUpdateResponse build() { - return new PosTendersUpdateResponse( - contentType, - statusCode, - rawResponse, - updateTenderResponse, - unexpectedErrorResponse); - } - } -} - diff --git a/src/main/java/com/apideck/unify/models/operations/SDKMethodInterfaces.java b/src/main/java/com/apideck/unify/models/operations/SDKMethodInterfaces.java index 4ec6619..e6b9d15 100644 --- a/src/main/java/com/apideck/unify/models/operations/SDKMethodInterfaces.java +++ b/src/main/java/com/apideck/unify/models/operations/SDKMethodInterfaces.java @@ -1475,363 +1475,6 @@ HrisTimeOffRequestsDeleteResponse delete( } - public interface MethodCallLeadLeadsAll { - LeadLeadsAllResponse list( - LeadLeadsAllRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallLeadLeadsAdd { - LeadLeadsAddResponse create( - LeadLeadsAddRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallLeadLeadsOne { - LeadLeadsOneResponse get( - LeadLeadsOneRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallLeadLeadsUpdate { - LeadLeadsUpdateResponse update( - LeadLeadsUpdateRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallLeadLeadsDelete { - LeadLeadsDeleteResponse delete( - LeadLeadsDeleteRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosOrdersAll { - PosOrdersAllResponse list( - PosOrdersAllRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosOrdersAdd { - PosOrdersAddResponse create( - PosOrdersAddRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosOrdersOne { - PosOrdersOneResponse get( - PosOrdersOneRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosOrdersUpdate { - PosOrdersUpdateResponse update( - PosOrdersUpdateRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosOrdersDelete { - PosOrdersDeleteResponse delete( - PosOrdersDeleteRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosOrdersPay { - PosOrdersPayResponse pay( - PosOrdersPayRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosPaymentsAll { - PosPaymentsAllResponse list( - PosPaymentsAllRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosPaymentsAdd { - PosPaymentsAddResponse create( - PosPaymentsAddRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosPaymentsOne { - PosPaymentsOneResponse get( - PosPaymentsOneRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosPaymentsUpdate { - PosPaymentsUpdateResponse update( - PosPaymentsUpdateRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosPaymentsDelete { - PosPaymentsDeleteResponse delete( - PosPaymentsDeleteRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosMerchantsAll { - PosMerchantsAllResponse list( - PosMerchantsAllRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosMerchantsAdd { - PosMerchantsAddResponse create( - PosMerchantsAddRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosMerchantsOne { - PosMerchantsOneResponse get( - PosMerchantsOneRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosMerchantsUpdate { - PosMerchantsUpdateResponse update( - PosMerchantsUpdateRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosMerchantsDelete { - PosMerchantsDeleteResponse delete( - PosMerchantsDeleteRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosLocationsAll { - PosLocationsAllResponse list( - PosLocationsAllRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosLocationsAdd { - PosLocationsAddResponse create( - PosLocationsAddRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosLocationsOne { - PosLocationsOneResponse get( - PosLocationsOneRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosLocationsUpdate { - PosLocationsUpdateResponse update( - PosLocationsUpdateRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosLocationsDelete { - PosLocationsDeleteResponse delete( - PosLocationsDeleteRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosItemsAll { - PosItemsAllResponse list( - PosItemsAllRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosItemsAdd { - PosItemsAddResponse create( - PosItemsAddRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosItemsOne { - PosItemsOneResponse get( - PosItemsOneRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosItemsUpdate { - PosItemsUpdateResponse update( - PosItemsUpdateRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosItemsDelete { - PosItemsDeleteResponse delete( - PosItemsDeleteRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosModifiersAll { - PosModifiersAllResponse list( - PosModifiersAllRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosModifiersAdd { - PosModifiersAddResponse create( - PosModifiersAddRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosModifiersOne { - PosModifiersOneResponse get( - PosModifiersOneRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosModifiersUpdate { - PosModifiersUpdateResponse update( - PosModifiersUpdateRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosModifiersDelete { - PosModifiersDeleteResponse delete( - PosModifiersDeleteRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosModifierGroupsAll { - PosModifierGroupsAllResponse list( - PosModifierGroupsAllRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosModifierGroupsAdd { - PosModifierGroupsAddResponse create( - PosModifierGroupsAddRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosModifierGroupsOne { - PosModifierGroupsOneResponse get( - PosModifierGroupsOneRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosModifierGroupsUpdate { - PosModifierGroupsUpdateResponse update( - PosModifierGroupsUpdateRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosModifierGroupsDelete { - PosModifierGroupsDeleteResponse delete( - PosModifierGroupsDeleteRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosOrderTypesAll { - PosOrderTypesAllResponse list( - PosOrderTypesAllRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosOrderTypesAdd { - PosOrderTypesAddResponse create( - PosOrderTypesAddRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosOrderTypesOne { - PosOrderTypesOneResponse get( - PosOrderTypesOneRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosOrderTypesUpdate { - PosOrderTypesUpdateResponse update( - PosOrderTypesUpdateRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosOrderTypesDelete { - PosOrderTypesDeleteResponse delete( - PosOrderTypesDeleteRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosTendersAll { - PosTendersAllResponse list( - PosTendersAllRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosTendersAdd { - PosTendersAddResponse create( - PosTendersAddRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosTendersOne { - PosTendersOneResponse get( - PosTendersOneRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosTendersUpdate { - PosTendersUpdateResponse update( - PosTendersUpdateRequest request, - Optional options) throws Exception; - } - - - public interface MethodCallPosTendersDelete { - PosTendersDeleteResponse delete( - PosTendersDeleteRequest request, - Optional options) throws Exception; - } - - public interface MethodCallSmsMessagesAll { SmsMessagesAllResponse list( SmsMessagesAllRequest request, @@ -2099,7 +1742,7 @@ VaultConsumerRequestCountsAllResponse list( public interface MethodCallVaultConnectionsAll { VaultConnectionsAllResponse list( - Optional customerId, + Optional consumerId, Optional appId, Optional api, Optional configured, @@ -2109,7 +1752,7 @@ VaultConnectionsAllResponse list( public interface MethodCallVaultConnectionsOne { VaultConnectionsOneResponse get( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi, @@ -2126,7 +1769,7 @@ VaultConnectionsUpdateResponse update( public interface MethodCallVaultConnectionsDelete { VaultConnectionsDeleteResponse delete( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi, @@ -2135,7 +1778,7 @@ VaultConnectionsDeleteResponse delete( public interface MethodCallVaultConnectionsImport { - VaultConnectionsImportResponse import_( + VaultConnectionsImportResponse imports( VaultConnectionsImportRequest request, Optional options) throws Exception; } @@ -2192,7 +1835,7 @@ VaultConnectionCustomMappingsAllResponse list( public interface MethodCallVaultCustomMappingsAll { VaultCustomMappingsAllResponse list( - Optional customerId, + Optional consumerId, Optional appId, String unifiedApi, String serviceId, @@ -2202,7 +1845,7 @@ VaultCustomMappingsAllResponse list( public interface MethodCallVaultSessionsCreate { VaultSessionsCreateResponse create( - Optional customerId, + Optional consumerId, Optional appId, Optional session, Optional options) throws Exception; diff --git a/src/main/java/com/apideck/unify/models/operations/SmsMessagesAddRequest.java b/src/main/java/com/apideck/unify/models/operations/SmsMessagesAddRequest.java index 6219bc4..b0a3520 100644 --- a/src/main/java/com/apideck/unify/models/operations/SmsMessagesAddRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/SmsMessagesAddRequest.java @@ -31,7 +31,7 @@ public class SmsMessagesAddRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -51,17 +51,17 @@ public class SmsMessagesAddRequest { @JsonCreator public SmsMessagesAddRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, MessageInput message) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(message, "message"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.message = message; @@ -84,8 +84,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -134,18 +134,18 @@ public SmsMessagesAddRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public SmsMessagesAddRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public SmsMessagesAddRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public SmsMessagesAddRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public SmsMessagesAddRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -202,7 +202,7 @@ public boolean equals(java.lang.Object o) { SmsMessagesAddRequest other = (SmsMessagesAddRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.message, other.message); @@ -212,7 +212,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, message); @@ -222,7 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(SmsMessagesAddRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "message", message); @@ -232,7 +232,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -265,18 +265,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -327,7 +327,7 @@ public SmsMessagesAddRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new SmsMessagesAddRequest( raw, - customerId, + consumerId, appId, serviceId, message); diff --git a/src/main/java/com/apideck/unify/models/operations/SmsMessagesAllRequest.java b/src/main/java/com/apideck/unify/models/operations/SmsMessagesAllRequest.java index 88412d0..3fef628 100644 --- a/src/main/java/com/apideck/unify/models/operations/SmsMessagesAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/SmsMessagesAllRequest.java @@ -32,7 +32,7 @@ public class SmsMessagesAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -67,21 +67,21 @@ public class SmsMessagesAllRequest { @JsonCreator public SmsMessagesAllRequest( Optional raw, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, JsonNullable cursor, Optional limit, JsonNullable fields) { Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(limit, "limit"); Utils.checkNotNull(fields, "fields"); this.raw = raw; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.cursor = cursor; @@ -105,8 +105,8 @@ public Optional raw() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -174,18 +174,18 @@ public SmsMessagesAllRequest withRaw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public SmsMessagesAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public SmsMessagesAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public SmsMessagesAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public SmsMessagesAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -290,7 +290,7 @@ public boolean equals(java.lang.Object o) { SmsMessagesAllRequest other = (SmsMessagesAllRequest) o; return Objects.deepEquals(this.raw, other.raw) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.cursor, other.cursor) && @@ -302,7 +302,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( raw, - customerId, + consumerId, appId, serviceId, cursor, @@ -314,7 +314,7 @@ public int hashCode() { public String toString() { return Utils.toString(SmsMessagesAllRequest.class, "raw", raw, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "cursor", cursor, @@ -326,7 +326,7 @@ public final static class Builder { private Optional raw; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -363,18 +363,18 @@ public Builder raw(Optional raw) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -476,7 +476,7 @@ public SmsMessagesAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new SmsMessagesAllRequest( raw, - customerId, + consumerId, appId, serviceId, cursor, diff --git a/src/main/java/com/apideck/unify/models/operations/SmsMessagesDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/SmsMessagesDeleteRequest.java index f3cb2c8..fdbcb04 100644 --- a/src/main/java/com/apideck/unify/models/operations/SmsMessagesDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/SmsMessagesDeleteRequest.java @@ -30,7 +30,7 @@ public class SmsMessagesDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -53,17 +53,17 @@ public class SmsMessagesDeleteRequest { @JsonCreator public SmsMessagesDeleteRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -86,8 +86,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -130,18 +130,18 @@ public SmsMessagesDeleteRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public SmsMessagesDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public SmsMessagesDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public SmsMessagesDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public SmsMessagesDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -210,7 +210,7 @@ public boolean equals(java.lang.Object o) { SmsMessagesDeleteRequest other = (SmsMessagesDeleteRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw); @@ -220,7 +220,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw); @@ -230,7 +230,7 @@ public int hashCode() { public String toString() { return Utils.toString(SmsMessagesDeleteRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw); @@ -240,7 +240,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -264,18 +264,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -338,7 +338,7 @@ public SmsMessagesDeleteRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new SmsMessagesDeleteRequest( id, - customerId, + consumerId, appId, serviceId, raw); diff --git a/src/main/java/com/apideck/unify/models/operations/SmsMessagesOneRequest.java b/src/main/java/com/apideck/unify/models/operations/SmsMessagesOneRequest.java index cc87183..acac671 100644 --- a/src/main/java/com/apideck/unify/models/operations/SmsMessagesOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/SmsMessagesOneRequest.java @@ -31,7 +31,7 @@ public class SmsMessagesOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -60,19 +60,19 @@ public class SmsMessagesOneRequest { @JsonCreator public SmsMessagesOneRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, JsonNullable fields) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(fields, "fields"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -96,8 +96,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -148,18 +148,18 @@ public SmsMessagesOneRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public SmsMessagesOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public SmsMessagesOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public SmsMessagesOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public SmsMessagesOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object o) { SmsMessagesOneRequest other = (SmsMessagesOneRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -257,7 +257,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -268,7 +268,7 @@ public int hashCode() { public String toString() { return Utils.toString(SmsMessagesOneRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -279,7 +279,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -305,18 +305,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -397,7 +397,7 @@ public SmsMessagesOneRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new SmsMessagesOneRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/SmsMessagesUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/SmsMessagesUpdateRequest.java index e414c68..b1b5312 100644 --- a/src/main/java/com/apideck/unify/models/operations/SmsMessagesUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/SmsMessagesUpdateRequest.java @@ -31,7 +31,7 @@ public class SmsMessagesUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -57,19 +57,19 @@ public class SmsMessagesUpdateRequest { @JsonCreator public SmsMessagesUpdateRequest( String id, - Optional customerId, + Optional consumerId, Optional appId, Optional serviceId, Optional raw, MessageInput message) { Utils.checkNotNull(id, "id"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(message, "message"); this.id = id; - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.raw = raw; @@ -94,8 +94,8 @@ public String id() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -143,18 +143,18 @@ public SmsMessagesUpdateRequest withId(String id) { /** * ID of the consumer which you want to get or push data from */ - public SmsMessagesUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public SmsMessagesUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public SmsMessagesUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public SmsMessagesUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { SmsMessagesUpdateRequest other = (SmsMessagesUpdateRequest) o; return Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.raw, other.raw) && @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( id, - customerId, + consumerId, appId, serviceId, raw, @@ -251,7 +251,7 @@ public int hashCode() { public String toString() { return Utils.toString(SmsMessagesUpdateRequest.class, "id", id, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "raw", raw, @@ -262,7 +262,7 @@ public final static class Builder { private String id; - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -288,18 +288,18 @@ public Builder id(String id) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -368,7 +368,7 @@ public SmsMessagesUpdateRequest build() { raw = _SINGLETON_VALUE_Raw.value(); } return new SmsMessagesUpdateRequest( id, - customerId, + consumerId, appId, serviceId, raw, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionCustomMappingsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionCustomMappingsAllRequest.java index 901f19b..a5d86db 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionCustomMappingsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionCustomMappingsAllRequest.java @@ -21,7 +21,7 @@ public class VaultConnectionCustomMappingsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -55,19 +55,19 @@ public class VaultConnectionCustomMappingsAllRequest { @JsonCreator public VaultConnectionCustomMappingsAllRequest( - Optional customerId, + Optional consumerId, Optional appId, String unifiedApi, String serviceId, String resource, Optional resourceId) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(resource, "resource"); Utils.checkNotNull(resourceId, "resourceId"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.unifiedApi = unifiedApi; this.serviceId = serviceId; @@ -86,8 +86,8 @@ public VaultConnectionCustomMappingsAllRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -137,18 +137,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionCustomMappingsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultConnectionCustomMappingsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionCustomMappingsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionCustomMappingsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -225,7 +225,7 @@ public boolean equals(java.lang.Object o) { } VaultConnectionCustomMappingsAllRequest other = (VaultConnectionCustomMappingsAllRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi) && Objects.deepEquals(this.serviceId, other.serviceId) && @@ -236,7 +236,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, unifiedApi, serviceId, @@ -247,7 +247,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultConnectionCustomMappingsAllRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "unifiedApi", unifiedApi, "serviceId", serviceId, @@ -257,7 +257,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -276,18 +276,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -356,7 +356,7 @@ public Builder resourceId(Optional resourceId) { public VaultConnectionCustomMappingsAllRequest build() { return new VaultConnectionCustomMappingsAllRequest( - customerId, + consumerId, appId, unifiedApi, serviceId, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionSettingsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionSettingsAllRequest.java index 611505f..7b9e838 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionSettingsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionSettingsAllRequest.java @@ -21,7 +21,7 @@ public class VaultConnectionSettingsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -49,17 +49,17 @@ public class VaultConnectionSettingsAllRequest { @JsonCreator public VaultConnectionSettingsAllRequest( - Optional customerId, + Optional consumerId, Optional appId, String unifiedApi, String serviceId, String resource) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(resource, "resource"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.unifiedApi = unifiedApi; this.serviceId = serviceId; @@ -77,8 +77,8 @@ public VaultConnectionSettingsAllRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -120,18 +120,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionSettingsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultConnectionSettingsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionSettingsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionSettingsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -190,7 +190,7 @@ public boolean equals(java.lang.Object o) { } VaultConnectionSettingsAllRequest other = (VaultConnectionSettingsAllRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi) && Objects.deepEquals(this.serviceId, other.serviceId) && @@ -200,7 +200,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, unifiedApi, serviceId, @@ -210,7 +210,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultConnectionSettingsAllRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "unifiedApi", unifiedApi, "serviceId", serviceId, @@ -219,7 +219,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -236,18 +236,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -298,7 +298,7 @@ public Builder resource(String resource) { public VaultConnectionSettingsAllRequest build() { return new VaultConnectionSettingsAllRequest( - customerId, + consumerId, appId, unifiedApi, serviceId, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionSettingsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionSettingsUpdateRequest.java index 7a2215a..c27b730 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionSettingsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionSettingsUpdateRequest.java @@ -22,7 +22,7 @@ public class VaultConnectionSettingsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -56,19 +56,19 @@ public class VaultConnectionSettingsUpdateRequest { @JsonCreator public VaultConnectionSettingsUpdateRequest( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi, String resource, ConnectionInput connection) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); Utils.checkNotNull(resource, "resource"); Utils.checkNotNull(connection, "connection"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.unifiedApi = unifiedApi; @@ -88,8 +88,8 @@ public VaultConnectionSettingsUpdateRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -139,18 +139,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionSettingsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultConnectionSettingsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionSettingsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionSettingsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -218,7 +218,7 @@ public boolean equals(java.lang.Object o) { } VaultConnectionSettingsUpdateRequest other = (VaultConnectionSettingsUpdateRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi) && @@ -229,7 +229,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, serviceId, unifiedApi, @@ -240,7 +240,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultConnectionSettingsUpdateRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "unifiedApi", unifiedApi, @@ -250,7 +250,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -269,18 +269,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -340,7 +340,7 @@ public Builder connection(ConnectionInput connection) { public VaultConnectionSettingsUpdateRequest build() { return new VaultConnectionSettingsUpdateRequest( - customerId, + consumerId, appId, serviceId, unifiedApi, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsAllRequest.java index c623f9a..ba3578a 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsAllRequest.java @@ -22,7 +22,7 @@ public class VaultConnectionsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -44,15 +44,15 @@ public class VaultConnectionsAllRequest { @JsonCreator public VaultConnectionsAllRequest( - Optional customerId, + Optional consumerId, Optional appId, Optional api, Optional configured) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(api, "api"); Utils.checkNotNull(configured, "configured"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.api = api; this.configured = configured; @@ -66,8 +66,8 @@ public VaultConnectionsAllRequest() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -101,18 +101,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultConnectionsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -180,7 +180,7 @@ public boolean equals(java.lang.Object o) { } VaultConnectionsAllRequest other = (VaultConnectionsAllRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.api, other.api) && Objects.deepEquals(this.configured, other.configured); @@ -189,7 +189,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, api, configured); @@ -198,7 +198,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultConnectionsAllRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "api", api, "configured", configured); @@ -206,7 +206,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -221,18 +221,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -292,7 +292,7 @@ public Builder configured(Optional configured) { public VaultConnectionsAllRequest build() { return new VaultConnectionsAllRequest( - customerId, + consumerId, appId, api, configured); diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsAllRequestBuilder.java index 6881f80..1b57b0f 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsAllRequestBuilder.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsAllRequestBuilder.java @@ -13,7 +13,7 @@ public class VaultConnectionsAllRequestBuilder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); private Optional api = Optional.empty(); private Optional configured = Optional.empty(); @@ -24,15 +24,15 @@ public VaultConnectionsAllRequestBuilder(SDKMethodInterfaces.MethodCallVaultConn this.sdk = sdk; } - public VaultConnectionsAllRequestBuilder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.of(customerId); + public VaultConnectionsAllRequestBuilder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.of(consumerId); return this; } - public VaultConnectionsAllRequestBuilder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionsAllRequestBuilder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -89,7 +89,7 @@ public VaultConnectionsAllResponse call() throws Exception { .retryConfig(retryConfig) .build()); return sdk.list( - customerId, + consumerId, appId, api, configured, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsDeleteRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsDeleteRequest.java index e5900ef..6feca57 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsDeleteRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsDeleteRequest.java @@ -21,7 +21,7 @@ public class VaultConnectionsDeleteRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -43,15 +43,15 @@ public class VaultConnectionsDeleteRequest { @JsonCreator public VaultConnectionsDeleteRequest( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.unifiedApi = unifiedApi; @@ -67,8 +67,8 @@ public VaultConnectionsDeleteRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -102,18 +102,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsDeleteRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultConnectionsDeleteRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsDeleteRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionsDeleteRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -163,7 +163,7 @@ public boolean equals(java.lang.Object o) { } VaultConnectionsDeleteRequest other = (VaultConnectionsDeleteRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi); @@ -172,7 +172,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, serviceId, unifiedApi); @@ -181,7 +181,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultConnectionsDeleteRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "unifiedApi", unifiedApi); @@ -189,7 +189,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -204,18 +204,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -257,7 +257,7 @@ public Builder unifiedApi(String unifiedApi) { public VaultConnectionsDeleteRequest build() { return new VaultConnectionsDeleteRequest( - customerId, + consumerId, appId, serviceId, unifiedApi); diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsDeleteRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsDeleteRequestBuilder.java index 0e90bb1..f13d75e 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsDeleteRequestBuilder.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsDeleteRequestBuilder.java @@ -12,7 +12,7 @@ public class VaultConnectionsDeleteRequestBuilder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); private String serviceId; private String unifiedApi; @@ -23,15 +23,15 @@ public VaultConnectionsDeleteRequestBuilder(SDKMethodInterfaces.MethodCallVaultC this.sdk = sdk; } - public VaultConnectionsDeleteRequestBuilder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.of(customerId); + public VaultConnectionsDeleteRequestBuilder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.of(consumerId); return this; } - public VaultConnectionsDeleteRequestBuilder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionsDeleteRequestBuilder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -76,7 +76,7 @@ public VaultConnectionsDeleteResponse call() throws Exception { .retryConfig(retryConfig) .build()); return sdk.delete( - customerId, + consumerId, appId, serviceId, unifiedApi, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsImportRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsImportRequest.java index 9d357d9..c22b820 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsImportRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsImportRequest.java @@ -22,7 +22,7 @@ public class VaultConnectionsImportRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -50,17 +50,17 @@ public class VaultConnectionsImportRequest { @JsonCreator public VaultConnectionsImportRequest( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi, ConnectionImportData connectionImportData) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); Utils.checkNotNull(connectionImportData, "connectionImportData"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.unifiedApi = unifiedApi; @@ -78,8 +78,8 @@ public VaultConnectionsImportRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -121,18 +121,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsImportRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultConnectionsImportRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsImportRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionsImportRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -191,7 +191,7 @@ public boolean equals(java.lang.Object o) { } VaultConnectionsImportRequest other = (VaultConnectionsImportRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi) && @@ -201,7 +201,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, serviceId, unifiedApi, @@ -211,7 +211,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultConnectionsImportRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "unifiedApi", unifiedApi, @@ -220,7 +220,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -237,18 +237,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -299,7 +299,7 @@ public Builder connectionImportData(ConnectionImportData connectionImportData) { public VaultConnectionsImportRequest build() { return new VaultConnectionsImportRequest( - customerId, + consumerId, appId, serviceId, unifiedApi, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsImportRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsImportRequestBuilder.java index 40df532..a063373 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsImportRequestBuilder.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsImportRequestBuilder.java @@ -41,7 +41,7 @@ public VaultConnectionsImportResponse call() throws Exception { Optional options = Optional.of(Options.builder() .retryConfig(retryConfig) .build()); - return sdk.import_( + return sdk.imports( request, options); } diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsOneRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsOneRequest.java index 0d7bb73..69a38fc 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsOneRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsOneRequest.java @@ -21,7 +21,7 @@ public class VaultConnectionsOneRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -43,15 +43,15 @@ public class VaultConnectionsOneRequest { @JsonCreator public VaultConnectionsOneRequest( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.unifiedApi = unifiedApi; @@ -67,8 +67,8 @@ public VaultConnectionsOneRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -102,18 +102,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsOneRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultConnectionsOneRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsOneRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionsOneRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -163,7 +163,7 @@ public boolean equals(java.lang.Object o) { } VaultConnectionsOneRequest other = (VaultConnectionsOneRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi); @@ -172,7 +172,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, serviceId, unifiedApi); @@ -181,7 +181,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultConnectionsOneRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "unifiedApi", unifiedApi); @@ -189,7 +189,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -204,18 +204,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -257,7 +257,7 @@ public Builder unifiedApi(String unifiedApi) { public VaultConnectionsOneRequest build() { return new VaultConnectionsOneRequest( - customerId, + consumerId, appId, serviceId, unifiedApi); diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsOneRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsOneRequestBuilder.java index 23f6959..ede0a8d 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsOneRequestBuilder.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsOneRequestBuilder.java @@ -12,7 +12,7 @@ public class VaultConnectionsOneRequestBuilder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); private String serviceId; private String unifiedApi; @@ -23,15 +23,15 @@ public VaultConnectionsOneRequestBuilder(SDKMethodInterfaces.MethodCallVaultConn this.sdk = sdk; } - public VaultConnectionsOneRequestBuilder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.of(customerId); + public VaultConnectionsOneRequestBuilder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.of(consumerId); return this; } - public VaultConnectionsOneRequestBuilder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionsOneRequestBuilder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -76,7 +76,7 @@ public VaultConnectionsOneResponse call() throws Exception { .retryConfig(retryConfig) .build()); return sdk.get( - customerId, + consumerId, appId, serviceId, unifiedApi, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsTokenRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsTokenRequest.java index 2816f4a..45d8d8e 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsTokenRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsTokenRequest.java @@ -22,7 +22,7 @@ public class VaultConnectionsTokenRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -47,17 +47,17 @@ public class VaultConnectionsTokenRequest { @JsonCreator public VaultConnectionsTokenRequest( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi, Optional requestBody) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); Utils.checkNotNull(requestBody, "requestBody"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.unifiedApi = unifiedApi; @@ -74,8 +74,8 @@ public VaultConnectionsTokenRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -115,18 +115,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsTokenRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultConnectionsTokenRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsTokenRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionsTokenRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -188,7 +188,7 @@ public boolean equals(java.lang.Object o) { } VaultConnectionsTokenRequest other = (VaultConnectionsTokenRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi) && @@ -198,7 +198,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, serviceId, unifiedApi, @@ -208,7 +208,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultConnectionsTokenRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "unifiedApi", unifiedApi, @@ -217,7 +217,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -234,18 +234,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -299,7 +299,7 @@ public Builder requestBody(Optional public VaultConnectionsTokenRequest build() { return new VaultConnectionsTokenRequest( - customerId, + consumerId, appId, serviceId, unifiedApi, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsUpdateRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsUpdateRequest.java index 437d496..16348dc 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultConnectionsUpdateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultConnectionsUpdateRequest.java @@ -22,7 +22,7 @@ public class VaultConnectionsUpdateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -50,17 +50,17 @@ public class VaultConnectionsUpdateRequest { @JsonCreator public VaultConnectionsUpdateRequest( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi, ConnectionInput connection) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); Utils.checkNotNull(connection, "connection"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.unifiedApi = unifiedApi; @@ -78,8 +78,8 @@ public VaultConnectionsUpdateRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -121,18 +121,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsUpdateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultConnectionsUpdateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultConnectionsUpdateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultConnectionsUpdateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -191,7 +191,7 @@ public boolean equals(java.lang.Object o) { } VaultConnectionsUpdateRequest other = (VaultConnectionsUpdateRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi) && @@ -201,7 +201,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, serviceId, unifiedApi, @@ -211,7 +211,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultConnectionsUpdateRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "unifiedApi", unifiedApi, @@ -220,7 +220,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -237,18 +237,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -299,7 +299,7 @@ public Builder connection(ConnectionInput connection) { public VaultConnectionsUpdateRequest build() { return new VaultConnectionsUpdateRequest( - customerId, + consumerId, appId, serviceId, unifiedApi, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultCreateCallbackStateRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultCreateCallbackStateRequest.java index 49ebd28..8661110 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultCreateCallbackStateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultCreateCallbackStateRequest.java @@ -22,7 +22,7 @@ public class VaultCreateCallbackStateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -50,17 +50,17 @@ public class VaultCreateCallbackStateRequest { @JsonCreator public VaultCreateCallbackStateRequest( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi, CreateCallbackState createCallbackState) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); Utils.checkNotNull(createCallbackState, "createCallbackState"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.unifiedApi = unifiedApi; @@ -78,8 +78,8 @@ public VaultCreateCallbackStateRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -121,18 +121,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultCreateCallbackStateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultCreateCallbackStateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultCreateCallbackStateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultCreateCallbackStateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -191,7 +191,7 @@ public boolean equals(java.lang.Object o) { } VaultCreateCallbackStateRequest other = (VaultCreateCallbackStateRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi) && @@ -201,7 +201,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, serviceId, unifiedApi, @@ -211,7 +211,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultCreateCallbackStateRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "unifiedApi", unifiedApi, @@ -220,7 +220,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -237,18 +237,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -299,7 +299,7 @@ public Builder createCallbackState(CreateCallbackState createCallbackState) { public VaultCreateCallbackStateRequest build() { return new VaultCreateCallbackStateRequest( - customerId, + consumerId, appId, serviceId, unifiedApi, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultCustomFieldsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultCustomFieldsAllRequest.java index 3339e16..8d608f6 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultCustomFieldsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultCustomFieldsAllRequest.java @@ -21,7 +21,7 @@ public class VaultCustomFieldsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -55,19 +55,19 @@ public class VaultCustomFieldsAllRequest { @JsonCreator public VaultCustomFieldsAllRequest( - Optional customerId, + Optional consumerId, Optional appId, String unifiedApi, String serviceId, String resource, Optional resourceId) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(resource, "resource"); Utils.checkNotNull(resourceId, "resourceId"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.unifiedApi = unifiedApi; this.serviceId = serviceId; @@ -86,8 +86,8 @@ public VaultCustomFieldsAllRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -137,18 +137,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultCustomFieldsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultCustomFieldsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultCustomFieldsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultCustomFieldsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -225,7 +225,7 @@ public boolean equals(java.lang.Object o) { } VaultCustomFieldsAllRequest other = (VaultCustomFieldsAllRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi) && Objects.deepEquals(this.serviceId, other.serviceId) && @@ -236,7 +236,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, unifiedApi, serviceId, @@ -247,7 +247,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultCustomFieldsAllRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "unifiedApi", unifiedApi, "serviceId", serviceId, @@ -257,7 +257,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -276,18 +276,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -356,7 +356,7 @@ public Builder resourceId(Optional resourceId) { public VaultCustomFieldsAllRequest build() { return new VaultCustomFieldsAllRequest( - customerId, + consumerId, appId, unifiedApi, serviceId, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultCustomMappingsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultCustomMappingsAllRequest.java index c450e77..4c42832 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultCustomMappingsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultCustomMappingsAllRequest.java @@ -21,7 +21,7 @@ public class VaultCustomMappingsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -43,15 +43,15 @@ public class VaultCustomMappingsAllRequest { @JsonCreator public VaultCustomMappingsAllRequest( - Optional customerId, + Optional consumerId, Optional appId, String unifiedApi, String serviceId) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); Utils.checkNotNull(serviceId, "serviceId"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.unifiedApi = unifiedApi; this.serviceId = serviceId; @@ -67,8 +67,8 @@ public VaultCustomMappingsAllRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -102,18 +102,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultCustomMappingsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultCustomMappingsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultCustomMappingsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultCustomMappingsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -163,7 +163,7 @@ public boolean equals(java.lang.Object o) { } VaultCustomMappingsAllRequest other = (VaultCustomMappingsAllRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi) && Objects.deepEquals(this.serviceId, other.serviceId); @@ -172,7 +172,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, unifiedApi, serviceId); @@ -181,7 +181,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultCustomMappingsAllRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "unifiedApi", unifiedApi, "serviceId", serviceId); @@ -189,7 +189,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -204,18 +204,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -257,7 +257,7 @@ public Builder serviceId(String serviceId) { public VaultCustomMappingsAllRequest build() { return new VaultCustomMappingsAllRequest( - customerId, + consumerId, appId, unifiedApi, serviceId); diff --git a/src/main/java/com/apideck/unify/models/operations/VaultCustomMappingsAllRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/VaultCustomMappingsAllRequestBuilder.java index eb8332d..b17a27e 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultCustomMappingsAllRequestBuilder.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultCustomMappingsAllRequestBuilder.java @@ -12,7 +12,7 @@ public class VaultCustomMappingsAllRequestBuilder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); private String unifiedApi; private String serviceId; @@ -23,15 +23,15 @@ public VaultCustomMappingsAllRequestBuilder(SDKMethodInterfaces.MethodCallVaultC this.sdk = sdk; } - public VaultCustomMappingsAllRequestBuilder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.of(customerId); + public VaultCustomMappingsAllRequestBuilder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.of(consumerId); return this; } - public VaultCustomMappingsAllRequestBuilder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultCustomMappingsAllRequestBuilder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -76,7 +76,7 @@ public VaultCustomMappingsAllResponse call() throws Exception { .retryConfig(retryConfig) .build()); return sdk.list( - customerId, + consumerId, appId, unifiedApi, serviceId, diff --git a/src/main/java/com/apideck/unify/models/operations/VaultLogsAllRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultLogsAllRequest.java index 6f81d18..5975fcb 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultLogsAllRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultLogsAllRequest.java @@ -33,7 +33,7 @@ public class VaultLogsAllRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * Filter results @@ -56,17 +56,17 @@ public class VaultLogsAllRequest { @JsonCreator public VaultLogsAllRequest( Optional appId, - Optional customerId, + Optional consumerId, Optional filter, JsonNullable cursor, Optional limit) { Utils.checkNotNull(appId, "appId"); - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(limit, "limit"); this.appId = appId; - this.customerId = customerId; + this.consumerId = consumerId; this.filter = filter; this.cursor = cursor; this.limit = limit; @@ -88,8 +88,8 @@ public Optional appId() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -142,18 +142,18 @@ public VaultLogsAllRequest withAppId(Optional appId) { /** * ID of the consumer which you want to get or push data from */ - public VaultLogsAllRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultLogsAllRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultLogsAllRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultLogsAllRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -222,7 +222,7 @@ public boolean equals(java.lang.Object o) { VaultLogsAllRequest other = (VaultLogsAllRequest) o; return Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.filter, other.filter) && Objects.deepEquals(this.cursor, other.cursor) && Objects.deepEquals(this.limit, other.limit); @@ -232,7 +232,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( appId, - customerId, + consumerId, filter, cursor, limit); @@ -242,7 +242,7 @@ public int hashCode() { public String toString() { return Utils.toString(VaultLogsAllRequest.class, "appId", appId, - "customerId", customerId, + "consumerId", consumerId, "filter", filter, "cursor", cursor, "limit", limit); @@ -252,7 +252,7 @@ public final static class Builder { private Optional appId = Optional.empty(); - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional filter = Optional.empty(); @@ -285,18 +285,18 @@ public Builder appId(Optional appId) { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -359,7 +359,7 @@ public VaultLogsAllRequest build() { limit = _SINGLETON_VALUE_Limit.value(); } return new VaultLogsAllRequest( appId, - customerId, + consumerId, filter, cursor, limit); diff --git a/src/main/java/com/apideck/unify/models/operations/VaultSessionsCreateRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultSessionsCreateRequest.java index c62536e..b714945 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultSessionsCreateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultSessionsCreateRequest.java @@ -23,7 +23,7 @@ public class VaultSessionsCreateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -39,13 +39,13 @@ public class VaultSessionsCreateRequest { @JsonCreator public VaultSessionsCreateRequest( - Optional customerId, + Optional consumerId, Optional appId, Optional session) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(session, "session"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.session = session; } @@ -58,8 +58,8 @@ public VaultSessionsCreateRequest() { * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -86,18 +86,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultSessionsCreateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultSessionsCreateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultSessionsCreateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultSessionsCreateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -147,7 +147,7 @@ public boolean equals(java.lang.Object o) { } VaultSessionsCreateRequest other = (VaultSessionsCreateRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.session, other.session); } @@ -155,7 +155,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, session); } @@ -163,14 +163,14 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultSessionsCreateRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "session", session); } public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -183,18 +183,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -236,7 +236,7 @@ public Builder session(Optional session) { public VaultSessionsCreateRequest build() { return new VaultSessionsCreateRequest( - customerId, + consumerId, appId, session); } diff --git a/src/main/java/com/apideck/unify/models/operations/VaultSessionsCreateRequestBuilder.java b/src/main/java/com/apideck/unify/models/operations/VaultSessionsCreateRequestBuilder.java index 8f8ca4a..95e9f47 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultSessionsCreateRequestBuilder.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultSessionsCreateRequestBuilder.java @@ -13,7 +13,7 @@ public class VaultSessionsCreateRequestBuilder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); private Optional session = Optional.empty(); private Optional retryConfig = Optional.empty(); @@ -23,15 +23,15 @@ public VaultSessionsCreateRequestBuilder(SDKMethodInterfaces.MethodCallVaultSess this.sdk = sdk; } - public VaultSessionsCreateRequestBuilder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.of(customerId); + public VaultSessionsCreateRequestBuilder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.of(consumerId); return this; } - public VaultSessionsCreateRequestBuilder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultSessionsCreateRequestBuilder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -76,7 +76,7 @@ public VaultSessionsCreateResponse call() throws Exception { .retryConfig(retryConfig) .build()); return sdk.create( - customerId, + consumerId, appId, session, options); diff --git a/src/main/java/com/apideck/unify/models/operations/VaultValidateConnectionStateRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultValidateConnectionStateRequest.java index e442560..cfed55f 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultValidateConnectionStateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultValidateConnectionStateRequest.java @@ -22,7 +22,7 @@ public class VaultValidateConnectionStateRequest { * ID of the consumer which you want to get or push data from */ @SpeakeasyMetadata("header:style=simple,explode=false,name=x-apideck-consumer-id") - private Optional customerId; + private Optional consumerId; /** * The ID of your Unify application @@ -47,17 +47,17 @@ public class VaultValidateConnectionStateRequest { @JsonCreator public VaultValidateConnectionStateRequest( - Optional customerId, + Optional consumerId, Optional appId, String serviceId, String unifiedApi, Optional requestBody) { - Utils.checkNotNull(customerId, "customerId"); + Utils.checkNotNull(consumerId, "consumerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); Utils.checkNotNull(requestBody, "requestBody"); - this.customerId = customerId; + this.consumerId = consumerId; this.appId = appId; this.serviceId = serviceId; this.unifiedApi = unifiedApi; @@ -74,8 +74,8 @@ public VaultValidateConnectionStateRequest( * ID of the consumer which you want to get or push data from */ @JsonIgnore - public Optional customerId() { - return customerId; + public Optional consumerId() { + return consumerId; } /** @@ -115,18 +115,18 @@ public final static Builder builder() { /** * ID of the consumer which you want to get or push data from */ - public VaultValidateConnectionStateRequest withCustomerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public VaultValidateConnectionStateRequest withConsumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public VaultValidateConnectionStateRequest withCustomerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public VaultValidateConnectionStateRequest withConsumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -188,7 +188,7 @@ public boolean equals(java.lang.Object o) { } VaultValidateConnectionStateRequest other = (VaultValidateConnectionStateRequest) o; return - Objects.deepEquals(this.customerId, other.customerId) && + Objects.deepEquals(this.consumerId, other.consumerId) && Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi) && @@ -198,7 +198,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - customerId, + consumerId, appId, serviceId, unifiedApi, @@ -208,7 +208,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VaultValidateConnectionStateRequest.class, - "customerId", customerId, + "consumerId", consumerId, "appId", appId, "serviceId", serviceId, "unifiedApi", unifiedApi, @@ -217,7 +217,7 @@ public String toString() { public final static class Builder { - private Optional customerId = Optional.empty(); + private Optional consumerId = Optional.empty(); private Optional appId = Optional.empty(); @@ -234,18 +234,18 @@ private Builder() { /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(String customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = Optional.ofNullable(customerId); + public Builder consumerId(String consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = Optional.ofNullable(consumerId); return this; } /** * ID of the consumer which you want to get or push data from */ - public Builder customerId(Optional customerId) { - Utils.checkNotNull(customerId, "customerId"); - this.customerId = customerId; + public Builder consumerId(Optional consumerId) { + Utils.checkNotNull(consumerId, "consumerId"); + this.consumerId = consumerId; return this; } @@ -299,7 +299,7 @@ public Builder requestBody(Optional